mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-17 20:30:58 +01:00
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()
|
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…
x
Reference in New Issue
Block a user