android/Settings: Set mStackCount to 0 when starting the Activity
Fixes a bug where you would have to click multiple times to get out of the settings after turning the screen off and on again.
This commit is contained in:
parent
481f8a8f8b
commit
0993d7cf18
@ -27,8 +27,7 @@ public final class SettingsActivity extends AppCompatActivity implements Setting
|
||||
|
||||
private ProgressDialog dialog;
|
||||
|
||||
public static void launch(Context context, String menuTag, String gameId)
|
||||
{
|
||||
public static void launch(Context context, String menuTag, String gameId) {
|
||||
Intent settings = new Intent(context, SettingsActivity.class);
|
||||
settings.putExtra(ARG_MENU_TAG, menuTag);
|
||||
settings.putExtra(ARG_GAME_ID, gameId);
|
||||
|
@ -45,6 +45,7 @@ public final class SettingsActivityPresenter {
|
||||
}
|
||||
|
||||
public void onStart() {
|
||||
this.mStackCount = 0;
|
||||
prepareCitraDirectoriesIfNeeded();
|
||||
}
|
||||
|
||||
@ -64,7 +65,7 @@ public final class SettingsActivityPresenter {
|
||||
private void prepareCitraDirectoriesIfNeeded() {
|
||||
File configFile = new File(DirectoryInitialization.getUserDirectory() + "/config/" + SettingsFile.FILE_NAME_CONFIG + ".ini");
|
||||
if (!configFile.exists()) {
|
||||
|
||||
Log.error("Citra config file could not be found!");
|
||||
}
|
||||
if (DirectoryInitialization.areCitraDirectoriesReady()) {
|
||||
loadSettingsUI();
|
||||
|
Loading…
x
Reference in New Issue
Block a user