Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2c1dad55 authored by Jesse Vincent's avatar Jesse Vincent
Browse files

when we go into a folder for the first time, jump to the first message being...

when we go into a folder for the first time, jump to the first message being displayed rather than the widget at the end of the list
parent da8ad693
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -212,6 +212,7 @@ public class MessageList

                case MSG_ADD_MESSAGE:
                {
                    boolean wasEmpty = mAdapter.messages.isEmpty();
                    List<MessageInfoHolder> messages = (List<MessageInfoHolder>)((Object[]) msg.obj)[0];
                    for (MessageInfoHolder message : messages)
                    {
@@ -224,6 +225,9 @@ public class MessageList

                        mAdapter.messages.add(index, message);
                    }

                    if (wasEmpty)
                        mListView.setSelection(0);
                    mAdapter.notifyDataSetChanged();
                    break;
                }