mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-21 14:55:35 +08:00
Fix: Check rotation if ui unrecognised
This commit is contained in:
@@ -159,6 +159,10 @@ class UI(InfoHandler):
|
|||||||
if self.config.Emulator_ControlMethod == "uiautomator2":
|
if self.config.Emulator_ControlMethod == "uiautomator2":
|
||||||
self.device.uninstall_minicap()
|
self.device.uninstall_minicap()
|
||||||
|
|
||||||
|
@run_once
|
||||||
|
def rotation_check():
|
||||||
|
self.device.get_orientation()
|
||||||
|
|
||||||
timeout = Timer(5, count=10).start()
|
timeout = Timer(5, count=10).start()
|
||||||
while 1:
|
while 1:
|
||||||
if skip_first_screenshot:
|
if skip_first_screenshot:
|
||||||
@@ -189,6 +193,7 @@ class UI(InfoHandler):
|
|||||||
|
|
||||||
app_check()
|
app_check()
|
||||||
minicap_check()
|
minicap_check()
|
||||||
|
rotation_check()
|
||||||
|
|
||||||
# Unknown page, need manual switching
|
# Unknown page, need manual switching
|
||||||
logger.warning("Unknown ui page")
|
logger.warning("Unknown ui page")
|
||||||
|
|||||||
Reference in New Issue
Block a user