Merge "FingerprintSettings should handle FINGERPRINT_ERROR_LOCKOUT_PERMANENT" into oc-dr1-dev am: b4bbc52e27

am: 57d52c6b50

Change-Id: Iec562ad11b1ca6488dff21bac38c4983b2db1ca4
This commit is contained in:
Kevin Chyn
2017-06-20 23:47:27 +00:00
committed by android-build-merger

View File

@@ -261,14 +261,18 @@ public class FingerprintSettings extends SubSettings {
mHandler.postDelayed(mFingerprintLockoutReset,
LOCKOUT_DURATION);
}
// Fall through to show message
default:
// Activity can be null on a screen rotation.
final Activity activity = getActivity();
if (activity != null) {
Toast.makeText(activity, msg , Toast.LENGTH_SHORT);
}
break;
break;
case FingerprintManager.FINGERPRINT_ERROR_LOCKOUT_PERMANENT:
mInFingerprintLockout = true;
break;
}
if (mInFingerprintLockout) {
// Activity can be null on a screen rotation.
final Activity activity = getActivity();
if (activity != null) {
Toast.makeText(activity, msg , Toast.LENGTH_SHORT).show();
}
}
retryFingerprint(); // start again
}