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

Commit dec301ca authored by Danesh M's avatar Danesh M Committed by Gerrit Code Review
Browse files

Recents : Don't show clear all if no tasks

There is a race condition where if the user clears the last
remaining task, and re-opens the switcher before its cleaned up,
they see the clear all icon even with no tasks.

OPO-432

Change-Id: I5d7c04000e7d42d68fae9379075f9da318afd31f
parent c80e1ddc
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -208,9 +208,7 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView

        ArrayList<TaskStack> stacks = plan.getAllTaskStacks();
        mConfig.launchedWithNoRecentTasks = !plan.hasTasks();
        if (!mConfig.launchedWithNoRecentTasks) {
        mRecentsView.setTaskStacks(stacks);
        }

        // Create the home intent runnable
        Intent homeIntent = new Intent(Intent.ACTION_MAIN, null);