diff --git a/app/src/main/java/ani/dantotsu/media/MediaListDialogFragment.kt b/app/src/main/java/ani/dantotsu/media/MediaListDialogFragment.kt index b1576e40ab5..fe5c0c93a04 100644 --- a/app/src/main/java/ani/dantotsu/media/MediaListDialogFragment.kt +++ b/app/src/main/java/ani/dantotsu/media/MediaListDialogFragment.kt @@ -16,7 +16,7 @@ import ani.dantotsu.connections.anilist.Anilist import ani.dantotsu.connections.anilist.api.FuzzyDate import ani.dantotsu.connections.mal.MAL import ani.dantotsu.databinding.BottomSheetMediaListBinding -import com.google.android.material.switchmaterial.SwitchMaterial +import com.google.android.material.materialswitch.MaterialSwitch import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.launch import kotlinx.coroutines.withContext @@ -196,7 +196,7 @@ class MediaListDialogFragment : BottomSheetDialogFragment() { } media?.inCustomListsOf?.forEach { - SwitchMaterial(requireContext()).apply { + MaterialSwitch(requireContext()).apply { isChecked = it.value text = it.key setOnCheckedChangeListener { _, isChecked -> diff --git a/app/src/main/res/color/button_switch_track.xml b/app/src/main/res/color/button_switch_track.xml index a22a2cc2511..b6b00672a3f 100644 --- a/app/src/main/res/color/button_switch_track.xml +++ b/app/src/main/res/color/button_switch_track.xml @@ -1,5 +1,5 @@ - - - + + + \ No newline at end of file diff --git a/app/src/main/res/layout/activity_player_settings.xml b/app/src/main/res/layout/activity_player_settings.xml index 2685484ca1c..3980f9d6b00 100644 --- a/app/src/main/res/layout/activity_player_settings.xml +++ b/app/src/main/res/layout/activity_player_settings.xml @@ -90,7 +90,7 @@ android:paddingEnd="32dp" android:text="@string/video" /> - - + - - - - - - + @@ -643,7 +643,7 @@ android:paddingEnd="32dp" android:text="@string/auto" /> - - - + - - + - - + - - + - - + - - + - - + - - + - - + - - + - - + - - + - - + - - + - - - - - - - - - - - - - + - - + diff --git a/app/src/main/res/layout/activity_settings.xml b/app/src/main/res/layout/activity_settings.xml index 849098faef6..5424f526df4 100644 --- a/app/src/main/res/layout/activity_settings.xml +++ b/app/src/main/res/layout/activity_settings.xml @@ -161,7 +161,7 @@ - - - - - - - - - - - - - - - - - + - - + - - + - - + - - - - - - - - - - - - - - - - -