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

Commit 8682faa2 authored by Hao Dong's avatar Hao Dong
Browse files

Fix cleaning up all unknown hal templates.

Bug: 261577256
Test: manually tested on device, testing steps:
      1. manually add more than one unknown HAL templates
      2. switch to another user
      3. all unknown HAL templates should be cleared
Change-Id: Ic45301ab15dd83cdd946411e5b0b227f843602cb
Merged-In: Ic45301ab15dd83cdd946411e5b0b227f843602cb
parent d287d1d6
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -96,7 +96,11 @@ public abstract class InternalCleanupClient<S extends BiometricAuthenticator.Ide
        @Override
        public void onClientFinished(@NonNull BaseClientMonitor clientMonitor, boolean success) {
            Slog.d(TAG, "Remove onClientFinished: " + clientMonitor + ", success: " + success);
            if (mUnknownHALTemplates.isEmpty()) {
                mCallback.onClientFinished(InternalCleanupClient.this, success);
            } else {
                startCleanupUnknownHalTemplates();
            }
        }
    };