[C] 默认位置到北京

This commit is contained in:
世界 2020-04-25 14:24:38 +08:00
parent e3106710f4
commit 1e86adc83f
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4
2 changed files with 4 additions and 7 deletions

View File

@ -1235,7 +1235,7 @@ public class ChatAttachAlertLocationLayout extends ChatAttachAlert.AttachAlertLa
}
//Paris, Tour Eiffel
GeoPoint initLocation = new GeoPoint(48.85825, 2.29448);
GeoPoint initLocation = new GeoPoint(39.911389, 116.380556);
final IMapController controller = mapView.getController();
mapView.setMaxZoomLevel(20.0);
mapView.setMultiTouchControls(true);
@ -1244,8 +1244,8 @@ public class ChatAttachAlertLocationLayout extends ChatAttachAlert.AttachAlertLa
controller.setZoom(7.);
userLocation = new Location("network");
userLocation.setLatitude(48.85825);
userLocation.setLongitude(2.29448);
userLocation.setLatitude(39.911389);
userLocation.setLongitude(116.380556);
GpsMyLocationProvider imlp = new GpsMyLocationProvider(getParentActivity());
imlp.setLocationUpdateMinDistance(10);
@ -1609,9 +1609,6 @@ public class ChatAttachAlertLocationLayout extends ChatAttachAlert.AttachAlertLa
}
}
onResumeCalled = true;
if (mapView != null && mapsInitialized) {
myLocationOverlay.enableMyLocation();
}
fixLayoutInternal(true);
if (checkPermission && Build.VERSION.SDK_INT >= 23) {
Activity activity = getParentActivity();

View File

@ -980,7 +980,7 @@ public class LocationActivity extends BaseFragment implements NotificationCenter
frameLayout.addView(mapViewClip, LayoutHelper.createFrame(LayoutHelper.MATCH_PARENT, LayoutHelper.MATCH_PARENT, Gravity.LEFT | Gravity.TOP));
// SET TFOSS USERAGENT FOR OSM SERVERS
Configuration.getInstance().setUserAgentValue("Telegram-FOSS(F-Droid) "+BuildConfig.VERSION_NAME);
Configuration.getInstance().setUserAgentValue("Telegram-FOSS ( NekogramX ) " + BuildConfig.VERSION_NAME);
mapView = new MapView(context) {