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

Commit 4842a82c authored by hupeng3's avatar hupeng3
Browse files

Toast: Fix ActivityRecord does not attached to process



ActivityRecord's IApplicationThread has been set to null due
to the process being killed. At this time, the ActivityRecord
is no longer used.

Bug: 249221879

Test: build and boot

Signed-off-by: default avatarhupeng3 <hp121520@gmail.com>
Change-Id: I47b8ee8cb779dc64c4353d39d38b6c5d65fb8373
parent 3023a334
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1695,7 +1695,7 @@ class TaskFragment extends WindowContainer<WindowContainer> {
                ProtoLog.v(WM_DEBUG_STATES, "Executing finish of activity: %s", prev);
                prev = prev.completeFinishing(false /* updateVisibility */,
                        "completePausedLocked");
            } else if (prev.hasProcess()) {
            } else if (prev.attachedToProcess()) {
                ProtoLog.v(WM_DEBUG_STATES, "Enqueue pending stop if needed: %s "
                                + "wasStopping=%b visibleRequested=%b",  prev,  wasStopping,
                        prev.mVisibleRequested);