WeekdaysPicker set starting day
This commit is contained in:
parent
d1bcb2300a
commit
7f6eb40b66
1 changed files with 2 additions and 0 deletions
|
@ -269,6 +269,8 @@ public class TriggerRecurringTime extends Trigger {
|
||||||
weekdaysPicker.setSelectedDays(getSelectedDays());
|
weekdaysPicker.setSelectedDays(getSelectedDays());
|
||||||
weekdaysPicker.setOnWeekdaysChangeListener((view, i, list) -> set(DayOfWeek.fromCalendarInt(i), list.contains(i)));
|
weekdaysPicker.setOnWeekdaysChangeListener((view, i, list) -> set(DayOfWeek.fromCalendarInt(i), list.contains(i)));
|
||||||
weekdaysPicker.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT));
|
weekdaysPicker.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT));
|
||||||
|
weekdaysPicker.setSundayFirstDay(Calendar.getInstance().getFirstDayOfWeek() == Calendar.SUNDAY);
|
||||||
|
weekdaysPicker.redrawDays();
|
||||||
|
|
||||||
root.addView(weekdaysPicker);
|
root.addView(weekdaysPicker);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue