@Override public void onDestroyActionMode(ActionMode mode) { Set<Integer> checkedLooks = adapter.getCheckedItems(); Iterator<Integer> iterator = checkedLooks.iterator(); while (iterator.hasNext()) { int position = iterator.next(); sendPocketPaintIntent(position); } setSelectMode(ListView.CHOICE_MODE_NONE); adapter.clearCheckedItems(); actionMode = null; setActionModeActive(false); registerForContextMenu(listView); BottomBar.enableButtons(getActivity()); }
@Override public void onDestroyActionMode(ActionMode mode) { Set<Integer> checkedLooks = adapter.getCheckedItems(); Iterator<Integer> iterator = checkedLooks.iterator(); if (iterator.hasNext()) { int position = iterator.next(); selectedLookData = (LookData) listView.getItemAtPosition(position); showRenameDialog(); } setSelectMode(ListView.CHOICE_MODE_NONE); adapter.clearCheckedItems(); actionMode = null; setActionModeActive(false); registerForContextMenu(listView); BottomBar.enableButtons(getActivity()); }