Fixed new event date in month-day view (#1629)

This commit is contained in:
Agnieszka C 2022-02-02 10:54:31 +01:00
parent 5daed39029
commit d530ec6577
2 changed files with 2 additions and 2 deletions

View File

@ -37,5 +37,5 @@ class MyMonthDayPagerAdapter(fm: FragmentManager, private val mCodes: List<Strin
mFragments[pos].printCurrentView()
}
fun getNewEventDayCode(pos: Int): String = mFragments[pos].getNewEventDayCode()
fun getNewEventDayCode(pos: Int): String? = mFragments[pos].getNewEventDayCode()
}

View File

@ -175,7 +175,7 @@ class MonthDayFragment : Fragment(), MonthlyCalendar, RefreshRecyclerViewListene
fun printCurrentView() {}
fun getNewEventDayCode() = if (mSelectedDayCode.isEmpty()) mDayCode else mSelectedDayCode
fun getNewEventDayCode() = if (mSelectedDayCode.isEmpty()) null else mSelectedDayCode
private fun getMonthLabel(shownMonthDateTime: DateTime): String {
var month = Formatter.getMonthName(requireActivity(), shownMonthDateTime.monthOfYear)