Added reset to duration dialog

pull/162/head
M66B 5 years ago
parent 71e2da28bc
commit 7e250f2de0

@ -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() {

@ -808,6 +808,7 @@
<string name="title_1day">1 day</string>
<string name="title_now">Now</string>
<string name="title_after">After %1$s</string>
<string name="title_reset">Reset</string>
<string name="title_icalendar_accept">Accept</string>
<string name="title_icalendar_decline">Decline</string>

Loading…
Cancel
Save