Skip to content

Commit 5b36785

Browse files
committed
Fixed typo in AdbClient.isLocked()
- Version 4.6.1
1 parent b489fcc commit 5b36785

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

AndroidViewClient/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from setuptools import setup, find_packages
44

55
setup(name='androidviewclient',
6-
version='4.6.0',
6+
version='4.6.1',
77
description='''AndroidViewClient is a 100% pure python tool that
88
simplifies test script creation providing higher level operations and the ability of
99
obtaining the tree of Views present at any given moment on the device or emulator screen.

AndroidViewClient/src/com/dtmilano/android/adb/adbclient.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
@author: Diego Torres Milano
1818
'''
1919

20-
__version__ = '4.6.0'
20+
__version__ = '4.6.1'
2121

2222
import sys
2323
import warnings
@@ -390,7 +390,7 @@ def isLocked(self):
390390
'''
391391

392392
lockScreenRE = re.compile('mShowingLockscreen=(true|false)')
393-
m = lockScreenRE.search(self.shell('(dumpsys window policy'))
393+
m = lockScreenRE.search(self.shell('dumpsys window policy'))
394394
if m:
395395
return (m.group(1) == 'true')
396396
raise RuntimeError("Couldn't determine screen lock state")

0 commit comments

Comments
 (0)