forked from organicmaps/organicmaps
Merge pull request #5453 from goblinr/MAPSME-154-ext-do-not-show-banner-on-my-position
[android] don’t show banner on my position
This commit is contained in:
commit
c8093c85c2
1 changed files with 3 additions and 2 deletions
|
@ -1014,8 +1014,9 @@ public class PlacePageView extends RelativeLayout
|
|||
{
|
||||
if (mBannerController != null)
|
||||
{
|
||||
mBannerController.updateData(policy.сanUseNetwork()
|
||||
? mMapObject.getBanner() : null);
|
||||
boolean canShow = mMapObject.getMapObjectType() != MapObject.MY_POSITION
|
||||
&& policy.сanUseNetwork();
|
||||
mBannerController.updateData(canShow ? mMapObject.getBanner() : null);
|
||||
}
|
||||
|
||||
refreshPreview();
|
||||
|
|
Loading…
Add table
Reference in a new issue