Skip to content

Commit

Permalink
Fixing instantiation context
Browse files Browse the repository at this point in the history
  • Loading branch information
twaik committed Mar 26, 2024
1 parent 6daef20 commit 3fa2f1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/java/com/termux/x11/CmdEntryPoint.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class CmdEntryPoint extends ICmdEntryInterface.Stub {
public static final int PORT = 7892;
public static final byte[] MAGIC = "0xDEADBEEF".getBytes();
private static final Handler handler;
public static Context ctx = createContext();
public static Context ctx;

/**
* Command-line entry point.
Expand Down Expand Up @@ -244,5 +244,6 @@ public static Context createContext() {
Log.e("CmdEntryPoint", "Something went wrong when preparing MainLooper", e);
}
handler = new Handler();
ctx = createContext();
}
}

0 comments on commit 3fa2f1d

Please sign in to comment.