Skip to content

Commit

Permalink
run base oncreate as soon as possible
Browse files Browse the repository at this point in the history
  • Loading branch information
qimiko authored Dec 26, 2023
1 parent bada0e4 commit 650c31a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/src/main/java/com/geode/launcher/GeometryDashActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -94,8 +96,6 @@ class GeometryDashActivity : AppCompatActivity(), Cocos2dxHelper.Cocos2dxHelperL

FMOD.init(this)

super.onCreate(savedInstanceState)

setContentView(createView())

// call native functions after native libraries init
Expand Down Expand Up @@ -421,4 +421,4 @@ class GeometryDashActivity : AppCompatActivity(), Cocos2dxHelper.Cocos2dxHelperL
}
}
}
}
}

0 comments on commit 650c31a

Please sign in to comment.