Skip to content

Commit

Permalink
Merge pull request #111 from SchibstedSpain/issueWithAddress
Browse files Browse the repository at this point in the history
Issue with address
  • Loading branch information
ferranpons authored Sep 13, 2017
2 parents 9e7bd20 + b88123e commit 8978f14
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 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
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 @@ -534,7 +534,7 @@ public void didLoadLocation() {

changeListResultVisibility(locationList.size() > 1 ? View.VISIBLE : View.GONE);

if (locationList.size() == 1 && locationList.get(0).getMaxAddressLineIndex() >= 0) {
if (locationList.size() == 1 && locationList.get(0) != null) {
changeLocationInfoLayoutVisibility(View.VISIBLE);
} else {
changeLocationInfoLayoutVisibility(View.GONE);
Expand Down 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 8978f14

Please sign in to comment.