Skip to content

Commit

Permalink
fix bug related with issue #13
Browse files Browse the repository at this point in the history
  • Loading branch information
marconi1992 committed May 4, 2017
1 parent 35190f6 commit 460d3d6
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 460d3d6

Please sign in to comment.