Skip to content

Commit

Permalink
Fixed bug related with issue #7
Browse files Browse the repository at this point in the history
  • Loading branch information
pchmn committed May 5, 2017
1 parent 2b8cc9d commit f05e362
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
*.iml
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
/.idea
.DS_Store
/build
/captures
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# CHANGELOG

# 1.0.6

Fixed bug related with [issue #7](https://github.com/pchmn/MaterialChipsInput/issues/7)

# 1.0.5

Fixed bug related with [issue #13](https://github.com/pchmn/MaterialChipsInput/issues/13)

# 1.0.4

Fixed bug with `ChipView` label in v1.0.3
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Implementation of Material Design [Chips](https://material.io/guidelines/compone
<img src="https://github.com/pchmn/MaterialChipsInput/blob/master/docs/demo2.gif" alt="Demo" height="600px"/>

## Demo
[Download sample-v1.0.4.apk](https://github.com/pchmn/MaterialChipsInput/raw/master/docs/material-chips-input-sample-v1.0.4.apk)
[Download sample-v1.0.6.apk](https://github.com/pchmn/MaterialChipsInput/raw/master/docs/material-chips-input-sample-v1.0.6.apk)

## Setup

Expand All @@ -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.6'
}
```
<br><br>
Expand Down
Binary file removed docs/material-chips-input-sample-v1.0.4_2.apk
Binary file not shown.
Binary file removed docs/material-chips-input-sample-v1.0.4_4.apk
Binary file not shown.
Binary file not shown.
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 f05e362

Please sign in to comment.