diff --git a/app/src/main/java/com/github/libretube/SearchFragment.kt b/app/src/main/java/com/github/libretube/SearchFragment.kt index 37fff32db..7652da99a 100644 --- a/app/src/main/java/com/github/libretube/SearchFragment.kt +++ b/app/src/main/java/com/github/libretube/SearchFragment.kt @@ -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() } diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index ec811d248..662bdfa3c 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -76,4 +76,5 @@ Channels All Playlists + Ok