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

Commit fdfd4573 authored by wilsonshih's avatar wilsonshih
Browse files

Update top resumed activity after adjust focus stack.

Top focus stack change could also cause top resumed activity changed.

Fix: 140155980
Bug: 127741025
Test: atest ActivityLifecycleTopResumedStateTests

Change-Id: I367045a20d855835e1ffcac5b39a1fb6935fbae9
parent 0652ec86
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -3627,6 +3627,10 @@ class ActivityStack extends ConfigurationContainer {
        }

        stack.moveToFront(myReason);
        // Top display focused stack is changed, update top resumed activity if needed.
        if (stack.mResumedActivity != null) {
            mStackSupervisor.updateTopResumedActivityIfNeeded();
        }
        return stack;
    }