From da46da17dc1e79b3523d5e2333682b61e5822ba5 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 2 Oct 2013 22:55:16 -0400 Subject: [PATCH] [Android] Make sure to change the title accordingly when coming back from the folder browser. --- .../dolphinemu/dolphinemu/gamelist/GameListActivity.java | 7 ++++++- 1 file changed, 6 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 745e722920..23233b37cb 100644 --- a/Source/Android/src/org/dolphinemu/dolphinemu/gamelist/GameListActivity.java +++ b/Source/Android/src/org/dolphinemu/dolphinemu/gamelist/GameListActivity.java @@ -110,7 +110,7 @@ public final class GameListActivity extends Activity * Switches to the {@link Fragment} represented * by the given ID number. * - * @param toPage the number representing the {@link Fragment} to switch to.l + * @param toPage the number representing the {@link Fragment} to switch to. */ public void SwitchPage(int toPage) { @@ -121,6 +121,11 @@ public final class GameListActivity extends Activity { case 0: // Game list { + // We use the title section as the browser directory tracker in the folder browser. + // Make sure we flip the title back if we're coming from that fragment. + if (mCurFragmentNum == 1) + setTitle(R.string.app_name); + mCurFragmentNum = 0; mCurFragment = new GameListFragment(); FragmentManager fragmentManager = getFragmentManager();