From 3c7b505b5bcaac8ad8492b8fe5d4a7137803a950 Mon Sep 17 00:00:00 2001 From: M M Arif Date: Thu, 29 Oct 2020 13:52:40 +0100 Subject: [PATCH] Fix view recycling issue (#742) Fix view issue Co-authored-by: M M Arif Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/742 --- .../org/mian/gitnex/adapters/AssigneesListAdapter.java | 8 +++++++- .../java/org/mian/gitnex/adapters/LabelsListAdapter.java | 6 +++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/mian/gitnex/adapters/AssigneesListAdapter.java b/app/src/main/java/org/mian/gitnex/adapters/AssigneesListAdapter.java index d80fa661..fcc823af 100644 --- a/app/src/main/java/org/mian/gitnex/adapters/AssigneesListAdapter.java +++ b/app/src/main/java/org/mian/gitnex/adapters/AssigneesListAdapter.java @@ -50,12 +50,13 @@ public class AssigneesListAdapter extends RecyclerView.Adapter(new LinkedHashSet<>(currentAssignees)); + for(int i = 0; i < currentAssignees.size(); i++) { if(currentAssignees.contains(currentItem.getLogin())) { @@ -98,6 +102,7 @@ public class AssigneesListAdapter extends RecyclerView.Adapter { @@ -119,6 +124,7 @@ public class AssigneesListAdapter extends RecyclerView.Adapter(new LinkedHashSet<>(currentLabelsIds)); + for(int i = 0; i < currentLabelsIds.size(); i++) { if(currentLabelsIds.contains(currentItem.getId())) { @@ -93,6 +95,7 @@ public class LabelsListAdapter extends RecyclerView.Adapter { @@ -117,6 +120,7 @@ public class LabelsListAdapter extends RecyclerView.Adapter