Allowing OOP tests to enable home screen rotation.
Bug: 202567877
Test: local runs
Change-Id: Ifb711a3071a26e2d8e690e0378b6e74146ac722c
(cherry picked from commit 462fe7c007)
This commit is contained in:
1 parent
5b4145e34b
commit
41f99abeb5
3 files changed
+11
No files matched your search
@@ -157,6 +157,12 @@ public class TestInformationHandler implements ResourceBasedOverride {
|
||||
return response;
|
||||
}
|
||||
|
||||
case TestProtocol.REQUEST_ENABLE_ROTATION:
|
||||
MAIN_EXECUTOR.submit(() ->
|
||||
Launcher.ACTIVITY_TRACKER.getCreatedActivity().getRotationHelper()
|
||||
.forceAllowRotationForTesting(Boolean.parseBoolean(arg)));
|
||||
return null;
|
||||
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user