From 460d3d6589e0be85623db41e97a28317980f26b4 Mon Sep 17 00:00:00 2001 From: Felipe Guizar Date: Thu, 4 May 2017 11:31:15 -0500 Subject: [PATCH 1/2] fix bug related with issue #13 --- .../main/java/com/pchmn/materialchips/adapter/ChipsAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/src/main/java/com/pchmn/materialchips/adapter/ChipsAdapter.java b/library/src/main/java/com/pchmn/materialchips/adapter/ChipsAdapter.java index 2e1083ee..6e000411 100644 --- a/library/src/main/java/com/pchmn/materialchips/adapter/ChipsAdapter.java +++ b/library/src/main/java/com/pchmn/materialchips/adapter/ChipsAdapter.java @@ -140,7 +140,7 @@ public boolean onKey(View v, int keyCode, KeyEvent event) { if(event.getAction() == KeyEvent.ACTION_DOWN && event.getKeyCode() == KeyEvent.KEYCODE_DEL) { // remove last chip - if(mChipList.size() > 0) + if(mChipList.size() > 0 && mEditText.getText().toString().length() == 0) removeChip(mChipList.size() - 1); } return false; From f270ab01c1bf0e21eea519b932a1a5da31be5504 Mon Sep 17 00:00:00 2001 From: pchmn Date: Fri, 5 May 2017 09:50:17 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b0359610..ea9c6b55 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ allprojects { In your app level build.gradle : ```java dependencies { - compile 'com.github.pchmn:MaterialChipsInput:1.0.4' + compile 'com.github.pchmn:MaterialChipsInput:1.0.5' } ```