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

Commit a2523181 authored by Charles Chen's avatar Charles Chen Committed by Android (Google) Code Review
Browse files

Merge "Fix bind service failure on Android Auto"

parents 1c1d894f 8005b00b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1940,7 +1940,9 @@ public final class ActiveServices {
        ActivityServiceConnectionsHolder<ConnectionRecord> activity = null;
        if (token != null) {
            activity = mAm.mAtmInternal.getServiceConnectionsHolder(token);
            if (activity == null) {
            // TODO(b/171280916): Remove the check after we have another API get window context
            //  token than getActivityToken.
            if (activity == null && !mAm.mWindowManager.isWindowToken(token)) {
                Slog.w(TAG, "Binding with unknown activity: " + token);
                return 0;
            }