Fixed hardcoded strings

This commit is contained in:
Bnyro 2022-05-15 10:30:07 +02:00
parent 0665ecb622
commit 671b59664b
2 changed files with 5 additions and 4 deletions

View File

@ -70,12 +70,12 @@ class SearchFragment : Fragment() {
AlertDialog.Builder(view.context)
.setTitle(getString(R.string.choose_filter))
.setSingleChoiceItems(options, checkedItem, DialogInterface.OnClickListener {
dialog, id -> tempSelectedItem = id
dialog, id -> tempSelectedItem = id
})
.setPositiveButton("Ok", DialogInterface.OnClickListener {
dialog, id -> checkedItem = tempSelectedItem
.setPositiveButton(getString(R.string.okay), DialogInterface.OnClickListener {
dialog, id -> checkedItem = tempSelectedItem
})
.setNegativeButton("Cancel", null)
.setNegativeButton(getString(R.string.cancel), null)
.create()
.show()
}

View File

@ -76,4 +76,5 @@
<string name="channels">Channels</string>
<string name="all">All</string>
<string name="playlists">Playlists</string>
<string name="okay">Ok</string>
</resources>