From 4e33b2b990717780e2579f6098e5d73b1aac3b4f Mon Sep 17 00:00:00 2001 From: tonsense Date: Sat, 1 Mar 2014 09:32:45 +0100 Subject: [PATCH] Revert "Added Intent to open received Location in different App" This reverts commit ba3a8a10da4b78134e98225c966fbeb793eb0238. --- .../src/main/java/org/telegram/ui/ChatActivity.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java b/TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java index c9a9f6efc..438a33664 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java @@ -3890,22 +3890,12 @@ public class ChatActivity extends BaseFragment implements SizeNotifierRelativeLa } if (message != null) { if (message.type == 4 || message.type == 5) { - // open location in map view - double lat = message.messageOwner.media.geo.lat; - double lng = message.messageOwner.media.geo._long; - Uri geo_uri = Uri.parse(String.format(Locale.ENGLISH, "geo:%f,%f?q=%f,%f", - lat, lng, lat, lng)); - Intent sendIntent = new Intent(Intent.ACTION_VIEW, geo_uri); - startActivity(sendIntent); - - // also start internal view if possible if (!isGoogleMapsInstalled()) { return; } NotificationCenter.Instance.addToMemCache(0, message); LocationActivity fragment = new LocationActivity(); ((ApplicationActivity)parentActivity).presentFragment(fragment, "location_view", false); - } else if (message.type == 2 || message.type == 3) { if (photoFile == null || photoObjectToSet == null || photoFile != null && photoFile.exists()) { NotificationCenter.Instance.addToMemCache(51, message);