diff --git a/app/src/main/java/app/pachli/util/ListStatusAccessibilityDelegate.kt b/app/src/main/java/app/pachli/util/ListStatusAccessibilityDelegate.kt index 614094b1c..39277584c 100644 --- a/app/src/main/java/app/pachli/util/ListStatusAccessibilityDelegate.kt +++ b/app/src/main/java/app/pachli/util/ListStatusAccessibilityDelegate.kt @@ -54,7 +54,9 @@ class ListStatusAccessibilityDelegate( // Ignore notifications that don't have an associated statusViewData, // otherwise the accessors throw IllegalStateException. // See https://github.com/pachli/pachli-android/issues/669 - if ((status as? NotificationViewData)?.statusViewData == null) return + if (status as? NotificationViewData != null) { + if (status.statusViewData == null) return + } if (status.spoilerText.isNotEmpty()) { info.addAction(if (status.isExpanded) collapseCwAction else expandCwAction)