diff options
author | Raj Yengisetty <rajesh@cyngn.com> | 2014-11-14 09:18:47 -0800 |
---|---|---|
committer | Matt Garnes <matt@cyngn.com> | 2014-11-15 20:19:04 +0000 |
commit | 98fc569c5a2655168e1570fd7cb5a4f08cca3672 (patch) | |
tree | b03e97d9874c90a0e21d90c96e086374a21ee26d | |
parent | eacfd7fd535b4510cc43400c145c46db10110d08 (diff) | |
download | packages_apps_Trebuchet-98fc569c5a2655168e1570fd7cb5a4f08cca3672.tar.gz packages_apps_Trebuchet-98fc569c5a2655168e1570fd7cb5a4f08cca3672.tar.bz2 packages_apps_Trebuchet-98fc569c5a2655168e1570fd7cb5a4f08cca3672.zip |
Protected Apps: Remove protected folder if there are no entries
Change-Id: I942cd6b3753ebd932bdd3162b30db5b4fb45e536
-rw-r--r-- | src/com/android/launcher3/Folder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/launcher3/Folder.java b/src/com/android/launcher3/Folder.java index 1b9d745c4..0aacff4d5 100644 --- a/src/com/android/launcher3/Folder.java +++ b/src/com/android/launcher3/Folder.java @@ -1202,7 +1202,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 |