Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #529 from sigmabeta/quit-app-with-back
Allow user to quit Android app with back button.
  • Loading branch information
lioncash committed Jun 23, 2014
2 parents 01fc1a6 + 2c1008f commit ffacb26
Showing 1 changed file with 8 additions and 1 deletion.
Expand Up @@ -298,6 +298,13 @@ public void onRestoreInstanceState(Bundle savedInstanceState)
@Override
public void onBackPressed()
{
SwitchPage(0);
if (mCurFragmentNum == 0)
{
finish();
}
else
{
SwitchPage(0);
}
}
}

0 comments on commit ffacb26

Please sign in to comment.