fix sorting
This commit is contained in:
parent
b2556daacd
commit
c09551b4c0
|
@ -675,7 +675,7 @@ public class ConversationFragment extends XmppFragment
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onActionItemClicked(ActionMode mode, MenuItem item) {
|
public boolean onActionItemClicked(ActionMode mode, MenuItem item) {
|
||||||
Collections.sort(selectedMessages, (o1, o2) -> Long.compare(o1.getTimeSent(), o2.getMergedTimeSent()));
|
Collections.sort(selectedMessages, Comparator.comparingLong(Message::getTimeSent));
|
||||||
if (item.getItemId() == R.id.copy_message) {
|
if (item.getItemId() == R.id.copy_message) {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue