summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoe Onorato <joeo@android.com>2010-06-09 00:39:37 (GMT)
committerJoe Onorato <joeo@android.com>2010-06-09 00:39:37 (GMT)
commit774b327991dc9e1c140d929c32c87dff36695bfc (patch)
treeacc18ae1c24cc811fcf6c1085e1147aef0cab022 /src
parent36354e4e73171f7ad0f92d8eefa389d8824eae36 (diff)
downloadandroid_packages_apps_Trebuchet-774b327991dc9e1c140d929c32c87dff36695bfc.zip
android_packages_apps_Trebuchet-774b327991dc9e1c140d929c32c87dff36695bfc.tar.gz
android_packages_apps_Trebuchet-774b327991dc9e1c140d929c32c87dff36695bfc.tar.bz2
Fix the folder bug. The change that had previously fixed this got reverted somehow.
Change-Id: I308656a5b1748e8aca254410b049110afaa7affc
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher2/LauncherModel.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/launcher2/LauncherModel.java b/src/com/android/launcher2/LauncherModel.java
index ce26f37..17cd151 100644
--- a/src/com/android/launcher2/LauncherModel.java
+++ b/src/com/android/launcher2/LauncherModel.java
@@ -670,6 +670,10 @@ public class LauncherModel extends BroadcastReceiver {
// check & update map of what's occupied; used to discard overlapping/invalid items
private boolean checkItemPlacement(ItemInfo occupied[][][], ItemInfo item) {
+ if (item.container != LauncherSettings.Favorites.CONTAINER_DESKTOP) {
+ return true;
+ }
+
for (int x = item.cellX; x < (item.cellX+item.spanX); x++) {
for (int y = item.cellY; y < (item.cellY+item.spanY); y++) {
if (occupied[item.screen][x][y] != null) {