Skip to content

Commit 33d69d5

Browse files
committed
fix(notification): empty state
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
1 parent 59f3255 commit 33d69d5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

app/src/main/java/com/owncloud/android/ui/fragment/notifications/NotificationsFragment.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,9 @@ class NotificationsFragment :
352352
// after any action successfully completed remove the notification
353353
if (isSuccess) {
354354
adapter?.removeNotification(notification.notificationId)
355+
if (adapter?.itemCount == 0) {
356+
state = NotificationsUIState.Empty
357+
}
355358
} else {
356359
adapter?.bindButtons(holder, notification)
357360
DisplayUtils.showSnackMessage(requireActivity(), getString(R.string.notification_action_failed))

0 commit comments

Comments
 (0)