mirror of
https://github.com/geode-sdk/android-launcher.git
synced 2026-10-21 08:19:33 +00:00
strip theme ingame
This commit is contained in:
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) {
|
||||||
|
|||||||
Reference in new issue
Block a user