mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-01-26 17:06:56 +00:00
Add Open website string resources
This commit is contained in:
parent
e0c1ca1209
commit
6fc0d8fce4
@ -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…
Reference in New Issue
Block a user