List of usage examples for android.view ActionMode finish
public abstract void finish();
From source file:Main.java
public static void finish(ActionMode actionmode) { actionmode.finish(); }
From source file:net.kjmaster.cookiemom.booth.add.AddBoothActivity.java
@Override public boolean onActionItemClicked(ActionMode mode, MenuItem item) { mode.finish(); return true; }
From source file:com.btmura.android.reddit.app.MessageThreadListController.java
@Override public boolean onActionItemClicked(ActionMode mode, MenuItem item, ListView lv) { switch (item.getItemId()) { case R.id.menu_new_comment: handleNewComment(lv);/*from w w w . j a v a 2s. c o m*/ mode.finish(); return true; case R.id.menu_author: handleAuthor(lv); mode.finish(); return true; default: return false; } }
From source file:net.kjmaster.cookiemom.editor.EditDataActivity.java
@Override public boolean onActionItemClicked(ActionMode actionMode, MenuItem menuItem) { if (menuItem.getTitle().equals(getString(R.string.cancel))) { cookieTransactionsList.clear();//from w w w . j a va 2 s.c o m actionMode.finish(); afterViews(); return true; } return true; }
From source file:com.btmura.android.reddit.app.SubredditActionModeController.java
@Override public boolean onActionItemClicked(ActionMode mode, MenuItem item, ListView lv) { switch (item.getItemId()) { case R.id.menu_add_subreddit: handleAddSubreddit(lv);/*from ww w. j ava 2 s. com*/ mode.finish(); return true; case R.id.menu_subreddit: handleSubreddit(lv); mode.finish(); return true; case R.id.menu_share: handleShare(lv); mode.finish(); return true; case R.id.menu_copy_url: handleCopyUrl(lv); mode.finish(); return true; } return false; }
From source file:net.lacolaco.smileessence.activity.EditExtractionActivity.java
@Override public boolean onActionItemClicked(ActionMode mode, MenuItem item) { switch (item.getItemId()) { case R.id.menu_edit_list_delete: { deleteSelectedItems();/* w w w .ja v a2 s . c o m*/ } } mode.finish(); return true; }
From source file:net.kjmaster.cookiemom.global.CookieActionActivity.java
@Override public boolean onActionItemClicked(ActionMode mode, MenuItem item) { if (item.getTitle().equals(getString(R.string.cancel))) { setResult(RESULT_CANCELED);//from www .ja v a 2 s . c o m mode.finish(); return true; } return true; }
From source file:org.alfresco.mobile.android.application.fragments.search.HistorySearchActions.java
@Override public boolean onActionItemClicked(ActionMode mode, MenuItem item) { Boolean b = false;//from w w w.j a va 2 s . co m switch (item.getItemId()) { case R.id.menu_historysearch_delete: delete(); b = true; break; default: break; } if (b) { selectedItems.clear(); mode.finish(); } return b; }
From source file:com.simas.vc.nav_drawer.NavCAB.java
@Override public void onItemCheckedStateChanged(ActionMode mode, int position, final long id, boolean checked) { // Clicking header closes CAB, and opens the FileChooser if (position == 0) { mode.finish(); getListView().post(new Runnable() { @Override/*from w w w. ja v a 2 s . co m*/ public void run() { getListView().performItemClick(null, 0, id); } }); checkedPositions.clear(); } else { if (checked) { // If an item is not valid -- don't select it int adapterPos = position - 1; if (getAdapter().getItem(adapterPos).getState() != NavItem.State.VALID) { getListView().setItemChecked(position, false); return; } // Remove duplicates while (checkedPositions.remove((Integer) position)) ; checkedPositions.add(position); } else { checkedPositions.remove((Integer) position); } } }
From source file:com.btmura.android.reddit.app.CommentListFragment.java
@Override public boolean onActionItemClicked(ActionMode mode, MenuItem item) { int position = Views.getCheckedPosition(getListView()); switch (item.getItemId()) { case R.id.menu_reply: controller.reply(position);//from ww w . j ava 2s. com mode.finish(); return true; case R.id.menu_edit: controller.edit(position); mode.finish(); return true; case R.id.menu_delete: controller.delete(getListView()); mode.finish(); return true; case R.id.menu_author: controller.author(position); mode.finish(); return true; case R.id.menu_share_comment: controller.share(position); mode.finish(); return true; case R.id.menu_copy_url: controller.copyUrl(position); mode.finish(); return true; default: return false; } }