diff --git a/app/src/main/java/xtr/keymapper/TouchPointer.java b/app/src/main/java/xtr/keymapper/TouchPointer.java index 39c63445..d5488e2f 100644 --- a/app/src/main/java/xtr/keymapper/TouchPointer.java +++ b/app/src/main/java/xtr/keymapper/TouchPointer.java @@ -62,6 +62,10 @@ public IBinder onBind(Intent intent) { @Override public int onStartCommand(Intent i, int flags, int startId) { + if (i == null) { + stopSelf(); + return super.onStartCommand(null, flags, startId); + } String CHANNEL_ID = "pointer_service"; String name = "Overlay"; NotificationChannel channel = new NotificationChannel(CHANNEL_ID, name, NotificationManager.IMPORTANCE_LOW);