mirror of https://codeberg.org/gitnex/GitNex.git
Fix visibility of "Mark as read" button (#975)
### Describe what your pull request does and which issue you’re targeting <!-- Create a new issue, if it doesn't exist yet --> Closes #970 <br><br> <!-- Make sure you are targeting the "main" branch, pull requests on release branches are only allowed for bug fixes. --> - [X] I carefully read the [contribution guidelines](https://codeberg.org/GitNex/GitNex/src/branch/main/CONTRIBUTING.md). - [X] I'm following the code standards as defined [here](https://codeberg.org/gitnex/GitNex/wiki/Code-Standards). - [X] By submitting this pull request, I permit GitNex to license my work under the [GNU General Public License v3](https://codeberg.org/GitNex/GitNex/src/branch/main/LICENSE). Co-authored-by: qwerty287 <ndev@web.de> Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/975 Reviewed-by: M M Arif <mmarif@noreply.codeberg.org> Co-authored-by: qwerty287 <qwerty287@noreply.codeberg.org> Co-committed-by: qwerty287 <qwerty287@noreply.codeberg.org>
This commit is contained in:
parent
2659d87bbe
commit
77d1d448ba
|
@ -250,6 +250,8 @@ public class NotificationsFragment extends Fragment implements NotificationsAdap
|
||||||
AppUtil.setMultiVisibility(View.GONE, loadingMoreView, progressBar);
|
AppUtil.setMultiVisibility(View.GONE, loadingMoreView, progressBar);
|
||||||
pullToRefresh.setRefreshing(false);
|
pullToRefresh.setRefreshing(false);
|
||||||
|
|
||||||
|
if(currentFilterMode.equalsIgnoreCase("unread")) {
|
||||||
|
|
||||||
if(notificationThreads.isEmpty()) {
|
if(notificationThreads.isEmpty()) {
|
||||||
|
|
||||||
noDataNotifications.setVisibility(View.VISIBLE);
|
noDataNotifications.setVisibility(View.VISIBLE);
|
||||||
|
@ -259,6 +261,7 @@ public class NotificationsFragment extends Fragment implements NotificationsAdap
|
||||||
markAllAsRead.setVisibility(View.VISIBLE);
|
markAllAsRead.setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue