mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-18 23:01:28 +03:00
This commit is contained in:
@@ -294,14 +294,31 @@ class InputService : AccessibilityService() {
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
if (stroke == null) {
|
if (stroke == null) {
|
||||||
stroke = GestureDescription.StrokeDescription(
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||||
touchPath,
|
stroke = GestureDescription.StrokeDescription(
|
||||||
0,
|
touchPath,
|
||||||
duration,
|
0,
|
||||||
willContinue
|
duration,
|
||||||
)
|
willContinue
|
||||||
|
)
|
||||||
|
} else {
|
||||||
|
stroke = GestureDescription.StrokeDescription(
|
||||||
|
touchPath,
|
||||||
|
0,
|
||||||
|
duration
|
||||||
|
)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
stroke = stroke?.continueStroke(touchPath, 0, duration, willContinue)
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||||
|
stroke = stroke?.continueStroke(touchPath, 0, duration, willContinue)
|
||||||
|
} else {
|
||||||
|
stroke = null
|
||||||
|
stroke = GestureDescription.StrokeDescription(
|
||||||
|
touchPath,
|
||||||
|
0,
|
||||||
|
duration
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
stroke?.let {
|
stroke?.let {
|
||||||
val builder = GestureDescription.Builder()
|
val builder = GestureDescription.Builder()
|
||||||
|
|||||||
Reference in New Issue
Block a user