1
0
mirror of https://github.com/TheFunny/ArisuAutoSweeper synced 2025-12-16 19:55:12 +00:00

fix: Back button causing too much click

This commit is contained in:
YoursFunny 2023-11-02 22:54:40 +08:00
parent 3c4c9a6d61
commit 080c4c130c
Signed by: YoursFunny
GPG Key ID: 207EDC3CD5B40F9C

View File

@ -49,6 +49,7 @@ class UI(MainPage):
self.device.get_orientation()
timeout = Timer(10, count=20).start()
back_timer = Timer(0.5, count=2)
while 1:
if skip_first_screenshot:
skip_first_screenshot = False
@ -76,8 +77,9 @@ class UI(MainPage):
logger.info("Additional ui page handled")
timeout.reset()
continue
logger.info("May be in standby main page")
self.device.click(BACK)
if back_timer.reached_and_reset():
logger.info("Unknown page, try to back")
self.device.click(BACK)
app_check()
minicap_check()