mirror of
https://github.com/azahar-emu/azahar.git
synced 2026-06-07 11:13:40 -04:00
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:
parent
67baf49f51
commit
e210aa8a79
1 changed files with 0 additions and 10 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue