-
Notifications
You must be signed in to change notification settings - Fork 599
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Passcode activity enhanced with biometric authentication #1905
Conversation
* Upstream sdk version is needed to compile the imported libraries Signed-off-by: aditya-gupta99 <[email protected]>
a3e7643
to
cc9fb98
Compare
@avinash14022002 Now the PR has been separated, please review it. |
@@ -34,6 +35,20 @@ class PassCodeActivity : MifosPassCodeActivity() { | |||
currPassCode = it.getStringExtra(Constants.CURR_PASSWORD) | |||
isToUpdatePassCode = it.getBooleanExtra(Constants.IS_TO_UPDATE_PASS_CODE, false) | |||
} | |||
if(findViewById<AppCompatButton>(R.id.btn_save).text.equals("Login with biometric")){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Aditya-gupta99 ,
Please use butter knife currently
BiometricAuthentication(this).authenticateWithBiometrics() | ||
} | ||
if(BiometricAuthentication(this).getBiometricCapabilities()==BiometricCapability.HAS_BIOMETRIC_AUTH){ | ||
val btn=findViewById<AppCompatButton>(R.id.btn_save) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
butterknife
please use proper naming variable
} | ||
} | ||
} else { | ||
TODO("VERSION.SDK_INT < P") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Aditya-gupta99
what is expected here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Aditya-gupta99,
Please do change needful changes
Fixes #1904
demo.mp4
Please make sure these boxes are checked before submitting your pull request - thanks!
Apply the
MifosStyle.xml
style template to your code in Android Studio.Run the unit tests with
./gradlew check
to make sure you didn't break anythingIf you have multiple commits please combine them into one commit by squashing them.