Don't close AFVs when opening Taskbar folder.
Test: Manual Fix: 276798702 Change-Id: I35fe528bf3ad7fb374b8d8ae83f0d525e131681e
This commit is contained in:
1 parent
9c311b2917
commit
f3135fea05
1 file changed
+5
-1
@@ -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,7 +882,9 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
|
||||
Log.e(TAG, "Unknown type clicked: " + tag);
|
||||
}
|
||||
|
||||
AbstractFloatingView.closeAllOpenViews(this);
|
||||
if (shouldCloseAllOpenViews) {
|
||||
AbstractFloatingView.closeAllOpenViews(this);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user