From 2c1008f0ae97dd0988272a395a6e62f7a10cc37c Mon Sep 17 00:00:00 2001 From: Eder Bastos Date: Sun, 22 Jun 2014 22:29:37 -0400 Subject: [PATCH] Allow user to quit app with back button. --- .../dolphinemu/dolphinemu/gamelist/GameListActivity.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Source/Android/src/org/dolphinemu/dolphinemu/gamelist/GameListActivity.java b/Source/Android/src/org/dolphinemu/dolphinemu/gamelist/GameListActivity.java index 6a5f806da4..80bb29eb9e 100644 --- a/Source/Android/src/org/dolphinemu/dolphinemu/gamelist/GameListActivity.java +++ b/Source/Android/src/org/dolphinemu/dolphinemu/gamelist/GameListActivity.java @@ -298,6 +298,13 @@ public final class GameListActivity extends Activity @Override public void onBackPressed() { - SwitchPage(0); + if (mCurFragmentNum == 0) + { + finish(); + } + else + { + SwitchPage(0); + } } }