run base oncreate as soon as possible

This commit is contained in:
Chloe authored and GitHub committed 2023-12-25 17:49:34 -07:00
1 parent bada0e40fe
commit 650c31a465
1 file changed
+3 -3
@@ -46,6 +46,8 @@ class GeometryDashActivity : AppCompatActivity(), Cocos2dxHelper.Cocos2dxHelperL
private var mReceiver: BroadcastReceiver? = null private var mReceiver: BroadcastReceiver? = null
override fun onCreate(savedInstanceState: Bundle?) { override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setupUIState() setupUIState()
// return back to main if Geometry Dash isn't found // return back to main if Geometry Dash isn't found
@@ -94,8 +96,6 @@ class GeometryDashActivity : AppCompatActivity(), Cocos2dxHelper.Cocos2dxHelperL
FMOD.init(this) FMOD.init(this)
super.onCreate(savedInstanceState)
setContentView(createView()) setContentView(createView())
// call native functions after native libraries init // call native functions after native libraries init
@@ -421,4 +421,4 @@ class GeometryDashActivity : AppCompatActivity(), Cocos2dxHelper.Cocos2dxHelperL
} }
} }
} }
} }