Skip to content

Commit

Permalink
Add Open website string resources
Browse files Browse the repository at this point in the history
  • Loading branch information
Peyman-hme authored and Stypox committed Jun 8, 2021
1 parent e0c1ca1 commit 6fc0d8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit 6fc0d8f

Please sign in to comment.