ui: remove coordinatorlayout workarounds

Remove EdgeCoordinatorLayout in favor of using fitsSystemWindows when
needed.

EdgeCoordinatorLayout was derived from a misunderstanding about how
window insets worked. Remove it.
This commit is contained in:
OxygenCobalt
2022-08-04 14:30:33 -06:00
parent 4af45031b0
commit f27b798e33
13 changed files with 52 additions and 124 deletions
+5 -5
View File
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<org.oxycblt.auxio.ui.coordinator.EdgeCoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/home_layout"
@@ -7,10 +7,10 @@
android:layout_height="match_parent"
android:background="?attr/colorSurface">
<org.oxycblt.auxio.ui.coordinator.EdgeAppBarLayout
<org.oxycblt.auxio.ui.AuxioAppBarLayout
android:id="@+id/home_appbar"
style="@style/Widget.Auxio.AppBarLayout"
app:liftOnScroll="true">
android:fitsSystemWindows="true">
<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/home_toolbar"
@@ -29,7 +29,7 @@
app:tabGravity="start"
app:tabMode="scrollable" />
</org.oxycblt.auxio.ui.coordinator.EdgeAppBarLayout>
</org.oxycblt.auxio.ui.AuxioAppBarLayout>
<FrameLayout
@@ -127,4 +127,4 @@
</org.oxycblt.auxio.home.EdgeFrameLayout>
</org.oxycblt.auxio.ui.coordinator.EdgeCoordinatorLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>