Merge pull request #529 from sigmabeta/quit-app-with-back
Allow user to quit Android app with back button.
This commit is contained in:
commit
ffacb26ff8
|
@ -297,7 +297,14 @@ public final class GameListActivity extends Activity
|
|||
|
||||
@Override
|
||||
public void onBackPressed()
|
||||
{
|
||||
if (mCurFragmentNum == 0)
|
||||
{
|
||||
finish();
|
||||
}
|
||||
else
|
||||
{
|
||||
SwitchPage(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue