Skip to content

Commit 45453ec

Browse files
SttApolloIsira-Seneviratne
authored andcommitted
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>
1 parent c1ac055 commit 45453ec

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

  • app/src/main/java/org/schabi/newpipe/ui/components/common

app/src/main/java/org/schabi/newpipe/ui/components/common/ErrorPanel.kt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,12 @@ fun ErrorPanel(
9090
ErrorAction.SOLVE_CAPTCHA -> {
9191
ServiceColoredButton(onClick = {
9292
// Starting ReCaptcha Challenge Activity
93-
val intent = Intent(context, ReCaptchaActivity::class.java).apply {
94-
putExtra(
93+
val intent = Intent(context, ReCaptchaActivity::class.java)
94+
.putExtra(
9595
ReCaptchaActivity.RECAPTCHA_URL_EXTRA,
9696
(errorInfo.throwable as ReCaptchaException).url
9797
)
98-
addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
99-
}
98+
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
10099
context.startActivity(intent)
101100
}) {
102101
Text(stringResource(errorActionType.actionStringId).uppercase())

0 commit comments

Comments
 (0)