@Override
    public Bundle onSaveInstanceState() {
        final Bundle state = super.onSaveInstanceState();
        state.putLong(DURATION, durationInputView.getDuration());
        return state;
    }
Sets the duration to be shown in the dialog.

@param duration duration in milliseconds.
android/third_party/time-duration-picker/src/main/java/mobi/upod/timedurationpicker/TimeDurationPickerDialog.java