Skip to content

Commit

Permalink
fix: nullpointerexception
Browse files Browse the repository at this point in the history
  • Loading branch information
Xtr126 committed Sep 20, 2024
1 parent ae13de1 commit b92fa7b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/main/java/xtr/keymapper/TouchPointer.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b92fa7b

Please sign in to comment.