1
0
Fork 1

Sort tags in drawer

(cherry picked from commit 9d0dcd9dbf8c969042a4bee8b71b4fc190ad85bc)
This commit is contained in:
Stephen Paul Weber 2024-09-12 01:03:14 -05:00 committed by Arne
parent d682951226
commit 5f67fe92b9

View file

@ -295,6 +295,9 @@ public class ConversationsActivity extends XmppActivity implements OnConversatio
binding.drawer.getItemAdapter().add(item);
}
}
items.subList(4, 4 + tags.size()).sort((x, y) -> x.getTag() == null ? -1 : ((Comparable) x.getTag()).compareTo(y.getTag()));
binding.drawer.getItemAdapter().getFastAdapter().notifyDataSetChanged();
}
@Override