summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/Hotseat.java
diff options
context:
space:
mode:
authorAdam Cohen <adamcohen@google.com>2012-03-02 14:15:13 -0800
committerAdam Cohen <adamcohen@google.com>2012-03-15 13:48:12 -0700
commit482ed823afb4c7452e037ce8add7ea425fc83da2 (patch)
treea25da8ee01d0bd783a5051587b17de5088c48f0d /src/com/android/launcher2/Hotseat.java
parent37ad978fd992342c3539376affb1902d8fbd92ff (diff)
downloadandroid_packages_apps_Trebuchet-482ed823afb4c7452e037ce8add7ea425fc83da2.tar.gz
android_packages_apps_Trebuchet-482ed823afb4c7452e037ce8add7ea425fc83da2.tar.bz2
android_packages_apps_Trebuchet-482ed823afb4c7452e037ce8add7ea425fc83da2.zip
Initial implementation of CellLayout auto-reordering
Change-Id: Id5b5080e846907a7d9cd6535f6e7285e83a0ff71
Diffstat (limited to 'src/com/android/launcher2/Hotseat.java')
-rw-r--r--src/com/android/launcher2/Hotseat.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/launcher2/Hotseat.java b/src/com/android/launcher2/Hotseat.java
index add62c004..9e525bd5a 100644
--- a/src/com/android/launcher2/Hotseat.java
+++ b/src/com/android/launcher2/Hotseat.java
@@ -130,7 +130,8 @@ public class Hotseat extends FrameLayout {
// the hotseat in order regardless of which orientation they were added
int x = getCellXFromOrder(mAllAppsButtonRank);
int y = getCellYFromOrder(mAllAppsButtonRank);
- mContent.addViewToCellLayout(allAppsButton, -1, 0, new CellLayout.LayoutParams(x,y,1,1),
- true, true);
+ CellLayout.LayoutParams lp = new CellLayout.LayoutParams(x,y,1,1);
+ lp.canReorder = false;
+ mContent.addViewToCellLayout(allAppsButton, -1, 0, lp, true, true);
}
}