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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user