Fix issues on older API versions and tablets (#5433)

* Fix tablet's navigation rail and toolbar color

* Fix tracking sheet crash on older APIs

* Fix settings crash on older APIs
This commit is contained in:
Ivan Iskandar
2021-06-20 22:05:37 +07:00
committed by GitHub
parent 859e8deb02
commit c3fb5af3fc
5 changed files with 27 additions and 25 deletions

View File

@@ -23,7 +23,6 @@
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
android:theme="?attr/actionBarTheme" />
</eu.kanade.tachiyomi.widget.ElevationAppBarLayout>
@@ -72,13 +71,10 @@
<com.google.android.material.navigationrail.NavigationRailView
android:id="@+id/side_nav"
style="@style/Widget.MaterialComponents.NavigationRailView.Colored"
android:layout_width="wrap_content"
android:layout_height="0dp"
app:elevation="0dp"
app:itemIconTint="@color/nav_selector"
app:itemRippleColor="?attr/colorControlHighlight"
app:itemTextColor="@color/nav_selector"
app:itemRippleColor="@color/ripple_toolbar_fainter"
app:labelVisibilityMode="labeled"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"