Change "Ok" Button to "Dismiss" and also change "Open Website" button to neutral button
This commit is contained in:
parent
3dc4ed1764
commit
e0c1ca1209
1 changed files with 3 additions and 3 deletions
|
@ -134,10 +134,10 @@ object LicenseFragmentHelper {
|
||||||
alert.setTitle(component.license.name)
|
alert.setTitle(component.license.name)
|
||||||
alert.setView(webView)
|
alert.setView(webView)
|
||||||
Localization.assureCorrectAppLanguage(context)
|
Localization.assureCorrectAppLanguage(context)
|
||||||
alert.setNegativeButton(
|
alert.setPositiveButton(
|
||||||
context.getString(R.string.finish)
|
"DISMISS"
|
||||||
) { dialog, _ -> dialog.dismiss() }
|
) { dialog, _ -> dialog.dismiss() }
|
||||||
alert.setPositiveButton("Open website") { _, _ ->
|
alert.setNeutralButton("Open website") { _, _ ->
|
||||||
ShareUtils.openUrlInBrowser(context, component.link)
|
ShareUtils.openUrlInBrowser(context, component.link)
|
||||||
}
|
}
|
||||||
alert.show()
|
alert.show()
|
||||||
|
|
Loading…
Reference in a new issue