mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-27 07:18:22 +08:00
Fix: Orientate regex (#1071)
This commit is contained in:
@@ -467,7 +467,7 @@ class Connection:
|
|||||||
3: 'HOME key on the left'
|
3: 'HOME key on the left'
|
||||||
"""
|
"""
|
||||||
_DISPLAY_RE = re.compile(
|
_DISPLAY_RE = re.compile(
|
||||||
r'.*DisplayViewport{valid=true, .*orientation=(?P<orientation>\d+), .*deviceWidth=(?P<width>\d+), deviceHeight=(?P<height>\d+).*'
|
r'.*DisplayViewport{.*valid=true, .*orientation=(?P<orientation>\d+), .*deviceWidth=(?P<width>\d+), deviceHeight=(?P<height>\d+).*'
|
||||||
)
|
)
|
||||||
output = self.adb_shell(['dumpsys', 'display'])
|
output = self.adb_shell(['dumpsys', 'display'])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user