Removing state definition from Launcher

State is only maintained is workspace and is used for all the UI

Bug: 67678570
Change-Id: Ie3cce5a1f4ada3913d0480f7918c27460dacbd34
This commit is contained in:
Sunny Goyal committed 2017-10-18 15:04:22 -07:00
1 parent 4c7f215651
commit f9403d92fa
10 files changed
+98 -128

No files matched your search

+1 -5
View File
@@ -1351,7 +1351,7 @@ public class Workspace extends PagedView
@Override
public void announceForAccessibility(CharSequence text) {
// Don't announce if apps is on top of us.
if (!mLauncher.isAppsViewVisible()) {
if (!mLauncher.isInState(LauncherState.ALL_APPS)) {
super.announceForAccessibility(text);
}
}
@@ -1547,10 +1547,6 @@ public class Workspace extends PagedView
enableLayoutTransitions();
}
public boolean isInOverviewMode() {
return mState == LauncherState.OVERVIEW;
}
public void snapToPageFromOverView(int whichPage) {
snapToPage(whichPage, OVERVIEW_TRANSITION_MS, new ZoomInInterpolator());
}