Merge pull request #10290 from osmandapp/issue_251_android_add_photo_backend_part2
OpenPlaceReviews add photo bug fix
This commit is contained in:
commit
ca12d4014d
1 changed files with 5 additions and 0 deletions
|
@ -109,6 +109,7 @@ public class MenuBuilder {
|
||||||
private String preferredMapAppLang;
|
private String preferredMapAppLang;
|
||||||
private boolean transliterateNames;
|
private boolean transliterateNames;
|
||||||
private View view;
|
private View view;
|
||||||
|
private View photoButton;
|
||||||
|
|
||||||
private final OpenDBAPI openDBAPI = new OpenDBAPI();
|
private final OpenDBAPI openDBAPI = new OpenDBAPI();
|
||||||
private String[] placeId = new String[0];
|
private String[] placeId = new String[0];
|
||||||
|
@ -121,6 +122,9 @@ public class MenuBuilder {
|
||||||
@Override
|
@Override
|
||||||
public void onPlaceIdAcquired(String[] placeId) {
|
public void onPlaceIdAcquired(String[] placeId) {
|
||||||
MenuBuilder.this.placeId = placeId;
|
MenuBuilder.this.placeId = placeId;
|
||||||
|
if (placeId.length < 2){
|
||||||
|
photoButton.setVisibility(View.GONE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -404,6 +408,7 @@ public class MenuBuilder {
|
||||||
});
|
});
|
||||||
//TODO This feature is under development
|
//TODO This feature is under development
|
||||||
view.setVisibility(View.GONE);
|
view.setVisibility(View.GONE);
|
||||||
|
photoButton = view;
|
||||||
return view;
|
return view;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue