Skip to content
Snippets Groups Projects
Verified Commit 0b9e1fc9 authored by Erfan Abdi's avatar Erfan Abdi :volcano:
Browse files

java: Enable Cursor incase service crashed without cleanup

parent 38396c89
No related branches found
No related tags found
No related merge requests found
......@@ -147,8 +147,8 @@ public class VncFlinger extends Service {
if (mHasAudio)
new Thread(this::audioThread).start();
InputManager inputManager = ((InputManager) getSystemService(INPUT_SERVICE));
if (mRemoteCursor) {
InputManager inputManager = ((InputManager) getSystemService(INPUT_SERVICE));
inputManager.registerCursorCallback(new ICursorCallback.Stub() {
@Override
public void onCursorChanged(int iconId, PointerIcon icon) throws RemoteException {
......@@ -168,6 +168,8 @@ public class VncFlinger extends Service {
}
});
inputManager.setForceNullCursor(true);
} else {
inputManager.setForceNullCursor(false);
}
NotificationManager notificationManager = getSystemService(NotificationManager.class);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment