Skip to content

Commit

Permalink
Solved issue that prevents showing the address when new location sele…
Browse files Browse the repository at this point in the history
…cted
  • Loading branch information
Ferran Pons committed Sep 13, 2017
1 parent 9e7bd20 commit 489660e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Include the dependency in your app `build.gradle`:

```groovy
dependencies {
compile 'com.schibstedspain.android:leku:3.4.3'
compile 'com.schibstedspain.android:leku:3.4.4'
}
```

Expand Down
3 changes: 3 additions & 0 deletions app/src/debug/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<resources>
<string name="google_maps_key">AIzaSyBbCmdfXUu1aA-AzyCA5Y8WmiTSKuuh70M</string>
</resources>
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 = '3.4.3'
version = '3.4.4'

android {
compileSdkVersion 25
Expand Down Expand Up @@ -69,7 +69,7 @@ publish {
userOrg = 'schibstedspain'
groupId = 'com.schibstedspain.android'
artifactId = 'leku'
publishVersion = '3.4.3'
publishVersion = '3.4.4'
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 @@ -612,7 +612,7 @@ public void didGetLastLocation() {
@Override
public void showLocationInfo(List<Address> addresses) {
if (addresses != null) {
if (addresses.size() > 0 && addresses.get(0).getMaxAddressLineIndex() > 0) {
if (addresses.size() > 0 && addresses.get(0) != null) {
selectedAddress = addresses.get(0);
setLocationInfo(selectedAddress);
} else {
Expand Down

0 comments on commit 489660e

Please sign in to comment.