Merge "Fix persistent device search edu" into sc-dev am: 564ae64e04 am: 5bcf120acd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13419784 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ifdee5dfbf0356839416b0f1054d234b53ded7b7a
This commit is contained in:
commit
ffcc6145cb
1 file changed
+7
-2
@@ -27,6 +27,7 @@ import android.content.SharedPreferences;
|
||||
|
||||
import com.android.launcher3.LauncherState;
|
||||
import com.android.launcher3.Workspace;
|
||||
import com.android.launcher3.allapps.AllAppsInsetTransitionController;
|
||||
import com.android.launcher3.config.FeatureFlags;
|
||||
import com.android.launcher3.hybridhotseat.HotseatPredictionController;
|
||||
import com.android.launcher3.search.DeviceSearchEdu;
|
||||
@@ -139,8 +140,12 @@ public class QuickstepOnboardingPrefs extends OnboardingPrefs<QuickstepLauncher>
|
||||
@Override
|
||||
public void onStateTransitionStart(LauncherState toState) {
|
||||
if (toState == ALL_APPS) {
|
||||
mLauncher.getAllAppsController().getInsetController().setSearchEduRunnable(
|
||||
() -> DeviceSearchEdu.show(launcher));
|
||||
AllAppsInsetTransitionController insetTransitionController =
|
||||
mLauncher.getAllAppsController().getInsetController();
|
||||
insetTransitionController.setSearchEduRunnable(() -> {
|
||||
DeviceSearchEdu.show(launcher);
|
||||
insetTransitionController.setSearchEduRunnable(null);
|
||||
});
|
||||
stateManager.removeStateListener(this);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user