mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 19:10:11 +01:00
Added reset to duration dialog
This commit is contained in:
@@ -101,6 +101,16 @@ public class FragmentDialogDuration extends FragmentDialogEx {
|
||||
sendResult(RESULT_OK);
|
||||
}
|
||||
})
|
||||
.setNeutralButton(R.string.title_reset, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialogInterface, int i) {
|
||||
Bundle args = getArguments();
|
||||
args.putLong("duration", 0);
|
||||
args.putLong("time", new Date().getTime());
|
||||
|
||||
sendResult(RESULT_OK);
|
||||
}
|
||||
})
|
||||
.create();
|
||||
|
||||
btn1hour.setOnClickListener(new View.OnClickListener() {
|
||||
|
||||
Reference in New Issue
Block a user