From e210aa8a790d2c65c5d0e0896189005cbf81982d Mon Sep 17 00:00:00 2001 From: ptyfyre <254117058+ptyfyre@users.noreply.github.com> Date: Sat, 4 Apr 2026 18:29:42 +0200 Subject: [PATCH] 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. --- .../org/citra/citra_emu/fragments/EmulationFragment.kt | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/android/app/src/main/java/org/citra/citra_emu/fragments/EmulationFragment.kt b/src/android/app/src/main/java/org/citra/citra_emu/fragments/EmulationFragment.kt index 1f4b44822..95eaa41f1 100644 --- a/src/android/app/src/main/java/org/citra/citra_emu/fragments/EmulationFragment.kt +++ b/src/android/app/src/main/java/org/citra/citra_emu/fragments/EmulationFragment.kt @@ -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() {