Skip to content

Commit

Permalink
removed method getMaxAddressLineIndex() because is not working correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferran Pons committed Sep 13, 2017
1 parent 5f92c5a commit b88123e
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit b88123e

Please sign in to comment.