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

Commit 6f6d56fd authored by Craig Mautner's avatar Craig Mautner
Browse files

Do not take screenshots when launching activities...

Unless they are in another task.

Fixes bug 11374158.

Change-Id: I961d4ce9520bc84a182806db2ccb072501c8357a
parent 9279d45b
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -740,7 +740,10 @@ final class ActivityStack {
        prev.state = ActivityState.PAUSING;
        prev.state = ActivityState.PAUSING;
        prev.task.touchActiveTime();
        prev.task.touchActiveTime();
        clearLaunchTime(prev);
        clearLaunchTime(prev);
        final ActivityRecord next = mStackSupervisor.topRunningActivityLocked();
        if (next == null || next.task != prev.task) {
            prev.updateThumbnail(screenshotActivities(prev), null);
            prev.updateThumbnail(screenshotActivities(prev), null);
        }
        stopFullyDrawnTraceIfNeeded();
        stopFullyDrawnTraceIfNeeded();


        mService.updateCpuStats();
        mService.updateCpuStats();