Add Open website string resources

This commit is contained in:
Peyman-hme 2021-05-19 18:48:26 +04:30 committed by Stypox
parent e0c1ca1209
commit 6fc0d8fce4
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23
2 changed files with 3 additions and 2 deletions

View File

@ -135,9 +135,9 @@ object LicenseFragmentHelper {
alert.setView(webView)
Localization.assureCorrectAppLanguage(context)
alert.setPositiveButton(
"DISMISS"
R.string.dismiss
) { dialog, _ -> dialog.dismiss() }
alert.setNeutralButton("Open website") { _, _ ->
alert.setNeutralButton(R.string.open_website_license) { _, _ ->
ShareUtils.openUrlInBrowser(context, component.link)
}
alert.show()

View File

@ -732,4 +732,5 @@
<string name="metadata_privacy_unlisted">Unlisted</string>
<string name="metadata_privacy_private">Private</string>
<string name="metadata_privacy_internal">Internal</string>
<string name="open_website_license">Open Website</string>
</resources>