Confirm deleting block sender rules

pull/206/head
M66B 3 years ago
parent 36c248e56d
commit f394d5b505

@ -199,6 +199,12 @@ public class FragmentDialogJunk extends FragmentDialogBase {
btnClear.setOnClickListener(new View.OnClickListener() { btnClear.setOnClickListener(new View.OnClickListener() {
@Override @Override
public void onClick(View v) { public void onClick(View v) {
new AlertDialog.Builder(v.getContext())
.setTitle(R.string.title_junk_clear)
.setMessage(R.string.title_junk_clear_hint)
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
Bundle args = new Bundle(); Bundle args = new Bundle();
args.putLong("folder", folder); args.putLong("folder", folder);
@ -247,6 +253,15 @@ public class FragmentDialogJunk extends FragmentDialogBase {
} }
}.execute(FragmentDialogJunk.this, args, "junk:clear"); }.execute(FragmentDialogJunk.this, args, "junk:clear");
} }
})
.setNegativeButton(android.R.string.cancel, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
// Do nothing
}
})
.show();
}
}); });
// Initialize // Initialize

Loading…
Cancel
Save