Skip to content

Commit

Permalink
Merge pull request #14 from marconi1992/master
Browse files Browse the repository at this point in the history
fix bug related with issue #13
  • Loading branch information
pchmn authored May 5, 2017
2 parents 35190f6 + 460d3d6 commit 95a500b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 95a500b

Please sign in to comment.