Fix AppPredictionService callbacks comparison

IPredictionCallback#equals() does not return true for the same callback
passed twice into the service. Compare callback binders instead.

Fix: 260650688
Test: manual test
Change-Id: Icbdbad54bd36bb8598054915a90424359f7d2863
This commit is contained in:
Andrey Epin
2022-11-28 18:03:36 -08:00
parent b96b7ad9e9
commit 759d805056

View File

@@ -328,7 +328,7 @@ public abstract class AppPredictionService extends Service {
Slog.e(TAG, "Callback is null, likely the binder has died.");
return false;
}
return mCallback.equals(callback);
return mCallback.asBinder().equals(callback.asBinder());
}
public void destroy() {