diff options
author | Jim Miller <jaggies@google.com> | 2015-07-31 23:48:15 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-07-31 23:48:15 +0000 |
commit | 0a8b6f2b9a1b16831565c932b707c59f2ec36491 (patch) | |
tree | 15d0cc2d89296f03b1e4235c27c7b6fc51c0f2f8 | |
parent | 9d490b50406387a55dc3976cf3cf14ef09d9f98e (diff) | |
parent | efaa19d97d4aba1897357971af4c0991af71dbbd (diff) | |
download | packages_apps_Settings-0a8b6f2b9a1b16831565c932b707c59f2ec36491.zip packages_apps_Settings-0a8b6f2b9a1b16831565c932b707c59f2ec36491.tar.gz packages_apps_Settings-0a8b6f2b9a1b16831565c932b707c59f2ec36491.tar.bz2 |
am efaa19d9: Fix fingerprint enrolling bug.
* commit 'efaa19d97d4aba1897357971af4c0991af71dbbd':
Fix fingerprint enrolling bug.
-rw-r--r-- | src/com/android/settings/fingerprint/FingerprintSettings.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/com/android/settings/fingerprint/FingerprintSettings.java b/src/com/android/settings/fingerprint/FingerprintSettings.java index d40dc50..a5c9963 100644 --- a/src/com/android/settings/fingerprint/FingerprintSettings.java +++ b/src/com/android/settings/fingerprint/FingerprintSettings.java @@ -451,9 +451,11 @@ public class FingerprintSettings extends SubSettings { @Override public void onDestroy() { super.onDestroy(); - int result = mFingerprintManager.postEnroll(); - if (result < 0) { - Log.w(TAG, "postEnroll failed: result = " + result); + if (getActivity().isFinishing()) { + int result = mFingerprintManager.postEnroll(); + if (result < 0) { + Log.w(TAG, "postEnroll failed: result = " + result); + } } } |