Skip to content

Commit

Permalink
Few changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhay-cloud committed Nov 6, 2022
1 parent 179ea0f commit 97a261b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion InfiniteScrollableCalendarView/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ android {
compileSdk 32

defaultConfig {
minSdk 26
minSdk 22
targetSdk 32

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ class InfiniteScrollableCalendarView(context: Context, attrs: AttributeSet): Con


init {
LayoutInflater.from(context).inflate(R.layout.infinte_calendar_view, this, true);
getViewElements();
LayoutInflater.from(context).inflate(R.layout.infinte_calendar_view, this, true)
getViewElements()
setAttributeValues(context.theme.obtainStyledAttributes(attrs, R.styleable.InfiniteScrollableCalendarView, 0, 0))
initView();
initView()
}

private fun getViewElements(){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class CalendarAdapter(private val startDate: LocalDate, private val onMonthChang
return CalendarViewHolder(view)
}

@SuppressLint("NotifyDataSetChanged")
@SuppressLint("NotifyDataSetChanged", "NewApi")
override fun onBindViewHolder(holder: CalendarViewHolder, position: Int) {
val dateTime: LocalDate = startDate.plusDays(position.toLong())
onBindListener.onBindView(holder)
Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ android {

defaultConfig {
applicationId "dev.abhaycloud.horizontalinfinitescrollablecalendarandroid"
minSdk 26
minSdk 22
targetSdk 32
versionCode 1
versionName "1.0"
Expand Down

0 comments on commit 97a261b

Please sign in to comment.