Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 47359aca authored by John Hsing's avatar John Hsing Committed by Ricardo Cerqueira
Browse files

Settings: Forward port Change behavior when back pressed in PerformanceSettings

When back key pressed, finish this activity if user does NOT accept 'Ok'
in warning dialog rather than show it.
Id: Ied763db4f76a3a2a36f134bd93a0f18047c6cf5c

Change-Id: I07d41d43d00e4fb42ad526d27ee9188d830906ea
parent 4b604ae3
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -66,7 +66,11 @@ public class PerformanceSettings extends SettingsPreferenceFragment {
                            return;
                        }
                    });

            alertDialog.setOnCancelListener(new DialogInterface.OnCancelListener() {
                public void onCancel(DialogInterface dialog) {
                    PerformanceSettings.this.finish();
                }
            });
            alertDialog.show();
        }
    }