Skip to content

Commit

Permalink
fix: Looper not prepared
Browse files Browse the repository at this point in the history
  • Loading branch information
Xtr126 committed Feb 27, 2024
1 parent c6c51ed commit 38600e7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion app/src/main/java/xtr/keymapper/server/RemoteService.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ public class RemoteService extends IRemoteService.Stub {
private int TYPE_SECURE_SYSTEM_OVERLAY;
Handler mHandler = new Handler(Looper.getMainLooper());


public RemoteService() {

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
public class RemoteServiceShell {
public static void main(String[] args) {
RemoteService.loadLibraries();
RemoteService mService = new RemoteService();
Looper.prepareMainLooper();
RemoteService mService = new RemoteService();
try {
System.out.println("Waiting for overlay...");
for (String arg: args) {
Expand Down

0 comments on commit 38600e7

Please sign in to comment.