1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-23 18:02:15 -05:00

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
parent 74820a40db
commit 9ba2725ab1

View File

@ -2285,12 +2285,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();