[android] MyPosition title.

This commit is contained in:
Dmitry Yunitsky 2016-03-31 14:15:00 +03:00
parent 95ecadb6ec
commit 523e9c7307
2 changed files with 4 additions and 2 deletions

View file

@ -68,7 +68,7 @@ jobject CreateMapObject(JNIEnv * env, place_page::Info const & info)
// TODO(yunikkk): object can be POI + API + search result + bookmark simultaneously.
// TODO(yunikkk): Should we pass localized strings here and in other methods as byte arrays?
if (info.IsMyPosition())
return CreateMapObject(env, kMyPosition, "", "", ll.lat, ll.lon, address.FormatAddress(), {}, "");
return CreateMapObject(env, kMyPosition, info.GetTitle(), info.GetSubtitle(), ll.lat, ll.lon, address.FormatAddress(), {}, "");
if (info.HasApiUrl())
return CreateMapObject(env, kApiPoint, info.GetTitle(), info.GetSubtitle(), ll.lat, ll.lon, address.FormatAddress(), info.GetMetadata(), info.GetApiUrl());

View file

@ -442,7 +442,9 @@ public class PlacePageView extends RelativeLayout implements View.OnClickListene
UiUtils.showIf(mMapObject != null && Editor.nativeIsFeatureEditable() &&
!RoutingController.get().isNavigating() && !MapManager.nativeIsLegacyMode(),
mEditor);
UiUtils.showIf(!RoutingController.get().isNavigating() && !MapManager.nativeIsLegacyMode(), mReport);
UiUtils.showIf(!RoutingController.get().isNavigating() && !MapManager.nativeIsLegacyMode() &&
!MapObject.isOfType(MapObject.MY_POSITION, mMapObject),
mReport);
}
private void refreshOpeningHours()