From 7898625f8c3b812669c9385537769512157fac82 Mon Sep 17 00:00:00 2001 From: archroid Date: Fri, 20 May 2022 14:54:45 +0430 Subject: [PATCH] Updated some dialogs to md3 --- app/src/main/java/com/github/libretube/SearchFragment.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/github/libretube/SearchFragment.kt b/app/src/main/java/com/github/libretube/SearchFragment.kt index e97d7d44d..471736386 100644 --- a/app/src/main/java/com/github/libretube/SearchFragment.kt +++ b/app/src/main/java/com/github/libretube/SearchFragment.kt @@ -23,6 +23,7 @@ import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.RecyclerView import com.github.libretube.adapters.SearchAdapter import com.github.libretube.adapters.SearchHistoryAdapter +import com.google.android.material.dialog.MaterialAlertDialogBuilder import kotlinx.coroutines.GlobalScope import kotlinx.coroutines.delay import kotlinx.coroutines.launch @@ -78,7 +79,7 @@ class SearchFragment : Fragment() { getString(R.string.music_playlists) ) - AlertDialog.Builder(view.context) + MaterialAlertDialogBuilder(view.context) .setTitle(getString(R.string.choose_filter)) .setSingleChoiceItems(filterOptions, selectedFilter, DialogInterface.OnClickListener { _, id -> tempSelectedItem = id