mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-30 13:47:41 +00:00
mousereceiver: add nullptr check
This commit is contained in:
@@ -223,6 +223,9 @@ public class MouseReceiverService extends AccessibilityService {
|
||||
public boolean stopSwipe() {
|
||||
Path path = new Path();
|
||||
path.moveTo(getX(), getY());
|
||||
if (swipeStoke == null) {
|
||||
return true;
|
||||
}
|
||||
swipeStoke = swipeStoke.continueStroke(path, 0, 1, false);
|
||||
GestureDescription.Builder builder = new GestureDescription.Builder();
|
||||
builder.addStroke(swipeStoke);
|
||||
|
Reference in New Issue
Block a user