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

Commit 7bccd43f authored by Yoshinori Hirano's avatar Yoshinori Hirano
Browse files

Don't include front most excluded task in Multi-Window mode

A front most excluded task is shown on Overview when changing font size
in Multi-Window mode. To fix this issue, RecentActivity should not reset
the config launch flags when it is restarted by configuration changes and
it should not reload the tasks which include a front most excluded task
when it is launched while docking a task.

Bug: 33031985
Test: manual - display app task excluded from Overview screen and then
               change font size in Multi-Window mode

Change-Id: Ic0c35cd06c14d9ed8d2dc46a01f2153738bad849
parent 19fc36fa
Loading
Loading
Loading
Loading
+9 −7
Original line number Diff line number Diff line
@@ -369,7 +369,7 @@ public class RecentsActivity extends Activity implements ViewTreeObserver.OnPreD
        RecentsActivityLaunchState launchState = config.getLaunchState();
        if (!loadPlan.hasTasks()) {
            loader.preloadTasks(loadPlan, launchState.launchedToTaskId,
                    !launchState.launchedFromHome);
                    !launchState.launchedFromHome && !launchState.launchedViaDockGesture);
        }

        RecentsTaskLoadPlan.Options loadOpts = new RecentsTaskLoadPlan.Options();
@@ -496,6 +496,7 @@ public class RecentsActivity extends Activity implements ViewTreeObserver.OnPreD
        EventBus.getDefault().send(new RecentsVisibilityChangedEvent(this, false));
        MetricsLogger.hidden(this, MetricsEvent.OVERVIEW_ACTIVITY);

        if (!isChangingConfigurations()) {
            // Workaround for b/22542869, if the RecentsActivity is started again, but without going
            // through SystemUI, we need to reset the config launch flags to ensure that we do not
            // wait on the system to send a signal that was never queued.
@@ -503,6 +504,7 @@ public class RecentsActivity extends Activity implements ViewTreeObserver.OnPreD
            RecentsActivityLaunchState launchState = config.getLaunchState();
            launchState.reset();
        }
    }

    @Override
    protected void onDestroy() {