1
0
mirror of https://github.com/TeamNewPipe/NewPipe.git synced 2024-11-22 11:02:35 +01:00

Change "Ok" Button to "Dismiss" and also change "Open Website" button to neutral button

This commit is contained in:
Peyman-hme 2021-05-19 15:46:40 +04:30 committed by Stypox
parent 3dc4ed1764
commit e0c1ca1209
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23

View File

@ -134,10 +134,10 @@ object LicenseFragmentHelper {
alert.setTitle(component.license.name)
alert.setView(webView)
Localization.assureCorrectAppLanguage(context)
alert.setNegativeButton(
context.getString(R.string.finish)
alert.setPositiveButton(
"DISMISS"
) { dialog, _ -> dialog.dismiss() }
alert.setPositiveButton("Open website") { _, _ ->
alert.setNeutralButton("Open website") { _, _ ->
ShareUtils.openUrlInBrowser(context, component.link)
}
alert.show()