mirror of
https://github.com/moparisthebest/k-9
synced 2024-08-13 17:03:48 -04: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:
parent
655d7872e3
commit
85cd536d3e
@ -2292,12 +2292,12 @@ public class MessageListFragment extends Fragment implements OnItemClickListener
|
|||||||
mSelectedCount += selectedCountDelta;
|
mSelectedCount += selectedCountDelta;
|
||||||
}
|
}
|
||||||
|
|
||||||
computeBatchDirection();
|
|
||||||
updateActionModeTitle();
|
|
||||||
|
|
||||||
// make sure the onPrepareActionMode is called
|
// make sure the onPrepareActionMode is called
|
||||||
mActionMode.invalidate();
|
mActionMode.invalidate();
|
||||||
|
|
||||||
|
computeBatchDirection();
|
||||||
|
updateActionModeTitle();
|
||||||
|
|
||||||
computeSelectAllVisibility();
|
computeSelectAllVisibility();
|
||||||
|
|
||||||
mAdapter.notifyDataSetChanged();
|
mAdapter.notifyDataSetChanged();
|
||||||
|
Loading…
Reference in New Issue
Block a user