Skip to content
Snippets Groups Projects
Commit f5580bbc authored by Grace Cheng's avatar Grace Cheng Committed by Automerger Merge Worker
Browse files

Merge "Separates SFPS and UDFPS BP animation logic" into tm-qpr-dev am: 245bba60 am: fce20389

parents b2c77b31 fce20389
No related branches found
No related tags found
No related merge requests found
......@@ -106,7 +106,7 @@ open class AuthBiometricFingerprintIconController(
iconView.frame = 0
iconViewOverlay.frame = 0
if (shouldAnimateIconViewForTransition(lastState, newState)) {
if (shouldAnimateSfpsIconViewForTransition(lastState, newState)) {
iconView.playAnimation()
}
......@@ -167,6 +167,18 @@ open class AuthBiometricFingerprintIconController(
protected open fun shouldAnimateIconViewForTransition(
@BiometricState oldState: Int,
@BiometricState newState: Int
) = when (newState) {
STATE_HELP,
STATE_ERROR -> true
STATE_AUTHENTICATING_ANIMATING_IN,
STATE_AUTHENTICATING -> oldState == STATE_ERROR || oldState == STATE_HELP
STATE_AUTHENTICATED -> true
else -> false
}
private fun shouldAnimateSfpsIconViewForTransition(
@BiometricState oldState: Int,
@BiometricState newState: Int
) = when (newState) {
STATE_HELP,
STATE_ERROR -> true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment