BaseDialogFragment.kt: Modify functions into assigning style

Signed-off-by: 1552980358 <1552980358@qq.com>
pull/368/head
1552980358 5 years ago
parent b977e8c47a
commit f3b72d8c1c
  1. 4
      app/src/main/java/io/legado/app/base/BaseDialogFragment.kt

@ -51,9 +51,7 @@ abstract class BaseDialogFragment : DialogFragment(), CoroutineScope {
scope: CoroutineScope = this,
context: CoroutineContext = Dispatchers.IO,
block: suspend CoroutineScope.() -> T
): Coroutine<T> {
return Coroutine.async(scope, context) { block() }
}
) = Coroutine.async(scope, context) { block() }
open fun observeLiveBus() {
}

Loading…
Cancel
Save