mirror of
https://codeberg.org/gitnex/GitNex
synced 2025-02-09 00:28:49 +01:00
Hide mark as read button when no notifications are available (#938)
Closes #847 Co-authored-by: M M Arif <mmarif@swatian.com> Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/938 Reviewed-by: opyale <opyale@noreply.codeberg.org> Co-authored-by: M M Arif <mmarif@noreply.codeberg.org> Co-committed-by: M M Arif <mmarif@noreply.codeberg.org>
This commit is contained in:
parent
8d0df59bfe
commit
f96827488b
@ -253,6 +253,10 @@ public class NotificationsFragment extends Fragment implements NotificationsAdap
|
|||||||
if(notificationThreads.isEmpty()) {
|
if(notificationThreads.isEmpty()) {
|
||||||
|
|
||||||
noDataNotifications.setVisibility(View.VISIBLE);
|
noDataNotifications.setVisibility(View.VISIBLE);
|
||||||
|
markAllAsRead.setVisibility(View.GONE);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
markAllAsRead.setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user