From f6f15cb92a3460748f3ec7965ecca6ba5a40e62b Mon Sep 17 00:00:00 2001 From: Mike Penz Date: Thu, 24 Mar 2016 19:34:32 +0100 Subject: [PATCH] * improve behavior of the `MultiSelectActivity` * FIX #94 FIX #93 --- .../mikepenz/fastadapter/app/MultiselectSampleActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/mikepenz/fastadapter/app/MultiselectSampleActivity.java b/app/src/main/java/com/mikepenz/fastadapter/app/MultiselectSampleActivity.java index 67f394e79..d33ff6dbb 100755 --- a/app/src/main/java/com/mikepenz/fastadapter/app/MultiselectSampleActivity.java +++ b/app/src/main/java/com/mikepenz/fastadapter/app/MultiselectSampleActivity.java @@ -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; }