Prevent discordant state between Workspace and Launcher (issue 15409018)

Change-Id: I13bb3e51da18998a5dade49c50e5fbf2266022d3
This commit is contained in:
Adam Cohen
2014-06-18 10:34:58 -07:00
parent 7fa0ae5056
commit e25c5d1c94
2 changed files with 5 additions and 5 deletions
+1 -5
View File
@@ -3380,10 +3380,7 @@ public class Launcher extends Activity
}
void showWorkspace(boolean animated, Runnable onCompleteRunnable) {
if (mWorkspace.isInOverviewMode()) {
mWorkspace.exitOverviewMode(animated);
}
if (mState != State.WORKSPACE) {
if (mState != State.WORKSPACE || mWorkspace.getState() != Workspace.State.NORMAL) {
boolean wasInSpringLoadedMode = (mState != State.WORKSPACE);
mWorkspace.setVisibility(View.VISIBLE);
hideAppsCustomizeHelper(Workspace.State.NORMAL, animated, false, onCompleteRunnable);
@@ -3472,7 +3469,6 @@ public class Launcher extends Activity
}
}
}, delay);
}
void exitSpringLoadedDragMode() {
+4
View File
@@ -2204,6 +2204,10 @@ public class Workspace extends SmoothPagedView
updateAccessibilityFlags();
}
State getState() {
return mState;
}
private void updateAccessibilityFlags() {
int accessible = mState == State.NORMAL ?
ViewCompat.IMPORTANT_FOR_ACCESSIBILITY_YES :