Updated some dialogs to md3

This commit is contained in:
archroid 2022-05-20 14:54:45 +04:30
parent 536098bf0b
commit 7898625f8c
No known key found for this signature in database
GPG Key ID: D8EE5C11EDF911B1

View File

@ -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