Skip to content

Commit 989c0cf

Browse files
committed
Fix REPORT in snackbar not opening ErrorActivity if MainActivity not shown
Bug caused by #11789
1 parent a369dee commit 989c0cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/org/schabi/newpipe/error/ErrorUtil.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ class ErrorUtil {
159159
Snackbar.make(rootView, errorInfo.getMessage(context), Snackbar.LENGTH_LONG)
160160
.setActionTextColor(Color.YELLOW)
161161
.setAction(context.getString(R.string.error_snackbar_action).uppercase()) {
162-
openActivity(context, errorInfo)
162+
context.startActivity(getErrorActivityIntent(context, errorInfo))
163163
}.show()
164164
}
165165
}

0 commit comments

Comments
 (0)