diff --git a/src/com/fsck/k9/fragment/MessageListFragment.java b/src/com/fsck/k9/fragment/MessageListFragment.java index f6bd09f74..205383e55 100644 --- a/src/com/fsck/k9/fragment/MessageListFragment.java +++ b/src/com/fsck/k9/fragment/MessageListFragment.java @@ -2224,7 +2224,7 @@ public class MessageListFragment extends Fragment implements OnItemClickListener } if (mActionMode == null) { - mActionMode = getActivity().startActionMode(mActionModeCallback); + startAndPrepareActionMode(); } computeBatchDirection(); updateActionModeTitle(); @@ -2283,7 +2283,7 @@ public class MessageListFragment extends Fragment implements OnItemClickListener return; } } else { - mActionMode = getActivity().startActionMode(mActionModeCallback); + startAndPrepareActionMode(); } if (selected) { @@ -3542,13 +3542,18 @@ public class MessageListFragment extends Fragment implements OnItemClickListener } if (mActionMode == null) { - mActionMode = getActivity().startActionMode(mActionModeCallback); + startAndPrepareActionMode(); } recalculateSelectionCount(); updateActionModeTitle(); } + private void startAndPrepareActionMode() { + mActionMode = getActivity().startActionMode(mActionModeCallback); + mActionMode.invalidate(); + } + /** * Recalculates the selection count. *