Skip to content

Commit

Permalink
Merge pull request #107 from SchibstedSpain/textInputIssue
Browse files Browse the repository at this point in the history
Solves the issue: When address is one line does not appear the accept button
  • Loading branch information
ferranpons authored Aug 17, 2017
2 parents db80ae4 + f489f63 commit 2a29d73
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ build/
local.properties
gradle.properties
project.properties
app/src/debug/

.idea/.name
.idea/*.xml
Expand Down
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.1'
compile 'com.schibstedspain.android:leku:3.4.2'
}
```

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.1'
version = '3.4.2'

android {
compileSdkVersion 25
Expand Down Expand Up @@ -69,7 +69,7 @@ publish {
userOrg = 'schibstedspain'
groupId = 'com.schibstedspain.android'
artifactId = 'leku'
publishVersion = '3.4.1'
publishVersion = '3.4.2'
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 @@ -190,6 +190,7 @@ private void setUpResultsList() {
listResult.setOnItemClickListener((adapterView, view, i, l) -> {
setNewLocation(locationList.get(i));
changeListResultVisibility(View.GONE);
closeKeyboard();
});
}

Expand Down Expand Up @@ -533,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).getMaxAddressLineIndex() >= 0) {
changeLocationInfoLayoutVisibility(View.VISIBLE);
} else {
changeLocationInfoLayoutVisibility(View.GONE);
Expand Down

0 comments on commit 2a29d73

Please sign in to comment.