[android] Added http link while sharing the bookmark

This commit is contained in:
alexzatsepin 2016-11-10 18:16:41 +03:00 committed by Ilya Grechuhin
parent d25f85dbd6
commit f17ff7763c

View file

@ -18,8 +18,10 @@ class MapObjectShareable extends BaseShareable
super(context);
final Activity activity = getActivity();
final String ge0Url = Framework.nativeGetGe0Url(mapObject.getLat(), mapObject.getLon(), mapObject.getScale(), mapObject.getTitle());
final String ge0Url = Framework.nativeGetGe0Url(mapObject.getLat(), mapObject.getLon(),
mapObject.getScale(), mapObject.getTitle());
final String httpUrl = Framework.getHttpGe0Url(mapObject.getLat(), mapObject.getLon(),
mapObject.getScale(), mapObject.getTitle());
final String subject;
String text;
if (MapObject.isOfType(MapObject.MY_POSITION, mapObject))
@ -27,8 +29,7 @@ class MapObjectShareable extends BaseShareable
subject = activity.getString(R.string.my_position_share_email_subject);
text = activity.getString(R.string.my_position_share_email,
Framework.nativeGetNameAndAddress(mapObject.getLat(), mapObject.getLon()),
ge0Url,
Framework.getHttpGe0Url(mapObject.getLat(), mapObject.getLon(), mapObject.getScale(), mapObject.getTitle()));
ge0Url, httpUrl);
}
else
{
@ -38,7 +39,8 @@ class MapObjectShareable extends BaseShareable
lineWithBreak(mapObject.getTitle()) +
lineWithBreak(mapObject.getSubtitle()) +
lineWithBreak(mapObject.getAddress()) +
lineWithBreak(ge0Url);
lineWithBreak(ge0Url) +
lineWithBreak(httpUrl);
if (sponsored != null)
{