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 committed May 19, 2021
1 parent 0f37930 commit 7199ea3
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 @@ -716,4 +716,5 @@
<string name="night_theme_summary">Select your favorite night theme — %s</string>
<string name="select_night_theme_toast">You can select your favorite night theme below</string>
<string name="download_has_started">Download has started</string>
<string name="open_website_license">Open Website</string>
</resources>

0 comments on commit 7199ea3

Please sign in to comment.