mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-04-03 13:01:48 +02:00
do not try fetching current week timestamp if it hasnt been passed to fragment
This commit is contained in:
parent
51b78244ac
commit
dd9dd2c021
@ -35,7 +35,7 @@ class WeekFragmentsHolder : MyFragmentHolder(), WeekFragmentListener {
|
|||||||
|
|
||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
val dateTimeString = arguments?.getString(WEEK_START_DATE_TIME) ?: ""
|
val dateTimeString = arguments?.getString(WEEK_START_DATE_TIME) ?: return
|
||||||
currentWeekTS = (DateTime.parse(dateTimeString) ?: DateTime()).seconds()
|
currentWeekTS = (DateTime.parse(dateTimeString) ?: DateTime()).seconds()
|
||||||
thisWeekTS = currentWeekTS
|
thisWeekTS = currentWeekTS
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user