Fixing instantiation context

This commit is contained in:
Twaik Yont 2024-03-26 11:09:05 +02:00
parent 6daef202f1
commit 3fa2f1d5d9

View File

@ -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.
@ -244,5 +244,6 @@ public class CmdEntryPoint extends ICmdEntryInterface.Stub {
Log.e("CmdEntryPoint", "Something went wrong when preparing MainLooper", e);
}
handler = new Handler();
ctx = createContext();
}
}