Added reset to duration dialog

This commit is contained in:
M66B
2019-09-11 19:27:45 +02:00
parent 71e2da28bc
commit 7e250f2de0
2 changed files with 11 additions and 0 deletions

View File

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