diff --git a/core/java/android/app/prediction/AppPredictor.java b/core/java/android/app/prediction/AppPredictor.java index f0eedf3d18f22..7f436401dbf47 100644 --- a/core/java/android/app/prediction/AppPredictor.java +++ b/core/java/android/app/prediction/AppPredictor.java @@ -260,6 +260,7 @@ public final class AppPredictor { Log.e(TAG, "Failed to notify app target event", e); e.rethrowAsRuntimeException(); } + mRegisteredCallbacks.clear(); } else { throw new IllegalStateException("This client has already been destroyed."); }