use of com.orgzly.android.ui.dialogs.TimestampDialogFragment in project orgzly-android by orgzly.
the class NoteListFragment method displayScheduleTimestampDialog.
protected void displayScheduleTimestampDialog(int id, Set<Long> noteIds) {
OrgDateTime time = null;
/* If there is only one note, use its time as dialog's default. */
if (noteIds.size() == 1) {
time = getScheduledTimeForNote(noteIds.iterator().next());
}
TimestampDialogFragment f = TimestampDialogFragment.getInstance(id, R.string.schedule, noteIds, time);
f.setTargetFragment(this, 0);
f.show(getActivity().getSupportFragmentManager(), TimestampDialogFragment.FRAGMENT_TAG);
}
Aggregations