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

Commit 17f3aecf authored by Chilun's avatar Chilun
Browse files

Add log for IPC failure

Sometimes we will fail to schedule TopResumedActivityChangedItem because
of IPC failure and will cause other problems.

Client side will ignore the inconsistent state in non-debug build and
there is not much can do on the server side. Just add a warning log so
that we can easier debugging and confirm the root cause if issue
happens again.

Bug: 188843741
Test: atest ActivityRecordTests
Change-Id: I6e45f7bbd69384a3b734f80df4bc7c96ffb85b0d
parent 87dc2763
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1221,6 +1221,7 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
                    TopResumedActivityChangeItem.obtain(onTop));
        } catch (RemoteException e) {
            // If process died, whatever.
            Slog.w(TAG, "Failed to send top-resumed=" + onTop + " to " + this, e);
            return false;
        }
        return true;