mirror of
https://codeberg.org/tom79/Fedilab
synced 2025-02-08 08:08:42 +01:00
Fix crash with trends
This commit is contained in:
parent
e9fd84d7eb
commit
39c49fad77
@ -121,6 +121,7 @@ public class FragmentMastodonTag extends Fragment {
|
|||||||
binding.noActionText.setText(R.string.no_tags);
|
binding.noActionText.setText(R.string.no_tags);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (search != null) {
|
||||||
Collections.sort(tags, (obj1, obj2) -> Integer.compare(obj2.getWeight(), obj1.getWeight()));
|
Collections.sort(tags, (obj1, obj2) -> Integer.compare(obj2.getWeight(), obj1.getWeight()));
|
||||||
boolean isInCollection = false;
|
boolean isInCollection = false;
|
||||||
for (Tag tag : tags) {
|
for (Tag tag : tags) {
|
||||||
@ -135,6 +136,7 @@ public class FragmentMastodonTag extends Fragment {
|
|||||||
tag.history = new ArrayList<>();
|
tag.history = new ArrayList<>();
|
||||||
tags.add(0, tag);
|
tags.add(0, tag);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
binding.recyclerView.setVisibility(View.VISIBLE);
|
binding.recyclerView.setVisibility(View.VISIBLE);
|
||||||
binding.noAction.setVisibility(View.GONE);
|
binding.noAction.setVisibility(View.GONE);
|
||||||
tagAdapter = new TagAdapter(tags);
|
tagAdapter = new TagAdapter(tags);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user