Fixing bug where you can't switch pages in springloaded

-> Fix bug 5033543
-> Also, bug 4988105 appears to no longer be an issue

Change-Id: Iffdcafb6d8b471eb18521c160b5a8f438b5cef93
This commit is contained in:
Adam Cohen committed 2011-07-17 15:49:05 -07:00
1 parent 35e7e64d4b
commit 3384c7be3c
1 file changed
+3 -2
+3 -2
View File
@@ -1187,7 +1187,7 @@ public class Workspace extends SmoothPagedView
}
public boolean isSmall() {
return mState == State.SMALL;
return mState == State.SMALL || mState == State.SPRING_LOADED;
}
void enableChildrenCache(int fromPage, int toPage) {
@@ -1631,8 +1631,9 @@ public class Workspace extends SmoothPagedView
if (springLoaded) {
finalScaleFactor = mSpringLoadedShrinkFactor;
finalBackgroundAlpha = 1.0f;
mState = State.SPRING_LOADED;
} else {
mState = springLoaded ? State.SPRING_LOADED : State.NORMAL;
mState = State.NORMAL;
}
if (mAnimator != null) {
mAnimator.cancel();