Skip to content

Commit b1bf5c0

Browse files
authored
Update PythonActivity.java
1 parent 18131b7 commit b1bf5c0

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

pythonforandroid/bootstraps/sdl2/build/src/main/java/org/kivy/android/PythonActivity.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,16 @@ protected void onResume() {
599599
considerLoadingScreenRemoval();
600600
}
601601

602+
@Override
603+
public void onBackPressed() {
604+
Log.i("PythonActivity", "🔙 Back pressed in PythonActivity");
605+
606+
// Optional: handle or modify behavior here
607+
608+
super.onBackPressed(); // 🔁 Pass to SDLActivity
609+
}
610+
611+
602612
@Override
603613
public void onWindowFocusChanged(boolean hasFocus) {
604614
try {

0 commit comments

Comments
 (0)