api-impl/android/app/NativeActivity.java: fix crash due to Looper now not being a stub

This commit is contained in:
Mis012
2023-07-27 17:13:09 +02:00
parent 014bc2c293
commit b4e1057dbc

View File

@@ -205,7 +205,7 @@ public class NativeActivity extends Activity implements SurfaceHolder.Callback,
? savedInstanceState.getByteArray(KEY_NATIVE_SAVED_STATE)
: null;
mNativeHandle = loadNativeCode(path, funcname, Looper.myQueue(),
mNativeHandle = loadNativeCode(path, funcname, /*Looper.myQueue()*/null,
getAbsolutePath(getFilesDir()), getAbsolutePath(getObbDir()),
getAbsolutePath(getExternalFilesDir(null)),
Build.VERSION.SDK_INT, getAssets(), nativeSavedState);