summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/Launcher.java
diff options
context:
space:
mode:
authorPatrick Dubroy <dubroy@google.com>2010-07-12 14:25:18 -0700
committerPatrick Dubroy <dubroy@google.com>2010-07-12 17:29:35 -0700
commit6569f2c80e179c2f8ed73dae6b01d971ec20f005 (patch)
tree7663e08de41929b01128176660fd1e5271ea5bb7 /src/com/android/launcher2/Launcher.java
parent4ab2f860e704b48a721b30095ebbdd353e3c00c4 (diff)
downloadandroid_packages_apps_Trebuchet-6569f2c80e179c2f8ed73dae6b01d971ec20f005.tar.gz
android_packages_apps_Trebuchet-6569f2c80e179c2f8ed73dae6b01d971ec20f005.tar.bz2
android_packages_apps_Trebuchet-6569f2c80e179c2f8ed73dae6b01d971ec20f005.zip
When dragging items on the home screen, visualize where they will drop.
Draw a rectangle around the area where an item will land if it is dropped. If the area is vacant, the rectangle is green; otherwise, it is red. Change-Id: I859b52514566fa55f8c7a04493b8088d12baa476
Diffstat (limited to 'src/com/android/launcher2/Launcher.java')
-rw-r--r--src/com/android/launcher2/Launcher.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java
index 03066c169..94556be55 100644
--- a/src/com/android/launcher2/Launcher.java
+++ b/src/com/android/launcher2/Launcher.java
@@ -1088,7 +1088,7 @@ public final class Launcher extends Activity
outState.putInt(RUNTIME_STATE_PENDING_ADD_COUNT_X, layout.getCountX());
outState.putInt(RUNTIME_STATE_PENDING_ADD_COUNT_Y, layout.getCountY());
outState.putBooleanArray(RUNTIME_STATE_PENDING_ADD_OCCUPIED_CELLS,
- layout.getOccupiedCells());
+ layout.getOccupiedCellsFlattened());
}
if (mFolderInfo != null && mWaitingForResult) {