Fix issue with some home button presses being ignored.

We are ignoring home button presses after panning away from
the default screen, when the workspace is still moving slightly.

Also, make the home button a no-op when the user is in the
middle of panning the screen (i.e. finger is still down).

Change-Id: Ida6bad4faaf90b6802aac2cbf3444f76b7b38100
This commit is contained in:
Patrick Dubroy
2011-02-24 11:42:23 -08:00
parent 62ae29f8b5
commit a0aa0121b9
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -419,8 +419,8 @@ public class Workspace extends SmoothPagedView
return folders;
}
boolean isDefaultPageShowing() {
return mCurrentPage == mDefaultPage;
boolean isTouchActive() {
return mTouchState != TOUCH_STATE_REST;
}
/**