1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-18 21:28:54 +00:00

Confirm repair

This commit is contained in:
M66B 2021-10-16 20:37:04 +02:00
parent 09406ecac8
commit c468068603

View file

@ -632,6 +632,11 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
btnRepair.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
new AlertDialog.Builder(view.getContext())
.setTitle(R.string.title_advanced_repair)
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
new SimpleTask<Void>() {
@Override
protected void onPostExecute(Bundle args) {
@ -684,6 +689,16 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
}
}.execute(FragmentOptionsMisc.this, new Bundle(), "repair");
}
})
.setNegativeButton(android.R.string.cancel, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
// Do nothing
}
})
.show();
}
});
swAutostart.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {