what-the-bank/sources/com/prolificinteractive/materialcalendarview/MonthView.java

36 lines
1.2 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.prolificinteractive.materialcalendarview;
import java.util.Calendar;
import java.util.Collection;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes3.dex */
public class MonthView extends CalendarPagerView {
@Override // com.prolificinteractive.materialcalendarview.CalendarPagerView
protected int getRows() {
return 7;
}
public MonthView(MaterialCalendarView materialCalendarView, CalendarDay calendarDay, int i) {
super(materialCalendarView, calendarDay, i);
}
@Override // com.prolificinteractive.materialcalendarview.CalendarPagerView
protected void buildDayViews(Collection<DayView> collection, Calendar calendar) {
for (int i = 0; i < 6; i++) {
for (int i2 = 0; i2 < 7; i2++) {
addDayView(collection, calendar);
}
}
}
public CalendarDay getMonth() {
return getFirstViewDay();
}
@Override // com.prolificinteractive.materialcalendarview.CalendarPagerView
protected boolean isDayEnabled(CalendarDay calendarDay) {
return calendarDay.getMonth() == getFirstViewDay().getMonth();
}
}