commit | 5e25500bebe944aee2e02f33b8deda2744d81c1f | [log] [tgz] |
---|---|---|
author | Curtis Belmonte <curtislb@google.com> | Thu Jan 09 22:45:12 2020 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Thu Jan 09 22:45:12 2020 +0000 |
tree | 45191c368192c503133111e4a933fa53c3c56dd1 | |
parent | d63839afdab5e808830d4cc6c0755b536aba0020 [diff] | |
parent | aea1bdec2d20753bbb64b53ac95b347395877493 [diff] |
Merge "Fix issues with SUW on fingerprint devices"
diff --git a/src/com/android/settings/biometrics/BiometricsEnrollEnrolling.java b/src/com/android/settings/biometrics/BiometricsEnrollEnrolling.java index 17a933b..f131e35 100644 --- a/src/com/android/settings/biometrics/BiometricsEnrollEnrolling.java +++ b/src/com/android/settings/biometrics/BiometricsEnrollEnrolling.java
@@ -60,6 +60,8 @@ @Override protected void onStop() { + super.onStop(); + if (mSidecar != null) { mSidecar.setListener(null); } @@ -78,6 +80,12 @@ } @Override + protected boolean shouldFinishWhenBackgrounded() { + // Prevent super.onStop() from finishing, since we handle this in our onStop(). + return false; + } + + @Override public void onBackPressed() { if (mSidecar != null) { mSidecar.setListener(null);
diff --git a/src/com/android/settings/biometrics/fingerprint/FingerprintEnrollEnrolling.java b/src/com/android/settings/biometrics/fingerprint/FingerprintEnrollEnrolling.java index 8194878..3831b07 100644 --- a/src/com/android/settings/biometrics/fingerprint/FingerprintEnrollEnrolling.java +++ b/src/com/android/settings/biometrics/fingerprint/FingerprintEnrollEnrolling.java
@@ -217,13 +217,15 @@ private void stopIconAnimation() { mAnimationCancelled = true; - mIconAnimationDrawable.stop(); + if (mIconAnimationDrawable != null) { + mIconAnimationDrawable.stop(); + } } @Override protected void onStop() { - stopIconAnimation(); super.onStop(); + stopIconAnimation(); } private void animateProgress(int progress) {
diff --git a/src/com/android/settings/biometrics/fingerprint/FingerprintEnrollFindSensor.java b/src/com/android/settings/biometrics/fingerprint/FingerprintEnrollFindSensor.java index 9508268..dbedb4a 100644 --- a/src/com/android/settings/biometrics/fingerprint/FingerprintEnrollFindSensor.java +++ b/src/com/android/settings/biometrics/fingerprint/FingerprintEnrollFindSensor.java
@@ -115,10 +115,10 @@ @Override protected void onStop() { + super.onStop(); if (mAnimation != null) { mAnimation.pauseAnimation(); } - super.onStop(); } @Override