From 78d841ea41321b62878d98203d4754fe923eedc9 Mon Sep 17 00:00:00 2001 From: Raj Yengisetty Date: Fri, 14 Nov 2014 09:18:47 -0800 Subject: Protected Apps: Remove protected folder if there are no entries Change-Id: I942cd6b3753ebd932bdd3162b30db5b4fb45e536 --- src/com/android/launcher3/Folder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/launcher3/Folder.java b/src/com/android/launcher3/Folder.java index ae67b974a..89785fe0a 100644 --- a/src/com/android/launcher3/Folder.java +++ b/src/com/android/launcher3/Folder.java @@ -1271,7 +1271,7 @@ public class Folder extends LinearLayout implements DragSource, View.OnClickList } private void replaceFolderWithFinalItem() { - if (mInfo.hidden) { + if (mInfo.hidden && getItemCount() >= 1) { return; } // Add the last remaining child to the workspace in place of the folder -- cgit v1.2.3