feat: 优化代码

pull/105/head
kunfei 5 years ago
parent 75359cbeb7
commit cbc30ce17d
  1. 2
      app/src/main/java/io/legado/app/lib/theme/TintHelper.kt

@ -192,6 +192,7 @@ object TintHelper {
} }
} }
@SuppressLint("PrivateResource")
fun setTint(radioButton: RadioButton, @ColorInt color: Int, useDarker: Boolean) { fun setTint(radioButton: RadioButton, @ColorInt color: Int, useDarker: Boolean) {
val sl = ColorStateList( val sl = ColorStateList(
arrayOf( arrayOf(
@ -290,6 +291,7 @@ object TintHelper {
setCursorTint(editText, color) setCursorTint(editText, color)
} }
@SuppressLint("PrivateResource")
fun setTint(box: CheckBox, @ColorInt color: Int, useDarker: Boolean) { fun setTint(box: CheckBox, @ColorInt color: Int, useDarker: Boolean) {
val sl = ColorStateList( val sl = ColorStateList(
arrayOf( arrayOf(

Loading…
Cancel
Save