Enabling Fixed Landscape in Launcher3 tests
Bug: 398279312 Test: Any test using PortraitLandscapeRunner Test: IntegrationFixedLandscape Flag: com.android.launcher3.one_grid_specs Change-Id: I5a1801374f39381e678e764f8e417cf0f8bf6ad7
This commit is contained in:
1 parent
f979f6518b
commit
331fd2dac6
1 file changed
+1
-4
@@ -10,7 +10,6 @@ import com.android.launcher3.Launcher;
|
||||
import com.android.launcher3.LauncherPrefs;
|
||||
import com.android.launcher3.tapl.TestHelpers;
|
||||
import com.android.launcher3.util.rule.FailureWatcher;
|
||||
import com.android.launcher3.util.window.WindowManagerProxy;
|
||||
|
||||
import org.junit.rules.TestRule;
|
||||
import org.junit.runner.Description;
|
||||
@@ -109,9 +108,7 @@ public class PortraitLandscapeRunner<LAUNCHER_TYPE extends Launcher> implements
|
||||
private boolean shouldHaveFixedLandscape(Launcher launcher) {
|
||||
return Flags.oneGridSpecs()
|
||||
&& !launcher.getDeviceProfile().isTablet
|
||||
&& !launcher.getDeviceProfile().isMultiDisplay
|
||||
&& WindowManagerProxy.INSTANCE.get(mTest.mTargetContext)
|
||||
.isTaskbarDrawnInProcess();
|
||||
&& !launcher.getDeviceProfile().isMultiDisplay;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user