diff --git a/README.md b/README.md index 5cbdb711..05371d4d 100644 --- a/README.md +++ b/README.md @@ -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' } ``` diff --git a/app/src/debug/res/values/strings.xml b/app/src/debug/res/values/strings.xml new file mode 100644 index 00000000..a85113cf --- /dev/null +++ b/app/src/debug/res/values/strings.xml @@ -0,0 +1,3 @@ + + AIzaSyBbCmdfXUu1aA-AzyCA5Y8WmiTSKuuh70M + diff --git a/leku/build.gradle b/leku/build.gradle index 3a7d7692..024dc02f 100644 --- a/leku/build.gradle +++ b/leku/build.gradle @@ -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 @@ -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' } diff --git a/leku/src/main/java/com/schibstedspain/leku/LocationPickerActivity.java b/leku/src/main/java/com/schibstedspain/leku/LocationPickerActivity.java index ae8ff076..238dd32b 100644 --- a/leku/src/main/java/com/schibstedspain/leku/LocationPickerActivity.java +++ b/leku/src/main/java/com/schibstedspain/leku/LocationPickerActivity.java @@ -612,7 +612,7 @@ public void didGetLastLocation() { @Override public void showLocationInfo(List
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 {