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

Commit 2f4e9b46 authored by Louis Chang's avatar Louis Chang
Browse files

Correctly evaluating the caller as the non-top activity

The activity currently being started is irrelevant, instead
we should take the caller activity as the non-top activity
while starting activities with FLAG_ACTIVITY_PREVIOUS_IS_TOP
flag.

Bug: 122582732
Test: atest ActivityStarterTests
Change-Id: I548ab1006cfacb918f2a1c8df9570916f0b1c9dc
parent a7246835
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1799,7 +1799,7 @@ class ActivityStarter {
            }
        }

        mNotTop = (mLaunchFlags & FLAG_ACTIVITY_PREVIOUS_IS_TOP) != 0 ? r : null;
        mNotTop = (mLaunchFlags & FLAG_ACTIVITY_PREVIOUS_IS_TOP) != 0 ? sourceRecord : null;

        mInTask = inTask;
        // In some flows in to this function, we retrieve the task record and hold on to it