Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5a1dbf81 authored by Udam Saini's avatar Udam Saini
Browse files

Wait for fingerprints to be removed (Partial fix).

This is a partial fix for b/27903189.
When we remove the lock screen and remove all fingerprints, wait for
them to all be removed before finishing the activity. This will let
the security screen accurately show how many fingerprints are available.

bug:27903189
Change-Id: I30908dbefb7a858f6d99e532841ed4ff894bfe62
parent 2c313f0e
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -648,9 +648,14 @@ public class ChooseLockGeneric extends SettingsActivity {
                                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();
            }
        }

        @Override
        public void onDestroy() {