示例#1
0
        @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());
        }
示例#2
0
        @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());
        }