mirror of
https://github.com/He4eT/yamf_launcher.git
synced 2026-05-05 01:47:24 +00:00
Moved some missed strings to a string resource
This commit is contained in:
parent
103cf4605c
commit
8965e46cbb
3 changed files with 5 additions and 3 deletions
|
|
@ -39,7 +39,8 @@ class SettingsFragment : PreferenceFragmentCompat(), TitleProvider {
|
||||||
if (intent.resolveActivity(requireContext().packageManager) != null) {
|
if (intent.resolveActivity(requireContext().packageManager) != null) {
|
||||||
startActivity(intent)
|
startActivity(intent)
|
||||||
} else {
|
} 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 }
|
true }
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -261,11 +261,11 @@ class SharedPreferenceManager (private val context: Context) {
|
||||||
AlertDialog.Builder(context).apply {
|
AlertDialog.Builder(context).apply {
|
||||||
setTitle(context.getString(R.string.confirm_title))
|
setTitle(context.getString(R.string.confirm_title))
|
||||||
setMessage(context.getString(R.string.reset_confirm_text))
|
setMessage(context.getString(R.string.reset_confirm_text))
|
||||||
setPositiveButton("Yes") { _, _ ->
|
setPositiveButton(context.getString(R.string.confirm_yes)) { _, _ ->
|
||||||
performReset()
|
performReset()
|
||||||
}
|
}
|
||||||
|
|
||||||
setNegativeButton("Cancel") { _, _ ->
|
setNegativeButton(context.getString(R.string.confirm_no)) { _, _ ->
|
||||||
}
|
}
|
||||||
}.create().show()
|
}.create().show()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,7 @@
|
||||||
<string name="settings_title">Launcher Settings</string>
|
<string name="settings_title">Launcher Settings</string>
|
||||||
|
|
||||||
<string name="default_home">Set Default Home</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>
|
<string name="customization">Customization</string>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue