diff --git a/app/src/main/java/com/geode/launcher/GeometryDashActivity.kt b/app/src/main/java/com/geode/launcher/GeometryDashActivity.kt index bf82607a..93f5c9ac 100644 --- a/app/src/main/java/com/geode/launcher/GeometryDashActivity.kt +++ b/app/src/main/java/com/geode/launcher/GeometryDashActivity.kt @@ -46,6 +46,8 @@ class GeometryDashActivity : AppCompatActivity(), Cocos2dxHelper.Cocos2dxHelperL private var mReceiver: BroadcastReceiver? = null override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setupUIState() // return back to main if Geometry Dash isn't found @@ -94,8 +96,6 @@ class GeometryDashActivity : AppCompatActivity(), Cocos2dxHelper.Cocos2dxHelperL FMOD.init(this) - super.onCreate(savedInstanceState) - setContentView(createView()) // call native functions after native libraries init @@ -421,4 +421,4 @@ class GeometryDashActivity : AppCompatActivity(), Cocos2dxHelper.Cocos2dxHelperL } } } -} \ No newline at end of file +}