mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-11-20 17:14:49 +00:00
Update app/src/main/java/org/schabi/newpipe/ui/components/common/ErrorPanel.kt
Co-authored-by: Isira Seneviratne <31027858+Isira-Seneviratne@users.noreply.github.com>
This commit is contained in:
@@ -90,13 +90,12 @@ fun ErrorPanel(
|
|||||||
ErrorAction.SOLVE_CAPTCHA -> {
|
ErrorAction.SOLVE_CAPTCHA -> {
|
||||||
ServiceColoredButton(onClick = {
|
ServiceColoredButton(onClick = {
|
||||||
// Starting ReCaptcha Challenge Activity
|
// Starting ReCaptcha Challenge Activity
|
||||||
val intent = Intent(context, ReCaptchaActivity::class.java).apply {
|
val intent = Intent(context, ReCaptchaActivity::class.java)
|
||||||
putExtra(
|
.putExtra(
|
||||||
ReCaptchaActivity.RECAPTCHA_URL_EXTRA,
|
ReCaptchaActivity.RECAPTCHA_URL_EXTRA,
|
||||||
(errorInfo.throwable as ReCaptchaException).url
|
(errorInfo.throwable as ReCaptchaException).url
|
||||||
)
|
)
|
||||||
addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
|
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
|
||||||
}
|
|
||||||
context.startActivity(intent)
|
context.startActivity(intent)
|
||||||
}) {
|
}) {
|
||||||
Text(stringResource(errorActionType.actionStringId).uppercase())
|
Text(stringResource(errorActionType.actionStringId).uppercase())
|
||||||
|
|||||||
Reference in New Issue
Block a user