summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaj Yengisetty <rajesh@cyngn.com>2014-11-14 17:18:47 (GMT)
committerMatt Garnes <matt@cyngn.com>2014-11-15 20:19:04 (GMT)
commit98fc569c5a2655168e1570fd7cb5a4f08cca3672 (patch)
treeb03e97d9874c90a0e21d90c96e086374a21ee26d
parenteacfd7fd535b4510cc43400c145c46db10110d08 (diff)
downloadandroid_packages_apps_Trebuchet-98fc569c5a2655168e1570fd7cb5a4f08cca3672.zip
android_packages_apps_Trebuchet-98fc569c5a2655168e1570fd7cb5a4f08cca3672.tar.gz
android_packages_apps_Trebuchet-98fc569c5a2655168e1570fd7cb5a4f08cca3672.tar.bz2
Protected Apps: Remove protected folder if there are no entries
Change-Id: I942cd6b3753ebd932bdd3162b30db5b4fb45e536
-rw-r--r--src/com/android/launcher3/Folder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/launcher3/Folder.java b/src/com/android/launcher3/Folder.java
index 1b9d745..0aacff4 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