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

Fix: Emulator no respond (#4947)

* Fix Leidian Emulator no respond

* [fix] assets name

* [fix] Avoid clearing stuck record
This commit is contained in:
HexatomicRing
2025-07-17 22:44:28 +08:00
committed by GitHub
parent 627d698763
commit 4f0f2a2c87
6 changed files with 7 additions and 0 deletions

View File

@@ -60,6 +60,12 @@ class LoginHandler(UI):
if not login_success:
logger.info('Login success')
login_success = True
if self.appear(ANDROID_NO_RESPOND, offset=(30, 30), interval=5):
logger.warning('Emulator no respond')
self.device.click_record_add(ANDROID_NO_RESPOND)
self.device.click_record_check()
self.device.click(ANDROID_NO_RESPOND, control_check=False)
continue
if self.appear_then_click(LOGIN_ANNOUNCE, offset=(30, 30), interval=5):
continue
if self.appear_then_click(LOGIN_ANNOUNCE_2, offset=(30, 30), interval=5):