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
mWorkspace.unshrink(alreadyOnHome);
}
- if (alreadyOnHome && mState == State.WORKSPACE && !mWorkspace.isDefaultPageShowing()) {
+ if (alreadyOnHome && mState == State.WORKSPACE && !mWorkspace.isTouchActive()) {
mWorkspace.moveToDefaultScreen(true);
}
showWorkspace(alreadyOnHome);
return folders;
}
- boolean isDefaultPageShowing() {
- return mCurrentPage == mDefaultPage;
+ boolean isTouchActive() {
+ return mTouchState != TOUCH_STATE_REST;
}
/**