Skip to content

Commit

Permalink
* improve behavior of the MultiSelectActivity
Browse files Browse the repository at this point in the history
 * FIX #94 FIX #93
  • Loading branch information
mikepenz committed Mar 24, 2016
1 parent d999c65 commit f6f15cb
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ class ActionBarCallBack implements ActionMode.Callback {
@Override
public boolean onActionItemClicked(ActionMode mode, MenuItem item) {
mUndoHelper.remove(findViewById(android.R.id.content), "Item removed", "Undo", Snackbar.LENGTH_LONG, mFastAdapter.getSelections());
//return true as we consumed the event
//as we no longer have a selection so the actionMode can be finished
mode.finish();
//we consume the event
return true;
}

Expand Down

0 comments on commit f6f15cb

Please sign in to comment.