mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-10-11 17:42:05 +00:00
feat: add interval on dump_hierarchy()
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import collections
|
||||
|
||||
from lxml import etree
|
||||
|
||||
# Patch pkg_resources before importing adbutils and uiautomator2
|
||||
from module.device.pkg_resources import get_distribution
|
||||
|
||||
@@ -156,6 +158,10 @@ class Device(Screenshot, Control, AppControl):
|
||||
|
||||
return self.image
|
||||
|
||||
def dump_hierarchy(self) -> etree._Element:
|
||||
self.stuck_record_check()
|
||||
return super().dump_hierarchy()
|
||||
|
||||
def release_during_wait(self):
|
||||
# Scrcpy server is still sending video stream,
|
||||
# stop it during wait
|
||||
|
||||
Reference in New Issue
Block a user