Commit 39c49fad authored by Thomas's avatar Thomas
Browse files

Fix crash with trends

parent e9fd84d7
Loading
Loading
Loading
Loading
+14 −12
Original line number Diff line number Diff line
@@ -121,6 +121,7 @@ public class FragmentMastodonTag extends Fragment {
            binding.noActionText.setText(R.string.no_tags);
            return;
        }
        if (search != null) {
            Collections.sort(tags, (obj1, obj2) -> Integer.compare(obj2.getWeight(), obj1.getWeight()));
            boolean isInCollection = false;
            for (Tag tag : tags) {
@@ -135,6 +136,7 @@ public class FragmentMastodonTag extends Fragment {
                tag.history = new ArrayList<>();
                tags.add(0, tag);
            }
        }
        binding.recyclerView.setVisibility(View.VISIBLE);
        binding.noAction.setVisibility(View.GONE);
        tagAdapter = new TagAdapter(tags);