home: remove fab scrolling behavior
Remove the ability for the FAB to disappear on scroll, mostly because the state would not be consistent and it was generally bad UX when combined with the fast scroller.
This commit is contained in:
parent
fe0c2761c7
commit
255154c411
3 changed files with 4 additions and 2 deletions
|
@ -100,7 +100,7 @@ dependencies {
|
||||||
implementation 'io.coil-kt:coil:1.4.0'
|
implementation 'io.coil-kt:coil:1.4.0'
|
||||||
|
|
||||||
// Material
|
// Material
|
||||||
implementation "com.google.android.material:material:1.5.0-alpha04"
|
implementation "com.google.android.material:material:1.5.0-alpha05"
|
||||||
|
|
||||||
// --- DEBUG ---
|
// --- DEBUG ---
|
||||||
|
|
||||||
|
|
|
@ -225,6 +225,9 @@ class HomeFragment : Fragment() {
|
||||||
// There is no way a fast scrolling event can continue across a re-create. Reset it.
|
// There is no way a fast scrolling event can continue across a re-create. Reset it.
|
||||||
homeModel.updateFastScrolling(false)
|
homeModel.updateFastScrolling(false)
|
||||||
|
|
||||||
|
// TODO: We actually have to move this to MainFragment. This also means we have to
|
||||||
|
// have more than one thing watching the coroutine, which completely breaks what I
|
||||||
|
// wanted to do.
|
||||||
homeModel.loaderResponse.observe(viewLifecycleOwner) { response ->
|
homeModel.loaderResponse.observe(viewLifecycleOwner) { response ->
|
||||||
// Handle the loader response.
|
// Handle the loader response.
|
||||||
when (response) {
|
when (response) {
|
||||||
|
|
|
@ -56,7 +56,6 @@
|
||||||
android:contentDescription="@string/desc_shuffle_all"
|
android:contentDescription="@string/desc_shuffle_all"
|
||||||
app:layout_anchor="@id/home_pager"
|
app:layout_anchor="@id/home_pager"
|
||||||
app:tint="?attr/colorControlNormal"
|
app:tint="?attr/colorControlNormal"
|
||||||
app:layout_behavior="com.google.android.material.behavior.HideBottomViewOnScrollBehavior"
|
|
||||||
app:layout_anchorGravity="bottom|end" />
|
app:layout_anchorGravity="bottom|end" />
|
||||||
|
|
||||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||||
|
|
Loading…
Reference in a new issue