mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-11-07 02:33:00 +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 -> {
|
||||
ServiceColoredButton(onClick = {
|
||||
// Starting ReCaptcha Challenge Activity
|
||||
val intent = Intent(context, ReCaptchaActivity::class.java).apply {
|
||||
putExtra(
|
||||
val intent = Intent(context, ReCaptchaActivity::class.java)
|
||||
.putExtra(
|
||||
ReCaptchaActivity.RECAPTCHA_URL_EXTRA,
|
||||
(errorInfo.throwable as ReCaptchaException).url
|
||||
)
|
||||
addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
|
||||
}
|
||||
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
|
||||
context.startActivity(intent)
|
||||
}) {
|
||||
Text(stringResource(errorActionType.actionStringId).uppercase())
|
||||
|
||||
Reference in New Issue
Block a user