forked from github/wulkanowy-mirror
Bump coil from 0.11.0 to 1.0.0-rc1 (#920)
This commit is contained in:
parent
f8031e1eca
commit
36984e08b5
4 changed files with 8 additions and 3 deletions
|
@ -3,7 +3,7 @@ package io.github.wulkanowy.ui.modules.about.contributor
|
|||
import android.view.LayoutInflater
|
||||
import android.view.ViewGroup
|
||||
import androidx.recyclerview.widget.RecyclerView
|
||||
import coil.api.load
|
||||
import coil.load
|
||||
import coil.transform.RoundedCornersTransformation
|
||||
import io.github.wulkanowy.data.pojos.Contributor
|
||||
import io.github.wulkanowy.databinding.ItemContributorBinding
|
||||
|
|
|
@ -19,6 +19,7 @@ import io.github.wulkanowy.ui.modules.main.MainActivity
|
|||
import io.github.wulkanowy.ui.modules.message.MessageFragment
|
||||
import io.github.wulkanowy.ui.modules.message.preview.MessagePreviewFragment
|
||||
import io.github.wulkanowy.ui.widgets.DividerItemDecoration
|
||||
import kotlinx.coroutines.FlowPreview
|
||||
import javax.inject.Inject
|
||||
|
||||
@AndroidEntryPoint
|
||||
|
@ -51,6 +52,7 @@ class MessageTabFragment : BaseFragment<FragmentMessageTabBinding>(R.layout.frag
|
|||
setHasOptionsMenu(true)
|
||||
}
|
||||
|
||||
@FlowPreview
|
||||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||
super.onViewCreated(view, savedInstanceState)
|
||||
binding = FragmentMessageTabBinding.bind(view)
|
||||
|
|
|
@ -12,6 +12,7 @@ import io.github.wulkanowy.utils.FirebaseAnalyticsHelper
|
|||
import io.github.wulkanowy.utils.afterLoading
|
||||
import io.github.wulkanowy.utils.flowWithResourceIn
|
||||
import io.github.wulkanowy.utils.toFormattedString
|
||||
import kotlinx.coroutines.FlowPreview
|
||||
import kotlinx.coroutines.channels.Channel
|
||||
import kotlinx.coroutines.flow.catch
|
||||
import kotlinx.coroutines.flow.collect
|
||||
|
@ -44,6 +45,7 @@ class MessageTabPresenter @Inject constructor(
|
|||
|
||||
private val searchChannel = Channel<String>()
|
||||
|
||||
@FlowPreview
|
||||
fun onAttachView(view: MessageTabView, folder: MessageFolder) {
|
||||
super.onAttachView(view)
|
||||
view.initView()
|
||||
|
@ -139,6 +141,7 @@ class MessageTabPresenter @Inject constructor(
|
|||
}
|
||||
}
|
||||
|
||||
@FlowPreview
|
||||
private fun initializeSearchStream() {
|
||||
launch {
|
||||
searchChannel.consumeAsFlow()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue