Fix FAB when going to index controller to browse source controller
This commit is contained in:
parent
85425a66a2
commit
fe5058c94b
@ -31,7 +31,6 @@ import kotlinx.coroutines.flow.filter
|
|||||||
import kotlinx.coroutines.flow.launchIn
|
import kotlinx.coroutines.flow.launchIn
|
||||||
import kotlinx.coroutines.flow.onEach
|
import kotlinx.coroutines.flow.onEach
|
||||||
import kotlinx.serialization.json.buildJsonObject
|
import kotlinx.serialization.json.buildJsonObject
|
||||||
import reactivecircus.flowbinding.android.view.clicks
|
|
||||||
import reactivecircus.flowbinding.appcompat.QueryTextEvent
|
import reactivecircus.flowbinding.appcompat.QueryTextEvent
|
||||||
import reactivecircus.flowbinding.appcompat.queryTextEvents
|
import reactivecircus.flowbinding.appcompat.queryTextEvents
|
||||||
import uy.kohesive.injekt.Injekt
|
import uy.kohesive.injekt.Injekt
|
||||||
@ -245,9 +244,7 @@ open class IndexController :
|
|||||||
filterSheet?.setOnShowListener { actionFab?.isVisible = false }
|
filterSheet?.setOnShowListener { actionFab?.isVisible = false }
|
||||||
filterSheet?.setOnDismissListener { actionFab?.isVisible = true }
|
filterSheet?.setOnDismissListener { actionFab?.isVisible = true }
|
||||||
|
|
||||||
actionFab?.clicks()
|
actionFab?.setOnClickListener { filterSheet?.show() }
|
||||||
?.onEach { filterSheet?.show() }
|
|
||||||
?.launchIn(viewScope)
|
|
||||||
|
|
||||||
actionFab?.isVisible = true
|
actionFab?.isVisible = true
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user