* commit 'd0c09c48aec75cffc7cbcea1d5e2aa1e90ac7ab7': Fix fingerprint enrolling bug.
This commit is contained in:
@@ -451,11 +451,13 @@ public class FingerprintSettings extends SubSettings {
|
|||||||
@Override
|
@Override
|
||||||
public void onDestroy() {
|
public void onDestroy() {
|
||||||
super.onDestroy();
|
super.onDestroy();
|
||||||
|
if (getActivity().isFinishing()) {
|
||||||
int result = mFingerprintManager.postEnroll();
|
int result = mFingerprintManager.postEnroll();
|
||||||
if (result < 0) {
|
if (result < 0) {
|
||||||
Log.w(TAG, "postEnroll failed: result = " + result);
|
Log.w(TAG, "postEnroll failed: result = " + result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private Drawable getHighlightDrawable() {
|
private Drawable getHighlightDrawable() {
|
||||||
if (mHighlightDrawable == null) {
|
if (mHighlightDrawable == null) {
|
||||||
|
Reference in New Issue
Block a user