0
0
Fork 0
mirror of https://github.com/YTVanced/VancedManager synced 2024-11-22 19:25:11 +00:00

moved string to strings.xml

This commit is contained in:
Xinto 2020-11-12 23:31:13 +04:00
parent a6048b4df0
commit b20f20e853
2 changed files with 4 additions and 3 deletions

View file

@ -80,7 +80,7 @@ object DialogContainer {
}
setNeutralButton(context.getString(R.string.close)) { dialog, _ -> dialog.dismiss() }
if (fullMsg != null)
setNegativeButton("Advanced") { _, _ -> basicDialog("Advanced", fullMsg, context) }
setNegativeButton(context.getString(R.string.advanced)) { _, _ -> basicDialog(context.getString(R.string.advanced), fullMsg, context) }
}
context.getString(R.string.installation_miui) -> {
setPositiveButton(context.getString(R.string.guide)) { _, _ ->
@ -88,12 +88,12 @@ object DialogContainer {
}
setNeutralButton(context.getString(R.string.close)) { dialog, _ -> dialog.dismiss() }
if (fullMsg != null)
setNegativeButton("Advanced") { _, _ -> basicDialog("Advanced", fullMsg, context) }
setNegativeButton(context.getString(R.string.advanced)) { _, _ -> basicDialog(context.getString(R.string.advanced), fullMsg, context) }
}
else -> {
setPositiveButton(context.getString(R.string.close)) { dialog, _ -> dialog.dismiss() }
if (fullMsg != null)
setNegativeButton("Advanced") { _, _ -> basicDialog("Advanced", fullMsg, context) }
setNegativeButton(context.getString(R.string.advanced)) { _, _ -> basicDialog(context.getString(R.string.advanced), fullMsg, context) }
}
}
create()

View file

@ -64,6 +64,7 @@
<string name="variant">Variant</string>
<!-- Dialogs -->
<string name="advanced">Advanced</string>
<string name="app_install_files_detected">%1$s installation files detected!</string>
<string name="app_install_files_detected_summary">Manager detected that all necessary files for %1$s installation were found. Do you want to install?</string>
<string name="checking_updates">Checking for updates…</string>