Fix FAB when going to index controller to browse source controller

This commit is contained in:
Jobobby04 2021-01-15 22:06:30 -05:00
parent 85425a66a2
commit fe5058c94b

View File

@ -31,7 +31,6 @@ import kotlinx.coroutines.flow.filter
import kotlinx.coroutines.flow.launchIn
import kotlinx.coroutines.flow.onEach
import kotlinx.serialization.json.buildJsonObject
import reactivecircus.flowbinding.android.view.clicks
import reactivecircus.flowbinding.appcompat.QueryTextEvent
import reactivecircus.flowbinding.appcompat.queryTextEvents
import uy.kohesive.injekt.Injekt
@ -245,9 +244,7 @@ open class IndexController :
filterSheet?.setOnShowListener { actionFab?.isVisible = false }
filterSheet?.setOnDismissListener { actionFab?.isVisible = true }
actionFab?.clicks()
?.onEach { filterSheet?.show() }
?.launchIn(viewScope)
actionFab?.setOnClickListener { filterSheet?.show() }
actionFab?.isVisible = true
}