Fix crashes

This commit is contained in:
Duy Tran Khanh committed 2021-01-30 15:57:20 +07:00
1 parent 1b4adf2b95
commit 62371d32f4
4 files changed
+12 -25

No files matched your search

@@ -145,9 +145,7 @@ public class PLaunchApp {
mAccount = acc;
mVersion = verInfo;
UIKit.runOnUIThread(() -> {
UIKit.launchMinecraftSurface();
});
UIKit.launchMinecraftSurface();
}).start();
}
@@ -47,9 +47,7 @@ public class UIKit {
public static void updateProgressSafe(final float progress, final String message) {
System.out.println(message);
runOnUIThread(() -> {
updateProgress(progress, ((int) progress)*100 + "% - " + message);
});
updateProgress(progress, ((int) progress)*100 + "% - " + message);
}
static {
@@ -57,7 +55,7 @@ public class UIKit {
}
public static native int launchUI(String[] uiArgs);
public static native void runOnUIThread(UIKitCallback callback);
// public static native void runOnUIThread(UIKitCallback callback);
// Update progress
public static native void updateProgress(float progress, String message);