Moved some missed strings to a string resource

This commit is contained in:
ottoptj 2024-10-04 21:59:26 +03:00
commit 8965e46cbb
3 changed files with 5 additions and 3 deletions

View file

@ -39,7 +39,8 @@ class SettingsFragment : PreferenceFragmentCompat(), TitleProvider {
if (intent.resolveActivity(requireContext().packageManager) != null) {
startActivity(intent)
} else {
Toast.makeText(requireContext(), "Unable to launch settings", Toast.LENGTH_SHORT).show()
Toast.makeText(requireContext(),
getString(R.string.unable_to_launch_settings), Toast.LENGTH_SHORT).show()
}
true }

View file

@ -261,11 +261,11 @@ class SharedPreferenceManager (private val context: Context) {
AlertDialog.Builder(context).apply {
setTitle(context.getString(R.string.confirm_title))
setMessage(context.getString(R.string.reset_confirm_text))
setPositiveButton("Yes") { _, _ ->
setPositiveButton(context.getString(R.string.confirm_yes)) { _, _ ->
performReset()
}
setNegativeButton("Cancel") { _, _ ->
setNegativeButton(context.getString(R.string.confirm_no)) { _, _ ->
}
}.create().show()
}

View file

@ -46,6 +46,7 @@
<string name="settings_title">Launcher Settings</string>
<string name="default_home">Set Default Home</string>
<string name="unable_to_launch_settings">Unable to launch settings</string>
<string name="customization">Customization</string>