mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Address API regression from https://github.com/godotengine/godot/pull/101050
This commit is contained in:
parent
5da6deaaca
commit
2a66335ec2
3 changed files with 12 additions and 25 deletions
|
|
@ -75,7 +75,7 @@ abstract class GodotActivity : FragmentActivity(), GodotHost {
|
|||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
val params = intent.getStringArrayExtra(EXTRA_COMMAND_LINE_PARAMS)
|
||||
Log.d(TAG, "Starting intent $intent with parameters ${params.contentToString()}")
|
||||
updateCommandLineParams(params ?: emptyArray())
|
||||
commandLineParams.addAll(params ?: emptyArray())
|
||||
|
||||
super.onCreate(savedInstanceState)
|
||||
|
||||
|
|
@ -215,14 +215,5 @@ abstract class GodotActivity : FragmentActivity(), GodotHost {
|
|||
return GodotFragment()
|
||||
}
|
||||
|
||||
@CallSuper
|
||||
protected open fun updateCommandLineParams(args: Array<String>) {
|
||||
// Update the list of command line params with the new args
|
||||
commandLineParams.clear()
|
||||
if (args.isNotEmpty()) {
|
||||
commandLineParams.addAll(args)
|
||||
}
|
||||
}
|
||||
|
||||
final override fun getCommandLine() = commandLineParams
|
||||
override fun getCommandLine(): MutableList<String> = commandLineParams
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue