mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Close Taskbar AllApps when going from overview to home
- Also trigger closeAllOpenViews when changing state to NORMAL Fix: 265689318 Test: manual Change-Id: I109c0f3a3c741844c8747bd76a6c38bf301ec737
This commit is contained in:
@@ -258,8 +258,9 @@ import java.util.StringJoiner;
|
||||
}
|
||||
|
||||
private Animator onStateChangeApplied(int changedFlags, long duration, boolean start) {
|
||||
boolean goingToLauncher = isInLauncher();
|
||||
final boolean goingToLauncher = isInLauncher();
|
||||
final float toAlignment = isIconAlignedWithHotseat() ? 1 : 0;
|
||||
boolean handleOpenFloatingViews = false;
|
||||
if (DEBUG) {
|
||||
Log.d(TAG, "onStateChangeApplied - mState: " + getStateString(mState)
|
||||
+ ", changedFlags: " + getStateString(changedFlags)
|
||||
@@ -280,6 +281,10 @@ import java.util.StringJoiner;
|
||||
updateStateForFlag(FLAG_RESUMED, false);
|
||||
applyState(0 /* duration */);
|
||||
}
|
||||
if (mLauncherState == LauncherState.NORMAL) {
|
||||
// We're changing state to home, should close open popups e.g. Taskbar AllApps
|
||||
handleOpenFloatingViews = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (hasAnyFlag(changedFlags, FLAGS_LAUNCHER)) {
|
||||
@@ -303,10 +308,11 @@ import java.util.StringJoiner;
|
||||
}
|
||||
});
|
||||
|
||||
if (goingToLauncher) {
|
||||
// Handle closing open popups when going home/overview
|
||||
AbstractFloatingView.closeAllOpenViews(mControllers.taskbarActivityContext);
|
||||
}
|
||||
// Handle closing open popups when going home/overview
|
||||
handleOpenFloatingViews = true;
|
||||
}
|
||||
if (handleOpenFloatingViews && goingToLauncher) {
|
||||
AbstractFloatingView.closeAllOpenViews(mControllers.taskbarActivityContext);
|
||||
}
|
||||
|
||||
float backgroundAlpha =
|
||||
|
||||
Reference in New Issue
Block a user