am d0c09c48: am 0a8b6f2b: am efaa19d9: Fix fingerprint enrolling bug.

* commit 'd0c09c48aec75cffc7cbcea1d5e2aa1e90ac7ab7':
  Fix fingerprint enrolling bug.
This commit is contained in:
Jim Miller
2015-08-01 16:51:48 +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);
}
}
}