1 private void endMultiSelectMode() {
2 mCheckedCardPositions.clear();
3 mInMultiSelectMode = false;
4 // If view which was originally selected when entering multi-select is visible then maintain its position
5 View view = mCardsListView.getChildAt(mLastSelectedPosition - mCardsListView.getFirstVisiblePosition());
6 if (view != null) {
7 recenterListView(view);
8 }
9 // update adapter to remove check boxes
10 mCardsAdapter.notifyDataSetChanged();
11 // update action bar
12 supportInvalidateOptionsMenu();
13 mActionBarSpinner.setVisibility(View.VISIBLE);
14 mActionBarTitle.setVisibility(View.GONE);
15 }