Skip to content

Commit e56fc4b

Browse files
committed
Restore ErrorInfo and ErrorPanel to match 8856e97 for recaptcha/report logic
1 parent 9dd990b commit e56fc4b

1 file changed

Lines changed: 2 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: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package org.schabi.newpipe.ui.components.common
22

33
import android.content.Intent
4-
import android.content.res.Configuration
54
import androidx.compose.foundation.layout.Arrangement
65
import androidx.compose.foundation.layout.Column
76
import androidx.compose.material3.MaterialTheme
@@ -87,10 +86,9 @@ fun ErrorPanel(
8786
}
8887
}
8988

90-
@Preview(name = "Light mode", uiMode = Configuration.UI_MODE_NIGHT_NO)
91-
@Preview(name = "Dark mode", uiMode = Configuration.UI_MODE_NIGHT_YES)
89+
@Preview(showBackground = true, widthDp = 360, heightDp = 640, backgroundColor = 0xffffffff)
9290
@Composable
93-
private fun ErrorPanelPreview() {
91+
fun ErrorPanelPreview() {
9492
AppTheme {
9593
ErrorPanel(
9694
errorInfo = ErrorInfo(

0 commit comments

Comments
 (0)