mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
android: EmulationActivity: Fix variable shadowing in fragment creation.
This commit is contained in:
parent
f45a0b94d6
commit
b5b4e50c32
|
@ -72,12 +72,12 @@ open class EmulationActivity : AppCompatActivity() {
|
|||
setContentView(R.layout.activity_emulation)
|
||||
|
||||
// Find or create the EmulationFragment
|
||||
var emulationFragment =
|
||||
emulationFragment =
|
||||
supportFragmentManager.findFragmentById(R.id.frame_emulation_fragment) as EmulationFragment?
|
||||
if (emulationFragment == null) {
|
||||
emulationFragment = EmulationFragment.newInstance(path)
|
||||
supportFragmentManager.beginTransaction()
|
||||
.add(R.id.frame_emulation_fragment, emulationFragment)
|
||||
.add(R.id.frame_emulation_fragment, emulationFragment!!)
|
||||
.commit()
|
||||
}
|
||||
title = selectedTitle
|
||||
|
|
Loading…
Reference in a new issue