summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Dubroy <dubroy@google.com>2010-08-10 18:11:03 -0700
committerPatrick Dubroy <dubroy@google.com>2010-08-10 18:13:41 -0700
commita67e867db9d639ed2afcc97e9d04a67fc46f2669 (patch)
tree00aed342d93d9a2eb83e779a093c7a9762113a41
parent925b481acb41b277a16f0a73f5aa8f9423ab60cd (diff)
downloadandroid_packages_apps_Trebuchet-a67e867db9d639ed2afcc97e9d04a67fc46f2669.zip
android_packages_apps_Trebuchet-a67e867db9d639ed2afcc97e9d04a67fc46f2669.tar.gz
android_packages_apps_Trebuchet-a67e867db9d639ed2afcc97e9d04a67fc46f2669.tar.bz2
Fix workspace shrinking bug caused by change in animations
Change-Id: Ia34ae2a6cb863da28d319c46a95f61536cd31ade
-rw-r--r--src/com/android/launcher2/Workspace.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/launcher2/Workspace.java b/src/com/android/launcher2/Workspace.java
index 69a8686..bc3285d 100644
--- a/src/com/android/launcher2/Workspace.java
+++ b/src/com/android/launcher2/Workspace.java
@@ -1124,6 +1124,8 @@ public class Workspace extends ViewGroup
Sequencer s = new Sequencer();
for (int i = 0; i < screenCount; i++) {
CellLayout cl = (CellLayout) getChildAt(i);
+ cl.setPivotX(0.0f);
+ cl.setPivotY(0.0f);
if (animated) {
final int duration = res.getInteger(R.integer.config_workspaceShrinkTime);
s.playTogether(
@@ -1187,6 +1189,8 @@ public class Workspace extends ViewGroup
final int duration = getResources().getInteger(R.integer.config_workspaceUnshrinkTime);
for (int i = 0; i < screenCount; i++) {
final CellLayout cl = (CellLayout)getChildAt(i);
+ cl.setPivotX(0.0f);
+ cl.setPivotY(0.0f);
if (animated) {
s.playTogether(
new PropertyAnimator(duration, cl, "translationX", 0.0f),