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