From f8df99fd0a5c7ec698e9165f1de2108922cec675 Mon Sep 17 00:00:00 2001 From: Jon Miranda Date: Tue, 14 Apr 2020 14:39:08 -0700 Subject: [PATCH] Fix bug where view stays invisible due to view recycling before it gets reset. Repo steps: * Drag item out of folder into a space where it won't fit (ie. full workspace) * Drop item before folder finishes closing The issue is that the drop completes and we unbind the folder contents before the postDelayed callback runs to set the view back to visible. Bug: 153267452 Change-Id: I0bd4e41cc6dda8b908eed3c8789ced54da4ac38a --- src/com/android/launcher3/folder/FolderPagedView.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/com/android/launcher3/folder/FolderPagedView.java b/src/com/android/launcher3/folder/FolderPagedView.java index 96ddd57ef3..32531c040f 100644 --- a/src/com/android/launcher3/folder/FolderPagedView.java +++ b/src/com/android/launcher3/folder/FolderPagedView.java @@ -153,6 +153,7 @@ public class FolderPagedView extends PagedView { CellLayout page = (CellLayout) getChildAt(i); ShortcutAndWidgetContainer container = page.getShortcutsAndWidgets(); for (int j = container.getChildCount() - 1; j >= 0; j--) { + container.getChildAt(j).setVisibility(View.VISIBLE); mViewCache.recycleView(R.layout.folder_application, container.getChildAt(j)); } page.removeAllViews();