Search in sources :

Example 1 with TimestampDialogFragment

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);
}
Also used : OrgDateTime(com.orgzly.org.datetime.OrgDateTime) TimestampDialogFragment(com.orgzly.android.ui.dialogs.TimestampDialogFragment)

Aggregations

TimestampDialogFragment (com.orgzly.android.ui.dialogs.TimestampDialogFragment)1 OrgDateTime (com.orgzly.org.datetime.OrgDateTime)1