Close all open views for 1P and 3P launchers
* Previously TaskView was closing task menu view, but that got removed since launcher was doing that on state transition. * Only 1P launcher was doing that and not 3P launcher, moved call to remove open views to parent class Test: Invoking split on 3P launcher doesn't result in a crash Bug: 199342537 Change-Id: I6afbe7640ede362a677e15a33409a7cabdb8cca9
This commit is contained in:
1 parent
b751033f30
commit
d18304ca15
3 files changed
+8
-5
No files matched your search
@@ -15,6 +15,7 @@
|
||||
*/
|
||||
package com.android.launcher3.statemanager;
|
||||
|
||||
import static com.android.launcher3.LauncherState.FLAG_CLOSE_POPUPS;
|
||||
import static com.android.launcher3.LauncherState.FLAG_NON_INTERACTIVE;
|
||||
|
||||
import android.os.Handler;
|
||||
@@ -23,6 +24,7 @@ import android.view.View;
|
||||
|
||||
import androidx.annotation.CallSuper;
|
||||
|
||||
import com.android.launcher3.AbstractFloatingView;
|
||||
import com.android.launcher3.BaseDraggingActivity;
|
||||
import com.android.launcher3.LauncherRootView;
|
||||
import com.android.launcher3.Utilities;
|
||||
@@ -87,6 +89,10 @@ public abstract class StatefulActivity<STATE_TYPE extends BaseState<STATE_TYPE>>
|
||||
if (mDeferredResumePending) {
|
||||
handleDeferredResume();
|
||||
}
|
||||
|
||||
if (state.hasFlag(FLAG_CLOSE_POPUPS)) {
|
||||
AbstractFloatingView.closeAllOpenViews(this, !state.hasFlag(FLAG_NON_INTERACTIVE));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user