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

Commit 613ef6ce authored by cketti's avatar cketti
Browse files

"Select all" now won't start selection mode when there are no messages

parent 508e9e8a
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1810,6 +1810,11 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick
    private void setSelectionState(boolean selected) {
        if (selected) {
            mSelectedCount = mAdapter.getCount();
            if (mSelectedCount == 0) {
                // Nothing to do if there are no messages
                return;
            }

            for (int i = 0, end = mSelectedCount; i < end; i++) {
                mSelected.put(i, true);
            }