mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-20 05:30:40 +01:00
check if the current week fragment is really added to the activity
This commit is contained in:
parent
70cc8a0781
commit
55bfaf3c12
@ -223,7 +223,7 @@ class WeekFragment : Fragment(), WeeklyCalendar {
|
|||||||
return
|
return
|
||||||
|
|
||||||
activity.runOnUiThread {
|
activity.runOnUiThread {
|
||||||
if (context != null)
|
if (context != null && isAdded)
|
||||||
addEvents()
|
addEvents()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user