Merge "Wait for fingerprints to be removed (Partial fix)." into nyc-dev

am: 1f361c2

* commit '1f361c25e09ee07dd0babb4e7b9a8d3720f0ca31':
  Wait for fingerprints to be removed (Partial fix).

Change-Id: If4d49cc787554adf56451cff0fb7239e4dda9318
This commit is contained in:
Udam Saini
2016-03-30 20:13:18 +00:00
committed by android-build-merger

View File

@@ -648,8 +648,13 @@ public class ChooseLockGeneric extends SettingsActivity {
mFingerprintManager.setActiveUser(UserHandle.myUserId()); mFingerprintManager.setActiveUser(UserHandle.myUserId());
} }
}); });
} else {
// The removal callback will call finish, once all fingerprints are removed.
// We need to wait for that to occur, otherwise, the UI will still show that
// fingerprints exist even though they are (about to) be removed depending on
// the race condition.
finish();
} }
finish();
} }
@Override @Override