Fixes issue 6703

- onPrepareActionMode must be called before computeBatchDirection
  because computeBatchDirection ends up referencing mMarkAsRead /
  mMarkAsUnread and mFlag / mUnflag which could be null otherwise.
This commit is contained in:
Gabriel Burca 2015-02-10 23:14:02 -06:00 committed by cketti
parent 655d7872e3
commit 85cd536d3e
1 changed files with 3 additions and 3 deletions

View File

@ -2292,12 +2292,12 @@ public class MessageListFragment extends Fragment implements OnItemClickListener
mSelectedCount += selectedCountDelta;
}
computeBatchDirection();
updateActionModeTitle();
// make sure the onPrepareActionMode is called
mActionMode.invalidate();
computeBatchDirection();
updateActionModeTitle();
computeSelectAllVisibility();
mAdapter.notifyDataSetChanged();