1
0
Fork 0
mirror of https://github.com/TeamNewPipe/NewPipe.git synced 2025-10-03 09:49:21 +02: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:
Stt_lens 2025-08-04 16:45:12 -04:00 committed by Su TT
parent 8292f729ea
commit f9222a6a68

View file

@ -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())