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

Commit f3135fea authored by Brian Isganitis's avatar Brian Isganitis
Browse files

Don't close AFVs when opening Taskbar folder.

Test: Manual
Fix: 276798702
Change-Id: I35fe528bf3ad7fb374b8d8ae83f0d525e131681e
parent 9c311b29
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -777,6 +777,7 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
    }

    protected void onTaskbarIconClicked(View view) {
        boolean shouldCloseAllOpenViews = true;
        Object tag = view.getTag();
        if (tag instanceof Task) {
            Task task = (Task) tag;
@@ -784,6 +785,7 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
                    ActivityOptions.makeBasic());
            mControllers.taskbarStashController.updateAndAnimateTransientTaskbar(true);
        } else if (tag instanceof FolderInfo) {
            shouldCloseAllOpenViews = false;
            FolderIcon folderIcon = (FolderIcon) view;
            Folder folder = folderIcon.getFolder();

@@ -880,8 +882,10 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
            Log.e(TAG, "Unknown type clicked: " + tag);
        }

        if (shouldCloseAllOpenViews) {
            AbstractFloatingView.closeAllOpenViews(this);
        }
    }

    /**
     * Run when the user taps a Taskbar icon while in Overview. If the tapped app is currently