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 9, 2017
1 parent f05e362 commit 32339df
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CHANGELOG

# 1.0.6
# 1.0.6 - 1.0.7

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

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.6.apk](https://github.com/pchmn/MaterialChipsInput/raw/master/docs/material-chips-input-sample-v1.0.6.apk)
[Download sample-v1.0.7.apk](https://github.com/pchmn/MaterialChipsInput/raw/master/docs/material-chips-input-sample-v1.0.7.apk)

## Setup

Expand All @@ -26,7 +26,7 @@ allprojects {
In your app level build.gradle :
```java
dependencies {
compile 'com.github.pchmn:MaterialChipsInput:1.0.6'
compile 'com.github.pchmn:MaterialChipsInput:1.0.7'
}
```
<br><br>
Expand Down
Binary file added docs/material-chips-input-sample-v1.0.7.apk
Binary file not shown.
4 changes: 2 additions & 2 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
defaultConfig {
minSdkVersion 15
targetSdkVersion 25
versionCode 5
versionName "1.0.4"
versionCode 8
versionName "1.0.7"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Locale;
Expand Down Expand Up @@ -71,11 +72,10 @@ public int compare(ChipInterface o1, ChipInterface o2) {
}
};
// remove chips that do not have label
int count = 0;
for(ChipInterface chipInterface: chipList) {
if(chipInterface.getLabel() == null)
chipList.remove(count);
count++;
Iterator<? extends ChipInterface> iterator = chipList.iterator();
while(iterator.hasNext()) {
if(iterator.next().getLabel() == null)
iterator.remove();
}
sortList(chipList);
mOriginalList.addAll(chipList);
Expand Down
4 changes: 2 additions & 2 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {
applicationId "com.pchmn.sample.materialchipsinput"
minSdkVersion 15
targetSdkVersion 25
versionCode 5
versionName "1.0.4"
versionCode 8
versionName "1.0.7"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand Down

0 comments on commit 32339df

Please sign in to comment.