@@ -47,7 +47,7 @@ class WorldRugbyMatchDateItemDecoration(context: Context) : RecyclerView.ItemDec
47
47
private var paddingEnd: Int = 0
48
48
private var datePaddingTop: Int = 0
49
49
private var dayMonthTextSize: Int = 0
50
- private var yearTextSize : Int = 0
50
+ private var dayYearTextSize : Int = 0
51
51
52
52
private val today by lazy { context.getString(R .string.text_today) }
53
53
@@ -73,7 +73,7 @@ class WorldRugbyMatchDateItemDecoration(context: Context) : RecyclerView.ItemDec
73
73
paddingEnd = getDimensionPixelSizeOrThrow(R .styleable.WorldRugbyMatchDateItemDecoration_android_paddingEnd )
74
74
datePaddingTop = getDimensionPixelSizeOrThrow(R .styleable.WorldRugbyMatchDateItemDecoration_datePaddingTop )
75
75
dayMonthTextSize = getDimensionPixelSizeOrThrow(R .styleable.WorldRugbyMatchDateItemDecoration_dayMonthTextSize )
76
- yearTextSize = getDimensionPixelSizeOrThrow(R .styleable.WorldRugbyMatchDateItemDecoration_yearTextSize )
76
+ dayYearTextSize = getDimensionPixelSizeOrThrow(R .styleable.WorldRugbyMatchDateItemDecoration_dayYearTextSize )
77
77
}
78
78
}
79
79
@@ -138,9 +138,9 @@ class WorldRugbyMatchDateItemDecoration(context: Context) : RecyclerView.ItemDec
138
138
}
139
139
if (isCurrentDay) return @apply
140
140
append(System .lineSeparator())
141
- inSpans(AbsoluteSizeSpan (yearTextSize )) {
142
- val year = DateUtils .getDate(DateUtils .DATE_FORMAT_YYYY , millis)
143
- append(year )
141
+ inSpans(AbsoluteSizeSpan (dayYearTextSize )) {
142
+ val dayYear = DateUtils .getDate(DateUtils .DATE_FORMAT_E_YYYY , millis)
143
+ append(dayYear )
144
144
}
145
145
}
146
146
return if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .M ) {
0 commit comments