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

Commit 2e4b2eb5 authored by wilsonshih's avatar wilsonshih
Browse files

Ignore apply input transaction for removed activity.

Ignore to apply input trasaction for the activity which is removed
from window hierarchy, which might happen after a transition finished.

Bug: 236931014
Test: enable shell transition, launch an activity which will crash at
onCreate, and verify no system server crash after transition finish.

Change-Id: Icde817ab598ec08c1b9c42afd1394b8b1aba0327
parent b8cbfd3f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -672,7 +672,7 @@ class Transition extends Binder implements BLASTSyncEngine.TransactionReadyListe
        SurfaceControl.Transaction inputSinkTransaction = null;
        for (int i = 0; i < mParticipants.size(); ++i) {
            final ActivityRecord ar = mParticipants.valueAt(i).asActivityRecord();
            if (ar == null || !ar.isVisible()) continue;
            if (ar == null || !ar.isVisible() || ar.getParent() == null) continue;
            if (inputSinkTransaction == null) {
                inputSinkTransaction = new SurfaceControl.Transaction();
            }