Merge pull request #10291 from osmandapp/issue_251_android_add_photo_backend_part2

OPR add photo bug fix
This commit is contained in:
vshcherb 2020-11-27 16:05:39 +01:00 committed by GitHub
commit ff5f4d6c3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -122,8 +122,13 @@ public class MenuBuilder {
@Override
public void onPlaceIdAcquired(String[] placeId) {
MenuBuilder.this.placeId = placeId;
if (placeId.length < 2){
photoButton.setVisibility(View.GONE);
if (placeId.length < 2) {
app.runInUIThread(new Runnable() {
@Override
public void run() {
photoButton.setVisibility(View.GONE);
}
});
}
}