Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 759d8050 authored by Andrey Epin's avatar Andrey Epin
Browse files

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
parent b96b7ad9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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() {