Add Open website string resources
This commit is contained in:
parent
e0c1ca1209
commit
6fc0d8fce4
2 changed files with 3 additions and 2 deletions
|
@ -135,9 +135,9 @@ object LicenseFragmentHelper {
|
||||||
alert.setView(webView)
|
alert.setView(webView)
|
||||||
Localization.assureCorrectAppLanguage(context)
|
Localization.assureCorrectAppLanguage(context)
|
||||||
alert.setPositiveButton(
|
alert.setPositiveButton(
|
||||||
"DISMISS"
|
R.string.dismiss
|
||||||
) { dialog, _ -> dialog.dismiss() }
|
) { dialog, _ -> dialog.dismiss() }
|
||||||
alert.setNeutralButton("Open website") { _, _ ->
|
alert.setNeutralButton(R.string.open_website_license) { _, _ ->
|
||||||
ShareUtils.openUrlInBrowser(context, component.link)
|
ShareUtils.openUrlInBrowser(context, component.link)
|
||||||
}
|
}
|
||||||
alert.show()
|
alert.show()
|
||||||
|
|
|
@ -732,4 +732,5 @@
|
||||||
<string name="metadata_privacy_unlisted">Unlisted</string>
|
<string name="metadata_privacy_unlisted">Unlisted</string>
|
||||||
<string name="metadata_privacy_private">Private</string>
|
<string name="metadata_privacy_private">Private</string>
|
||||||
<string name="metadata_privacy_internal">Internal</string>
|
<string name="metadata_privacy_internal">Internal</string>
|
||||||
|
<string name="open_website_license">Open Website</string>
|
||||||
</resources>
|
</resources>
|
Loading…
Add table
Reference in a new issue