Merge "FingerprintSettings should handle FINGERPRINT_ERROR_LOCKOUT_PERMANENT" into oc-dr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
b4bbc52e27
@@ -261,14 +261,18 @@ public class FingerprintSettings extends SubSettings {
|
|||||||
mHandler.postDelayed(mFingerprintLockoutReset,
|
mHandler.postDelayed(mFingerprintLockoutReset,
|
||||||
LOCKOUT_DURATION);
|
LOCKOUT_DURATION);
|
||||||
}
|
}
|
||||||
// Fall through to show message
|
break;
|
||||||
default:
|
case FingerprintManager.FINGERPRINT_ERROR_LOCKOUT_PERMANENT:
|
||||||
|
mInFingerprintLockout = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (mInFingerprintLockout) {
|
||||||
// Activity can be null on a screen rotation.
|
// Activity can be null on a screen rotation.
|
||||||
final Activity activity = getActivity();
|
final Activity activity = getActivity();
|
||||||
if (activity != null) {
|
if (activity != null) {
|
||||||
Toast.makeText(activity, msg , Toast.LENGTH_SHORT);
|
Toast.makeText(activity, msg , Toast.LENGTH_SHORT).show();
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
retryFingerprint(); // start again
|
retryFingerprint(); // start again
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user