Skip to content

Commit

Permalink
default use maxtouch in android10
Browse files Browse the repository at this point in the history
(cherry picked from commit cff0d20)
  • Loading branch information
yimelia committed Jan 21, 2020
1 parent 2477505 commit 7688e57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airtest/core/android/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __init__(self, serialno=None, host=None,
self.adb = ADB(self.serialno, server_addr=host, display_id=self.display_id, input_event=self.input_event)
self.adb.wait_for_device()
self.sdk_version = self.adb.sdk_version
if self.sdk_version >= SDK_VERISON_ANDROID10 and self.touch_method != TOUCH_METHOD.MAXTOUCH:
if self.sdk_version >= SDK_VERISON_ANDROID10 and self.touch_method == TOUCH_METHOD.MINITOUCH:
self.touch_method = TOUCH_METHOD.MAXTOUCH
self._display_info = {}
self._current_orientation = None
Expand Down

0 comments on commit 7688e57

Please sign in to comment.