strip theme ingame

This commit is contained in:
qimiko committed 2022-05-26 23:33:37 -07:00
1 parent a10e21844e
commit 9c66ee3e98
1 file changed
+13 -16
@@ -2,7 +2,6 @@ package dev.xyze.geodelauncher
import android.content.Intent import android.content.Intent
import android.content.pm.ActivityInfo import android.content.pm.ActivityInfo
import android.os.Build
import android.os.Bundle import android.os.Bundle
import android.os.Environment import android.os.Environment
import androidx.activity.ComponentActivity import androidx.activity.ComponentActivity
@@ -64,22 +63,20 @@ class GeometryDashActivity : ComponentActivity(), Cocos2dxHelper.Cocos2dxHelperL
setContent { setContent {
val snackbarHostState = remember { SnackbarHostState() } val snackbarHostState = remember { SnackbarHostState() }
GeodeLauncherTheme { AndroidView(
AndroidView( modifier = Modifier.fillMaxSize(),
modifier = Modifier.fillMaxSize(), factory = {
factory = { Cocos2dxGLSurfaceView(this).apply {
Cocos2dxGLSurfaceView(this).apply { setEGLConfigChooser(5, 6, 5, 0, 16, 8)
setEGLConfigChooser(5, 6, 5, 0, 16, 8) initView()
initView() setCocos2dxRenderer(Cocos2dxRenderer())
setCocos2dxRenderer(Cocos2dxRenderer())
}
} }
) }
SnackbarHost( )
hostState = snackbarHostState, SnackbarHost(
modifier = Modifier.fillMaxWidth() hostState = snackbarHostState,
) modifier = Modifier.fillMaxWidth()
} )
if (!loadSuccess) { if (!loadSuccess) {
LaunchedEffect(snackbarHostState) { LaunchedEffect(snackbarHostState) {