mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 07:09:03 +00:00
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
1 changed files with 8 additions and 1 deletions
|
@ -297,7 +297,14 @@ public final class GameListActivity extends Activity
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onBackPressed()
|
public void onBackPressed()
|
||||||
|
{
|
||||||
|
if (mCurFragmentNum == 0)
|
||||||
|
{
|
||||||
|
finish();
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
SwitchPage(0);
|
SwitchPage(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue