mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 07:06:18 +02:00
Small improvements
This commit is contained in:
@@ -348,7 +348,7 @@ public class FragmentOptions extends FragmentBase {
|
||||
}
|
||||
}
|
||||
|
||||
static void reset(Context context, String[] options) {
|
||||
static void reset(Context context, String[] options, Runnable confirmed) {
|
||||
new AlertDialog.Builder(context)
|
||||
.setTitle(R.string.title_setup_defaults)
|
||||
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
|
||||
@@ -360,6 +360,9 @@ public class FragmentOptions extends FragmentBase {
|
||||
editor.remove(option);
|
||||
editor.apply();
|
||||
|
||||
if (confirmed != null)
|
||||
confirmed.run();
|
||||
|
||||
ToastEx.makeText(context, R.string.title_setup_done, Toast.LENGTH_LONG).show();
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user