Merge pull request #1630 from Aga-C/fix-new-event-date
Fixed new event date in month-day view (#1629)
This commit is contained in:
commit
69eeda5753
|
@ -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()
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue