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
This commit is contained in:
Hao Dong
2022-12-19 22:38:54 +00:00
parent d287d1d6bb
commit 8682faa273

View File

@@ -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);
mCallback.onClientFinished(InternalCleanupClient.this, success);
if (mUnknownHALTemplates.isEmpty()) {
mCallback.onClientFinished(InternalCleanupClient.this, success);
} else {
startCleanupUnknownHalTemplates();
}
}
};