Fixing bug where tapping home while going from page 0 to 1 does nothing

Bug: 63454716
Change-Id: Id8bd47388858b6eb866fa87b67307731c1aca2aa
This commit is contained in:
Sunny Goyal
2017-07-10 20:46:53 -07:00
parent 65a2aa86db
commit c210f5b7ff

View File

@@ -3986,7 +3986,7 @@ public class Workspace extends PagedView
void moveToDefaultScreen(boolean animate) {
int page = getDefaultPage();
if (!workspaceInModalState() && getCurrentPage() != page) {
if (!workspaceInModalState() && getNextPage() != page) {
if (animate) {
snapToPage(page);
} else {