Merge changes Iceb7c9cf,I1e802e67 into main
* changes: Fix NPE in LauncherSwipeHandlerV2Test.setup Update recents states sent to tests by RecentsWindowManager
This commit is contained in:
commit
a4c8c7fafb
8 files changed
+37
-10
No files matched your search
@@ -15,7 +15,9 @@
|
||||
*/
|
||||
package com.android.launcher3.testing;
|
||||
|
||||
import static com.android.launcher3.Flags.enableFallbackOverviewInWindow;
|
||||
import static com.android.launcher3.Flags.enableGridOnlyOverview;
|
||||
import static com.android.launcher3.Flags.enableLauncherOverviewInWindow;
|
||||
import static com.android.launcher3.allapps.AllAppsStore.DEFER_UPDATES_TEST;
|
||||
import static com.android.launcher3.config.FeatureFlags.ENABLE_TASKBAR_NAVBAR_UNIFICATION;
|
||||
import static com.android.launcher3.config.FeatureFlags.FOLDABLE_SINGLE_PAGE;
|
||||
@@ -330,6 +332,12 @@ public class TestInformationHandler implements ResourceBasedOverride {
|
||||
return response;
|
||||
}
|
||||
|
||||
case TestProtocol.REQUEST_IS_RECENTS_WINDOW_ENABLED: {
|
||||
response.putBoolean(TestProtocol.TEST_INFO_RESPONSE_FIELD,
|
||||
enableLauncherOverviewInWindow() || enableFallbackOverviewInWindow());
|
||||
return response;
|
||||
}
|
||||
|
||||
case TestProtocol.REQUEST_APP_LIST_FREEZE_FLAGS: {
|
||||
return getLauncherUIProperty(Bundle::putInt,
|
||||
l -> l.getAppsView().getAppsStore().getDeferUpdatesFlags());
|
||||
|
||||
Reference in new issue
Block a user