Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Android] Make sure to change the title accordingly when coming back …
…from the folder browser.
  • Loading branch information
lioncash committed Oct 3, 2013
1 parent 8dfc752 commit da46da1
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -110,7 +110,7 @@ public void onDrawerOpened(View drawerView) {
* 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)
{
Expand All @@ -121,6 +121,11 @@ public void SwitchPage(int toPage)
{
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();
Expand Down

0 comments on commit da46da1

Please sign in to comment.