Skip to content

Commit

Permalink
Solved issue when clicking on voice icon then changes orientation rai…
Browse files Browse the repository at this point in the history
…ses a Null Pointer Exception.
  • Loading branch information
Ferran Pons committed Sep 12, 2016
1 parent 5724baa commit 3505178
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Include the dependency in your app `build.gradle`:

```groovy
dependencies {
compile 'com.schibstedspain.android:leku:2.1.0'
compile 'com.schibstedspain.android:leku:2.1.1'
}
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.2'
classpath 'com.android.tools.build:gradle:2.1.3'

classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:3.1.1"
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed Jun 08 15:17:45 CEST 2016
#Tue Aug 30 11:45:10 CEST 2016
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
4 changes: 2 additions & 2 deletions leku/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apply plugin: 'com.novoda.bintray-release'
apply from: '../quality.gradle'

group = 'com.schibstedspain.android'
version = '2.1.0'
version = '2.1.1'

android {
compileSdkVersion 24
Expand Down Expand Up @@ -60,7 +60,7 @@ publish {
userOrg = 'schibstedspain'
groupId = 'com.schibstedspain.android'
artifactId = 'leku'
publishVersion = '2.1.0'
publishVersion = '2.1.1'
desc = 'Location picker component for Android. It returns a latitude,longitude and an address based on the location picked in the LocationPickerActivity provided.'
website = 'https://github.com/SchibstedSpain/leku'
}
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,19 @@ public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {
adapter.clear();
adapter.notifyDataSetChanged();
showLocationInfoLayout();
clearSearchButton.setVisibility(View.INVISIBLE);
searchOption.setIcon(R.drawable.ic_mic);
if (clearSearchButton != null) {
clearSearchButton.setVisibility(View.INVISIBLE);
}
if (searchOption != null) {
searchOption.setIcon(R.drawable.ic_mic);
}
} else {
clearSearchButton.setVisibility(View.VISIBLE);
searchOption.setIcon(R.drawable.ic_search);
if (clearSearchButton != null) {
clearSearchButton.setVisibility(View.VISIBLE);
}
if (searchOption != null) {
searchOption.setIcon(R.drawable.ic_search);
}
}
}

Expand Down

0 comments on commit 3505178

Please sign in to comment.