Search in sources :

Example 1 with RangePickerDialog

use of de.westnordost.streetcomplete.view.dialogs.RangePickerDialog in project StreetComplete by westnordost.

the class AddOpeningHoursAdapter method openSetMonthsRangeDialog.

private void openSetMonthsRangeDialog(CircularSection months, RangePickerDialog.OnRangeChangeListener callback) {
    String[] monthNames = DateFormatSymbols.getInstance().getMonths();
    String selectMonths = context.getResources().getString(R.string.quest_openingHours_chooseMonthsTitle);
    new RangePickerDialog(context, callback, monthNames, months.getStart(), months.getEnd(), selectMonths).show();
}
Also used : RangePickerDialog(de.westnordost.streetcomplete.view.dialogs.RangePickerDialog)

Aggregations

RangePickerDialog (de.westnordost.streetcomplete.view.dialogs.RangePickerDialog)1