mirror of
https://github.com/DrKLO/Telegram.git
synced 2025-03-28 01:00:38 +01:00
Revert "Added Intent to open received Location in different App"
This reverts commit ba3a8a10da
.
This commit is contained in:
parent
89ac72e11e
commit
4e33b2b990
1 changed files with 0 additions and 10 deletions
|
@ -3890,22 +3890,12 @@ public class ChatActivity extends BaseFragment implements SizeNotifierRelativeLa
|
||||||
}
|
}
|
||||||
if (message != null) {
|
if (message != null) {
|
||||||
if (message.type == 4 || message.type == 5) {
|
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()) {
|
if (!isGoogleMapsInstalled()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
NotificationCenter.Instance.addToMemCache(0, message);
|
NotificationCenter.Instance.addToMemCache(0, message);
|
||||||
LocationActivity fragment = new LocationActivity();
|
LocationActivity fragment = new LocationActivity();
|
||||||
((ApplicationActivity)parentActivity).presentFragment(fragment, "location_view", false);
|
((ApplicationActivity)parentActivity).presentFragment(fragment, "location_view", false);
|
||||||
|
|
||||||
} else if (message.type == 2 || message.type == 3) {
|
} else if (message.type == 2 || message.type == 3) {
|
||||||
if (photoFile == null || photoObjectToSet == null || photoFile != null && photoFile.exists()) {
|
if (photoFile == null || photoObjectToSet == null || photoFile != null && photoFile.exists()) {
|
||||||
NotificationCenter.Instance.addToMemCache(51, message);
|
NotificationCenter.Instance.addToMemCache(51, message);
|
||||||
|
|
Loading…
Add table
Reference in a new issue