Reformat Android Manifest!

This commit is contained in:
Victor Shcherb 2014-08-06 23:05:57 +02:00
parent d9684dc3dc
commit fceb879f9f
2 changed files with 12 additions and 4 deletions

View file

@ -1,6 +1,8 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:installLocation="auto" android:versionName="@string/app_version" android:versionCode="191" android:installLocation="auto"
android:versionName="@string/app_version"
android:versionCode="191"
package="net.osmand.plus"> package="net.osmand.plus">
<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="19" /> <uses-sdk android:minSdkVersion="7" android:targetSdkVersion="19" />
@ -187,7 +189,9 @@
<activity android:name="net.osmand.plus.osmedit.LocalOpenstreetmapActivity" android:label="@string/local_openstreetmap_act_title" /> <activity android:name="net.osmand.plus.osmedit.LocalOpenstreetmapActivity" android:label="@string/local_openstreetmap_act_title" />
<!-- keep android:process on a separate line !! --> <!-- keep android:process on a separate line !! -->
<service android:process="net.osmand.plus" android:label="@string/process_navigation_service" <service
android:process="net.osmand.plus"
android:label="@string/process_navigation_service"
android:name="net.osmand.plus.NavigationService"> android:name="net.osmand.plus.NavigationService">
<intent-filter> <intent-filter>
<action android:name="net.osmand.plus.NavigationService" /> <action android:name="net.osmand.plus.NavigationService" />

View file

@ -24,7 +24,6 @@ import net.osmand.plus.resources.ResourceManager;
import net.osmand.plus.routing.RouteCalculationResult; import net.osmand.plus.routing.RouteCalculationResult;
import net.osmand.plus.routing.RoutingHelper; import net.osmand.plus.routing.RoutingHelper;
import net.osmand.plus.routing.RoutingHelper.IRouteInformationListener; import net.osmand.plus.routing.RoutingHelper.IRouteInformationListener;
import net.osmand.plus.routing.RoutingHelper.RouteCalculationProgressCallback;
import net.osmand.plus.views.MapTextLayer.MapTextProvider; import net.osmand.plus.views.MapTextLayer.MapTextProvider;
import android.app.AlertDialog; import android.app.AlertDialog;
import android.app.AlertDialog.Builder; import android.app.AlertDialog.Builder;
@ -63,7 +62,7 @@ public class POIMapLayer extends OsmandMapLayer implements ContextMenuLayer.ICon
private double radius = 100; private double radius = 100;
public POIMapLayer(MapActivity activity) { public POIMapLayer(final MapActivity activity) {
routingHelper = activity.getRoutingHelper(); routingHelper = activity.getRoutingHelper();
routingHelper.addListener(this); routingHelper.addListener(this);
data = new OsmandMapLayer.MapLayerData<List<Amenity>>() { data = new OsmandMapLayer.MapLayerData<List<Amenity>>() {
@ -76,6 +75,11 @@ public class POIMapLayer extends OsmandMapLayer implements ContextMenuLayer.ICon
return super.isInterrupted(); return super.isInterrupted();
} }
@Override
public void layerOnPostExecute() {
activity.getMapView().refreshMap();
}
@Override @Override
protected List<Amenity> calculateResult(RotatedTileBox tileBox) { protected List<Amenity> calculateResult(RotatedTileBox tileBox) {
QuadRect latLonBounds = tileBox.getLatLonBounds(); QuadRect latLonBounds = tileBox.getLatLonBounds();