Search in sources :

Example 1 with CustomTimePickerDialog

use of org.odk.collect.android.fragments.dialogs.CustomTimePickerDialog in project collect by opendatakit.

the class DateTimeWidgetUtilsTest method displayTimePickerDialog_showsCustomTimePickerDialog.

@Test
public void displayTimePickerDialog_showsCustomTimePickerDialog() {
    dateTimeWidgetUtils.showTimePickerDialog(activity, new LocalDateTime().withHourOfDay(12).withMinuteOfHour(10));
    CustomTimePickerDialog dialog = (CustomTimePickerDialog) activity.getSupportFragmentManager().findFragmentByTag(CustomTimePickerDialog.class.getName());
    assertNotNull(dialog);
}
Also used : LocalDateTime(org.joda.time.LocalDateTime) CustomTimePickerDialog(org.odk.collect.android.fragments.dialogs.CustomTimePickerDialog) Test(org.junit.Test)

Aggregations

LocalDateTime (org.joda.time.LocalDateTime)1 Test (org.junit.Test)1 CustomTimePickerDialog (org.odk.collect.android.fragments.dialogs.CustomTimePickerDialog)1