Fix label listing for users

This commit is contained in:
qwerty287 2022-11-02 09:12:03 +01:00
parent c45a9bb7df
commit 77b8fcff32
No known key found for this signature in database
GPG key ID: E0464C650D9D25B2

View file

@ -47,10 +47,9 @@ public class LabelsActions {
if (issueLabelsList.size() > 0) {
for (int i = 0; i < issueLabelsList.size(); i++) {
for (Label label : issueLabelsList) {
currentLabelsIds.add(
Math.toIntExact(issueLabelsList.get(i).getId()));
currentLabelsIds.add(Math.toIntExact(label.getId()));
}
}
} else {
@ -111,10 +110,10 @@ public class LabelsActions {
@NonNull retrofit2.Response<List<Label>>
responseOrg) {
if (responseOrg.body() != null) {
if (responseOrg.isSuccessful()
&& responseOrg.body() != null) {
labelsList.addAll(responseOrg.body());
materialAlertDialogBuilder.show();
}
if (labelsList.isEmpty()) {
@ -123,6 +122,8 @@ public class LabelsActions {
ctx,
ctx.getResources()
.getString(R.string.noDataFound));
} else {
materialAlertDialogBuilder.show();
}
labelsBinding.labelsRecyclerView.setAdapter(