use of com.wdullaer.materialdatetimepicker.time.TimePickerDialog in project haven by guardianproject.
the class MonitorActivity method showTimeDelayDialog.
private void showTimeDelayDialog() {
int totalSecs = preferences.getTimerDelay();
int hours = totalSecs / 3600;
int minutes = (totalSecs % 3600) / 60;
int seconds = totalSecs % 60;
TimePickerDialog mTimePickerDialog = TimePickerDialog.newInstance(this, hours, minutes, seconds, true);
mTimePickerDialog.enableSeconds(true);
mTimePickerDialog.show(getFragmentManager(), "TimePickerDialog");
}
Aggregations