am efaa19d9: Fix fingerprint enrolling bug.

* commit 'efaa19d97d4aba1897357971af4c0991af71dbbd':
  Fix fingerprint enrolling bug.
This commit is contained in:
Jim Miller
2015-07-31 23:48:15 +00:00
committed by Android Git Automerger

View File

@@ -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);
}
}
}