Fixed new event date in month-day view (#1629)
This commit is contained in:
parent
5daed39029
commit
d530ec6577
|
@ -37,5 +37,5 @@ class MyMonthDayPagerAdapter(fm: FragmentManager, private val mCodes: List<Strin
|
||||||
mFragments[pos].printCurrentView()
|
mFragments[pos].printCurrentView()
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getNewEventDayCode(pos: Int): String = mFragments[pos].getNewEventDayCode()
|
fun getNewEventDayCode(pos: Int): String? = mFragments[pos].getNewEventDayCode()
|
||||||
}
|
}
|
||||||
|
|
|
@ -175,7 +175,7 @@ class MonthDayFragment : Fragment(), MonthlyCalendar, RefreshRecyclerViewListene
|
||||||
|
|
||||||
fun printCurrentView() {}
|
fun printCurrentView() {}
|
||||||
|
|
||||||
fun getNewEventDayCode() = if (mSelectedDayCode.isEmpty()) mDayCode else mSelectedDayCode
|
fun getNewEventDayCode() = if (mSelectedDayCode.isEmpty()) null else mSelectedDayCode
|
||||||
|
|
||||||
private fun getMonthLabel(shownMonthDateTime: DateTime): String {
|
private fun getMonthLabel(shownMonthDateTime: DateTime): String {
|
||||||
var month = Formatter.getMonthName(requireActivity(), shownMonthDateTime.monthOfYear)
|
var month = Formatter.getMonthName(requireActivity(), shownMonthDateTime.monthOfYear)
|
||||||
|
|
Loading…
Reference in New Issue