Skip to content

Commit b261748

Browse files
committed
A mistake I made!
Very sorry that I made a mistake! The sdk version is actual 17(I mistake as 18). API levle >= 18 (4.3) supports the param 'duration'. Very sorry!
1 parent c8c867d commit b261748

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ def drag(self, (x0, y0), (x1, y1), duration, steps=1, orientation=-1):
771771
version = self.getSdkVersion()
772772
if version <= 15:
773773
raise RuntimeError('drag: API <= 15 not supported (version=%d)' % version)
774-
elif version <= 18:
774+
elif version <= 17:
775775
self.shell('input swipe %d %d %d %d' % (x0, y0, x1, y1))
776776
else:
777777
self.shell('input touchscreen swipe %d %d %d %d %d' % (x0, y0, x1, y1, duration))

0 commit comments

Comments
 (0)