mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-12 01:21:09 -07:00
Fix: crash on virtual mouse enabled on start
This commit is contained in:
parent
67fc3f5740
commit
da7dd201f2
1 changed files with 3 additions and 2 deletions
|
|
@ -184,8 +184,9 @@ public class MainActivity extends BaseActivity implements ControlButtonMenuListe
|
|||
minecraftGLView.setSurfaceReadyListener(() -> {
|
||||
try {
|
||||
// Setup virtual mouse right before launching
|
||||
if (PREF_VIRTUAL_MOUSE_START)
|
||||
touchpad.switchState();
|
||||
if (PREF_VIRTUAL_MOUSE_START) {
|
||||
touchpad.post(() -> touchpad.switchState());
|
||||
}
|
||||
|
||||
runCraft();
|
||||
}catch (Throwable e){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue