1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 01:38:21 +08:00

Fix: Handle screen rotation

This commit is contained in:
LmeSzinc
2022-03-05 13:33:24 +08:00
parent be8269b555
commit d586e5563a
4 changed files with 110 additions and 17 deletions

View File

@@ -30,6 +30,9 @@ class AppControl(Adb, Uiautomator2):
else:
self.app_start_adb(package)
# Screen may rotate after starting an app
self.get_orientation()
def app_stop(self):
package = self.config.Emulator_PackageName
method = self.config.Emulator_ControlMethod