Merge "Fix regression of pressing power key cancel sfps enrollment" into tm-qpr-dev am: b9263732ee
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/19880527 Change-Id: I60e52637331ca2801845999334a8d83f4bec04fd Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -203,7 +203,9 @@ public class FingerprintEnrollEnrolling extends BiometricsEnrollEnrolling {
|
||||
// Do NOT cancel enrollment progress after rotating, adding mIsOrientationChanged
|
||||
// to judge if the focus changed was triggered by rotation, current WMS has triple callbacks
|
||||
// (true > false > true), we need to reset mIsOrientationChanged when !hasFocus callback.
|
||||
if (!mIsOrientationChanged) {
|
||||
// Side fps do not have to synchronize udfpsController overlay state, we should bypass sfps
|
||||
// from onWindowFocusChanged() as long press sfps power key will prompt dialog to users.
|
||||
if (!mIsOrientationChanged && !mCanAssumeSfps) {
|
||||
onCancelEnrollment(FINGERPRINT_ERROR_USER_CANCELED);
|
||||
} else {
|
||||
mIsOrientationChanged = false;
|
||||
|
Reference in New Issue
Block a user