summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaj Yengisetty <rajesh@cyngn.com>2014-11-14 17:18:47 (GMT)
committerAbhisek Devkota <ciwrl@cyanogenmod.com>2014-12-02 01:15:53 (GMT)
commit78d841ea41321b62878d98203d4754fe923eedc9 (patch)
tree3895be6e41c6dc737e7084d3e582bcdf096fd889
parent9dfd36ede6585aeea7857113215c877309b70f1a (diff)
downloadandroid_packages_apps_Trebuchet-78d841ea41321b62878d98203d4754fe923eedc9.zip
android_packages_apps_Trebuchet-78d841ea41321b62878d98203d4754fe923eedc9.tar.gz
android_packages_apps_Trebuchet-78d841ea41321b62878d98203d4754fe923eedc9.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 ae67b97..89785fe 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