Skip to content

Commit

Permalink
fix: random crash due to PendingIntent
Browse files Browse the repository at this point in the history
  • Loading branch information
Xtr126 committed Aug 1, 2024
1 parent 6f9c4be commit b3b96c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/xtr/keymapper/TouchPointer.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
public class TouchPointer extends Service {
private final IBinder binder = new TouchPointerBinder();
public MainActivity.Callback activityCallback;
private IRemoteService mService;
public IRemoteService mService;
public String selectedProfile = null;
private final Handler mHandler = new Handler(Looper.getMainLooper());
private boolean activityRemoteCallback = false;
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/xtr/keymapper/editor/EditorService.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public void onServiceConnected(ComponentName className,
TouchPointer.TouchPointerBinder binder = (TouchPointer.TouchPointerBinder) service;
TouchPointer pointerOverlay = binder.getService();
try {
pointerOverlay.mCallback.launchEditor();
if (pointerOverlay.mService != null) pointerOverlay.mCallback.launchEditor();
} catch (RemoteException ignored) {
}
}
Expand Down

0 comments on commit b3b96c7

Please sign in to comment.