|
|
@ -72,12 +72,12 @@ open class EmulationActivity : AppCompatActivity() {
|
|
|
|
setContentView(R.layout.activity_emulation)
|
|
|
|
setContentView(R.layout.activity_emulation)
|
|
|
|
|
|
|
|
|
|
|
|
// Find or create the EmulationFragment
|
|
|
|
// Find or create the EmulationFragment
|
|
|
|
var emulationFragment =
|
|
|
|
emulationFragment =
|
|
|
|
supportFragmentManager.findFragmentById(R.id.frame_emulation_fragment) as EmulationFragment?
|
|
|
|
supportFragmentManager.findFragmentById(R.id.frame_emulation_fragment) as EmulationFragment?
|
|
|
|
if (emulationFragment == null) {
|
|
|
|
if (emulationFragment == null) {
|
|
|
|
emulationFragment = EmulationFragment.newInstance(path)
|
|
|
|
emulationFragment = EmulationFragment.newInstance(path)
|
|
|
|
supportFragmentManager.beginTransaction()
|
|
|
|
supportFragmentManager.beginTransaction()
|
|
|
|
.add(R.id.frame_emulation_fragment, emulationFragment)
|
|
|
|
.add(R.id.frame_emulation_fragment, emulationFragment!!)
|
|
|
|
.commit()
|
|
|
|
.commit()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
title = selectedTitle
|
|
|
|
title = selectedTitle
|
|
|
|