diff --git a/app/src/main/java/io/legado/app/lib/theme/TintHelper.kt b/app/src/main/java/io/legado/app/lib/theme/TintHelper.kt
index 8346e2525..b7b042ebc 100644
--- a/app/src/main/java/io/legado/app/lib/theme/TintHelper.kt
+++ b/app/src/main/java/io/legado/app/lib/theme/TintHelper.kt
@@ -317,15 +317,18 @@ object TintHelper {
color
)
)
- box.buttonTintList = sl
- val drawable =
- createTintedDrawable(
- ContextCompat.getDrawable(
- box.context,
- R.drawable.abc_btn_check_material
- ), sl
- )
- box.buttonDrawable = drawable
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
+ box.buttonTintList = sl
+ } else {
+ val drawable =
+ createTintedDrawable(
+ ContextCompat.getDrawable(
+ box.context,
+ R.drawable.abc_btn_check_material
+ ), sl
+ )
+ box.buttonDrawable = drawable
+ }
}
fun setTint(image: ImageView, @ColorInt color: Int) {
diff --git a/app/src/main/res/layout/dialog_read_aloud.xml b/app/src/main/res/layout/dialog_read_aloud.xml
index 34b644939..68c0282e4 100644
--- a/app/src/main/res/layout/dialog_read_aloud.xml
+++ b/app/src/main/res/layout/dialog_read_aloud.xml
@@ -74,13 +74,10 @@
android:layout_height="1dp"
android:layout_weight="1" />
-
@@ -142,14 +139,11 @@
android:textColor="@color/tv_text_default"
android:textSize="14sp" />
-