For #355 - Fixes the default context
parent
a0ac6bfb37
commit
b6ab865e44
|
@ -28,9 +28,9 @@ import kotlin.coroutines.CoroutineContext
|
||||||
|
|
||||||
class HistoryFragment : Fragment(), CoroutineScope {
|
class HistoryFragment : Fragment(), CoroutineScope {
|
||||||
|
|
||||||
lateinit var job: Job
|
private lateinit var job: Job
|
||||||
override val coroutineContext: CoroutineContext
|
override val coroutineContext: CoroutineContext
|
||||||
get() = Dispatchers.Default + job
|
get() = Dispatchers.Main + job
|
||||||
|
|
||||||
override fun onCreateView(
|
override fun onCreateView(
|
||||||
inflater: LayoutInflater,
|
inflater: LayoutInflater,
|
||||||
|
|
Loading…
Reference in New Issue