Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2015-02-22 14:28:01 +01:00
commit eb9467de4c

View file

@ -1,31 +1,22 @@
package net.osmand.plus.touringview; package net.osmand.plus.touringview;
import net.osmand.IndexConstants;
import net.osmand.plus.OsmandApplication; import net.osmand.plus.OsmandApplication;
import net.osmand.plus.OsmandPlugin; import net.osmand.plus.OsmandPlugin;
import net.osmand.plus.R; import net.osmand.plus.R;
import net.osmand.plus.download.DownloadActivity;
import net.osmand.plus.render.RendererRegistry; import net.osmand.plus.render.RendererRegistry;
import android.app.Activity; import android.app.Activity;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.content.Intent;
public class NauticalMapsPlugin extends OsmandPlugin { public class TouringViewPlugin extends OsmandPlugin {
public static final String ID = "touringView.plugin"; public static final String ID = "touringView.plugin";
public static final String COMPONENT = "net.osmand.touringviewPlugin"; public static final String COMPONENT = "net.osmand.touringviewPlugin";
private static String previousRenderer = RendererRegistry.DEFAULT_RENDER; private static String previousRenderer = RendererRegistry.DEFAULT_RENDER;
private OsmandApplication app; private OsmandApplication app;
public TouringViewPlugin(OsmandApplication app) { public TouringViewPlugin(OsmandApplication app) {
this.app = app; this.app = app;
} }
@Override @Override
public String getDescription() { public String getDescription() {
return "Activating this view changes the map style to \'Touring view\', this is a special high-detail view for travelers and professional drivers.\n\n" return "Activating this view changes the map style to \'Touring view\', this is a special high-detail view for travelers and professional drivers.\n\n"
@ -57,13 +48,11 @@ public class NauticalMapsPlugin extends OsmandPlugin {
} }
} }
@Override @Override
public String getId() { public String getId() {
return ID; return ID;
} }
@Override @Override
public Class<? extends Activity> getSettingsActivity() { public Class<? extends Activity> getSettingsActivity() {
return null; return null;