You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Configure the splash screen for the Android editor
This commit is contained in:
@@ -36,6 +36,7 @@ import android.content.pm.PackageManager
|
||||
import android.os.Bundle
|
||||
import android.util.Log
|
||||
import androidx.annotation.CallSuper
|
||||
import androidx.annotation.LayoutRes
|
||||
import androidx.fragment.app.FragmentActivity
|
||||
import org.godotengine.godot.utils.PermissionsUtil
|
||||
import org.godotengine.godot.utils.ProcessPhoenix
|
||||
@@ -65,7 +66,7 @@ abstract class GodotActivity : FragmentActivity(), GodotHost {
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
setContentView(R.layout.godot_app_layout)
|
||||
setContentView(getGodotAppLayout())
|
||||
|
||||
handleStartIntent(intent, true)
|
||||
|
||||
@@ -80,6 +81,9 @@ abstract class GodotActivity : FragmentActivity(), GodotHost {
|
||||
}
|
||||
}
|
||||
|
||||
@LayoutRes
|
||||
protected open fun getGodotAppLayout() = R.layout.godot_app_layout
|
||||
|
||||
override fun onDestroy() {
|
||||
Log.v(TAG, "Destroying Godot app...")
|
||||
super.onDestroy()
|
||||
|
||||
Reference in New Issue
Block a user