@Override
    public void onRestoreInstanceState(Bundle savedInstanceState) {
        super.onRestoreInstanceState(savedInstanceState);
        final long duration = savedInstanceState.getLong(DURATION);
        durationInputView.setDuration(duration);
    }
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