no back button press i guess

Due to the way the emulationActivity is launched from settingsActivity, the callbacks doesn't register unless the emulationActivity is firstly launched from MainActivity with fragment navigation, I'm removing it for now till i find a proper way to do it.
This commit is contained in:
ptyfyre 2026-04-04 18:29:42 +02:00
parent 67baf49f51
commit e210aa8a79

View File

@ -602,16 +602,6 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback, Choreographer.Fram
binding.drawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED)
binding.surfaceInputOverlay.visibility = View.VISIBLE
binding.loadingIndicator.visibility = View.GONE
// in no game edit mode, back = done
requireActivity().onBackPressedDispatcher.addCallback(
viewLifecycleOwner,
object : OnBackPressedCallback(true) {
override fun handleOnBackPressed() {
finishNoGameEditMode()
}
}
)
}
private fun finishNoGameEditMode() {