mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-19 21:10:11 -07:00
try to fix crash
This commit is contained in:
parent
d2f70636fd
commit
e5fb44c353
2 changed files with 15 additions and 13 deletions
|
|
@ -30,7 +30,7 @@ public class MainActivity extends LoggableActivity implements OnTouchListener, O
|
|||
public static volatile ClipboardManager GLOBAL_CLIPBOARD;
|
||||
|
||||
public static final String initText = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ";
|
||||
volatile public static boolean isPushPollCall;
|
||||
volatile public static boolean isInputStackCall;
|
||||
|
||||
private static int[] hotbarKeys = {
|
||||
LWJGLGLFWKeycode.GLFW_KEY_1, LWJGLGLFWKeycode.GLFW_KEY_2, LWJGLGLFWKeycode.GLFW_KEY_3,
|
||||
|
|
@ -162,8 +162,8 @@ public class MainActivity extends LoggableActivity implements OnTouchListener, O
|
|||
setTitle("Minecraft " + mProfile.getVersion());
|
||||
|
||||
// Minecraft 1.13+
|
||||
isPushPollCall = mVersionInfo.arguments != null;
|
||||
CallbackBridge.nativeAttachThreadToOther(true, isPushPollCall);
|
||||
isInputStackCall = mVersionInfo.arguments != null;
|
||||
CallbackBridge.nativeAttachThreadToOther(true, isInputStackCall);
|
||||
|
||||
this.displayMetrics = Tools.getDisplayMetrics(this);
|
||||
CallbackBridge.windowWidth = displayMetrics.widthPixels / scaleFactor;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue