Merge "Clear registered prediction callbacks on destroy" into rvc-dev

This commit is contained in:
Samuel Fufa
2020-02-25 18:08:32 +00:00
committed by Android (Google) Code Review

View File

@@ -260,6 +260,7 @@ public final class AppPredictor {
Log.e(TAG, "Failed to notify app target event", e); Log.e(TAG, "Failed to notify app target event", e);
e.rethrowAsRuntimeException(); e.rethrowAsRuntimeException();
} }
mRegisteredCallbacks.clear();
} else { } else {
throw new IllegalStateException("This client has already been destroyed."); throw new IllegalStateException("This client has already been destroyed.");
} }