Hide overlay if the overlay was shown when Meta key is tapped.
Before fix : https://b.corp.google.com/issues/300492676#comment13 When Meta key is tapped in -1 screen, the toggleAllAppsFromIntent is called and AllApps Drawer is shown in home screen. But the user is still in -1 screen. After fix: https://b.corp.google.com/issues/300492676#comment15 When meta key is tapped in -1 screen, we hide -1 screen and transition to 0 screen and then show AllAppsDrawer. Bug: 300492676 Test: Manual, https://b.corp.google.com/issues/300492676#comment15 Flag: NA Change-Id: I1234e4defdd0b53be35271b9f7567b0719eec7ac
This commit is contained in:
@@ -1605,6 +1605,9 @@ public class Launcher extends StatefulActivity<LauncherState>
|
||||
if (getStateManager().isInStableState(ALL_APPS)) {
|
||||
getStateManager().goToState(NORMAL, alreadyOnHome);
|
||||
} else {
|
||||
if (mWorkspace.isOverlayShown()) {
|
||||
mOverlayManager.hideOverlay(/* animate */true);
|
||||
}
|
||||
AbstractFloatingView.closeAllOpenViews(this);
|
||||
getStateManager().goToState(ALL_APPS, true /* animated */,
|
||||
new AnimationSuccessListener() {
|
||||
|
||||
Reference in New Issue
Block a user