From 074321865eb6e04ae796cbe8489990305aaaf4df Mon Sep 17 00:00:00 2001 From: Jays2Kings Date: Sun, 11 Jul 2021 13:43:44 -0400 Subject: [PATCH] Making checkbox animations closer to how the native checkbox animation is + rename of one anim --- .../eu/kanade/tachiyomi/widget/TriStateCheckBox.kt | 2 +- .../widget/materialdialogs/QuadStateCheckBox.kt | 2 +- .../anim_check_box_blank_to_checked_24dp.xml | 12 ++++++------ ....xml => anim_check_box_checked_to_blank_24dp.xml} | 12 ++++++------ .../drawable/anim_check_box_checked_to_x_24dp.xml | 12 ++++++------ .../res/drawable/anim_check_box_x_to_blank_24dp.xml | 12 ++++++------ 6 files changed, 26 insertions(+), 26 deletions(-) rename app/src/main/res/drawable/{anim_checkbox_checked_to_blank_24dp.xml => anim_check_box_checked_to_blank_24dp.xml} (95%) diff --git a/app/src/main/java/eu/kanade/tachiyomi/widget/TriStateCheckBox.kt b/app/src/main/java/eu/kanade/tachiyomi/widget/TriStateCheckBox.kt index 4afdd468ad..e916dc3b33 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/widget/TriStateCheckBox.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/widget/TriStateCheckBox.kt @@ -100,7 +100,7 @@ class TriStateCheckBox constructor(context: Context, attrs: AttributeSet?) : setAnimVectorCompat( when (oldState) { State.INVERSED -> R.drawable.anim_check_box_x_to_blank_24dp - else -> R.drawable.anim_checkbox_checked_to_blank_24dp + else -> R.drawable.anim_check_box_checked_to_blank_24dp }, R.attr.colorControlNormal ) diff --git a/app/src/main/java/eu/kanade/tachiyomi/widget/materialdialogs/QuadStateCheckBox.kt b/app/src/main/java/eu/kanade/tachiyomi/widget/materialdialogs/QuadStateCheckBox.kt index 5c56f85d65..d81722000f 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/widget/materialdialogs/QuadStateCheckBox.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/widget/materialdialogs/QuadStateCheckBox.kt @@ -18,7 +18,7 @@ class QuadStateCheckBox @JvmOverloads constructor(context: Context, attrs: Attri State.UNCHECKED -> setAnimVectorCompat( when (this.state) { State.INVERSED -> R.drawable.anim_check_box_x_to_blank_24dp - else -> R.drawable.anim_checkbox_checked_to_blank_24dp + else -> R.drawable.anim_check_box_checked_to_blank_24dp }, R.attr.colorControlNormal ) diff --git a/app/src/main/res/drawable/anim_check_box_blank_to_checked_24dp.xml b/app/src/main/res/drawable/anim_check_box_blank_to_checked_24dp.xml index c930ea2b20..0b24583aaf 100644 --- a/app/src/main/res/drawable/anim_check_box_blank_to_checked_24dp.xml +++ b/app/src/main/res/drawable/anim_check_box_blank_to_checked_24dp.xml @@ -33,11 +33,11 @@ + android:interpolator="@android:interpolator/linear_out_slow_in"/> @@ -61,19 +61,19 @@ + android:interpolator="@android:interpolator/linear_out_slow_in"/> + android:interpolator="@android:interpolator/linear_out_slow_in"/> diff --git a/app/src/main/res/drawable/anim_checkbox_checked_to_blank_24dp.xml b/app/src/main/res/drawable/anim_check_box_checked_to_blank_24dp.xml similarity index 95% rename from app/src/main/res/drawable/anim_checkbox_checked_to_blank_24dp.xml rename to app/src/main/res/drawable/anim_check_box_checked_to_blank_24dp.xml index 6c996364e9..5363d454de 100644 --- a/app/src/main/res/drawable/anim_checkbox_checked_to_blank_24dp.xml +++ b/app/src/main/res/drawable/anim_check_box_checked_to_blank_24dp.xml @@ -33,11 +33,11 @@ + android:interpolator="@android:interpolator/linear_out_slow_in"/> @@ -61,19 +61,19 @@ + android:interpolator="@android:interpolator/linear_out_slow_in"/> + android:interpolator="@android:interpolator/linear_out_slow_in"/> diff --git a/app/src/main/res/drawable/anim_check_box_checked_to_x_24dp.xml b/app/src/main/res/drawable/anim_check_box_checked_to_x_24dp.xml index f1da805abb..a22dbac08c 100644 --- a/app/src/main/res/drawable/anim_check_box_checked_to_x_24dp.xml +++ b/app/src/main/res/drawable/anim_check_box_checked_to_x_24dp.xml @@ -33,11 +33,11 @@ + android:interpolator="@android:interpolator/linear_out_slow_in"/> @@ -61,19 +61,19 @@ + android:interpolator="@android:interpolator/linear_out_slow_in"/> + android:interpolator="@android:interpolator/linear_out_slow_in"/> diff --git a/app/src/main/res/drawable/anim_check_box_x_to_blank_24dp.xml b/app/src/main/res/drawable/anim_check_box_x_to_blank_24dp.xml index acf22aa178..bb8b42c8a3 100644 --- a/app/src/main/res/drawable/anim_check_box_x_to_blank_24dp.xml +++ b/app/src/main/res/drawable/anim_check_box_x_to_blank_24dp.xml @@ -33,11 +33,11 @@ + android:interpolator="@android:interpolator/linear_out_slow_in"/> @@ -61,19 +61,19 @@ + android:interpolator="@android:interpolator/linear_out_slow_in"/> + android:interpolator="@android:interpolator/linear_out_slow_in"/>