mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-13 13:50:30 +05:30
Updated some dialogs to md3
This commit is contained in:
parent
536098bf0b
commit
7898625f8c
@ -23,6 +23,7 @@ import androidx.recyclerview.widget.LinearLayoutManager
|
|||||||
import androidx.recyclerview.widget.RecyclerView
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
import com.github.libretube.adapters.SearchAdapter
|
import com.github.libretube.adapters.SearchAdapter
|
||||||
import com.github.libretube.adapters.SearchHistoryAdapter
|
import com.github.libretube.adapters.SearchHistoryAdapter
|
||||||
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
import kotlinx.coroutines.GlobalScope
|
import kotlinx.coroutines.GlobalScope
|
||||||
import kotlinx.coroutines.delay
|
import kotlinx.coroutines.delay
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
@ -78,7 +79,7 @@ class SearchFragment : Fragment() {
|
|||||||
getString(R.string.music_playlists)
|
getString(R.string.music_playlists)
|
||||||
)
|
)
|
||||||
|
|
||||||
AlertDialog.Builder(view.context)
|
MaterialAlertDialogBuilder(view.context)
|
||||||
.setTitle(getString(R.string.choose_filter))
|
.setTitle(getString(R.string.choose_filter))
|
||||||
.setSingleChoiceItems(filterOptions, selectedFilter, DialogInterface.OnClickListener {
|
.setSingleChoiceItems(filterOptions, selectedFilter, DialogInterface.OnClickListener {
|
||||||
_, id -> tempSelectedItem = id
|
_, id -> tempSelectedItem = id
|
||||||
|
Loading…
Reference in New Issue
Block a user