summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/launcher3/FolderIcon.java4
-rw-r--r--src/com/android/launcher3/RemoteFolder.java6
2 files changed, 10 insertions, 0 deletions
diff --git a/src/com/android/launcher3/FolderIcon.java b/src/com/android/launcher3/FolderIcon.java
index c414856..33787ab 100644
--- a/src/com/android/launcher3/FolderIcon.java
+++ b/src/com/android/launcher3/FolderIcon.java
@@ -373,10 +373,14 @@ public class FolderIcon extends FrameLayout implements FolderListener {
}
private boolean willAcceptItem(ItemInfo item) {
+ if (mInfo.isRemote()) return false;
+
final int itemType = item.itemType;
boolean hidden = false;
if (item instanceof FolderInfo){
+ if (((FolderInfo) item).isRemote()) return false;
+
hidden = ((FolderInfo) item).hidden;
}
return ((itemType == LauncherSettings.Favorites.ITEM_TYPE_APPLICATION ||
diff --git a/src/com/android/launcher3/RemoteFolder.java b/src/com/android/launcher3/RemoteFolder.java
index 9478ea6..1364894 100644
--- a/src/com/android/launcher3/RemoteFolder.java
+++ b/src/com/android/launcher3/RemoteFolder.java
@@ -173,6 +173,12 @@ public class RemoteFolder extends Folder {
}
}
+ @Override
+ public boolean onLongClick(View v) {
+ // Eat the event without doing anything. We do not allow users to remove items.
+ return true;
+ }
+
private void toggleInfoPane() {
if (mFolderHelpText.getVisibility() == VISIBLE) {
// info ImageView becomes a close "X" when the help text is showing, handle accordingly