Preventing bg protection from changing while adding items via spring loading mechanism.

Change-Id: I57702eae45346e41026d60e2ae551f3df287b29f
This commit is contained in:
Winson Chung committed 2010-12-14 18:27:20 -08:00
1 parent d075e95435
commit a58f8bb194
1 file changed
+6 -2
+6 -2
View File
@@ -275,7 +275,9 @@ public class Workspace extends SmoothPagedView
@Override
public void onAnimationEndOrCancel(Animator animation) {
mIsInUnshrinkAnimation = false;
mDrawCustomizeTrayBackground = false;
if (mShrinkState != ShrinkState.SPRING_LOADED) {
mDrawCustomizeTrayBackground = false;
}
}
};
mSnapVelocity = 600;
@@ -1316,7 +1318,9 @@ public class Workspace extends SmoothPagedView
}
}
hideBackgroundGradient();
if (!springLoaded) {
hideBackgroundGradient();
}
}
/**