am 8ea975c1: am bb89abea: am d0c09c48: am 0a8b6f2b: am efaa19d9: Fix fingerprint enrolling bug.

* commit '8ea975c12857724c73e7eed98f91d53fbf606140':
  Fix fingerprint enrolling bug.
This commit is contained in:
Jim Miller
2015-08-01 17:52:35 +00:00
committed by Android Git Automerger

View File

@@ -451,9 +451,11 @@ public class FingerprintSettings extends SubSettings {
@Override @Override
public void onDestroy() { public void onDestroy() {
super.onDestroy(); super.onDestroy();
int result = mFingerprintManager.postEnroll(); if (getActivity().isFinishing()) {
if (result < 0) { int result = mFingerprintManager.postEnroll();
Log.w(TAG, "postEnroll failed: result = " + result); if (result < 0) {
Log.w(TAG, "postEnroll failed: result = " + result);
}
} }
} }