Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralexzatsepin <alexander.zatzepin@gmail.com>2016-11-10 18:16:41 +0300
committerIlya Grechuhin <i.grechuhin@gmail.com>2016-11-11 11:06:19 +0300
commitf17ff7763caf43785cd38c0bcb813fcbb82683aa (patch)
tree9e427a439262282e67cdcfecd9efe08b28820bdb /android
parentd25f85dbd6f514053e959239eceeee85a169f923 (diff)
[android] Added http link while sharing the bookmark
Diffstat (limited to 'android')
-rw-r--r--android/src/com/mapswithme/util/sharing/MapObjectShareable.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/android/src/com/mapswithme/util/sharing/MapObjectShareable.java b/android/src/com/mapswithme/util/sharing/MapObjectShareable.java
index b427e1e2f9..32bbb330da 100644
--- a/android/src/com/mapswithme/util/sharing/MapObjectShareable.java
+++ b/android/src/com/mapswithme/util/sharing/MapObjectShareable.java
@@ -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)
{