mirror of
https://github.com/TeamNewPipe/NewPipe.git
synced 2025-10-03 17:59:41 +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:
parent
8292f729ea
commit
f9222a6a68
1 changed files with 3 additions and 4 deletions
|
@ -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())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue