Change String -> CharSequence to make compatible

This commit is contained in:
Victor Shcherb 2020-12-17 14:26:26 +01:00
parent dd69d192e1
commit 323cb915d6
13 changed files with 13 additions and 13 deletions

View file

@ -56,7 +56,7 @@ public class AccessibilityPlugin extends OsmandPlugin {
} }
@Override @Override
public String getDescription() { public CharSequence getDescription() {
return app.getString(R.string.osmand_accessibility_description); return app.getString(R.string.osmand_accessibility_description);
} }

View file

@ -100,7 +100,7 @@ public class CustomOsmandPlugin extends OsmandPlugin {
} }
@Override @Override
public String getDescription() { public CharSequence getDescription() {
String description = JsonUtils.getLocalizedResFromMap(app, descriptions, null); String description = JsonUtils.getLocalizedResFromMap(app, descriptions, null);
return description != null ? Html.fromHtml(description) : null; return description != null ? Html.fromHtml(description) : null;
} }

View file

@ -94,7 +94,7 @@ public abstract class OsmandPlugin {
public abstract String getName(); public abstract String getName();
public abstract String getDescription(); public abstract CharSequence getDescription();
@Nullable @Nullable
public Drawable getAssetResourceImage() { public Drawable getAssetResourceImage() {

View file

@ -581,7 +581,7 @@ public class AudioVideoNotesPlugin extends OsmandPlugin {
} }
@Override @Override
public String getDescription() { public CharSequence getDescription() {
return app.getString(R.string.audionotes_plugin_description); return app.getString(R.string.audionotes_plugin_description);
} }

View file

@ -37,7 +37,7 @@ public class OsmandDevelopmentPlugin extends OsmandPlugin {
} }
@Override @Override
public String getDescription() { public CharSequence getDescription() {
return app.getString(R.string.osmand_development_plugin_description); return app.getString(R.string.osmand_development_plugin_description);
} }

View file

@ -83,7 +83,7 @@ public class MapillaryPlugin extends OsmandPlugin {
} }
@Override @Override
public String getDescription() { public CharSequence getDescription() {
return app.getString(R.string.plugin_mapillary_descr); return app.getString(R.string.plugin_mapillary_descr);
} }

View file

@ -117,7 +117,7 @@ public class OsmandMonitoringPlugin extends OsmandPlugin {
} }
@Override @Override
public String getDescription() { public CharSequence getDescription() {
return app.getString(R.string.record_plugin_description); return app.getString(R.string.record_plugin_description);
} }

View file

@ -42,7 +42,7 @@ public class NauticalMapsPlugin extends OsmandPlugin {
} }
@Override @Override
public String getDescription() { public CharSequence getDescription() {
return app.getString(net.osmand.plus.R.string.plugin_nautical_descr); return app.getString(net.osmand.plus.R.string.plugin_nautical_descr);
} }

View file

@ -378,7 +378,7 @@ public class OsmEditingPlugin extends OsmandPlugin {
} }
@Override @Override
public String getDescription() { public CharSequence getDescription() {
return app.getString(R.string.osm_editing_plugin_description); return app.getString(R.string.osm_editing_plugin_description);
} }

View file

@ -168,7 +168,7 @@ public class ParkingPositionPlugin extends OsmandPlugin {
} }
@Override @Override
public String getDescription() { public CharSequence getDescription() {
return app.getString(R.string.osmand_parking_plugin_description); return app.getString(R.string.osmand_parking_plugin_description);
} }

View file

@ -89,7 +89,7 @@ public class OsmandRasterMapsPlugin extends OsmandPlugin {
} }
@Override @Override
public String getDescription() { public CharSequence getDescription() {
return app.getString(R.string.osmand_rastermaps_plugin_description); return app.getString(R.string.osmand_rastermaps_plugin_description);
} }

View file

@ -21,7 +21,7 @@ public class SkiMapsPlugin extends OsmandPlugin {
} }
@Override @Override
public String getDescription() { public CharSequence getDescription() {
return app.getString(net.osmand.plus.R.string.plugin_ski_descr); return app.getString(net.osmand.plus.R.string.plugin_ski_descr);
} }

View file

@ -119,7 +119,7 @@ public class SRTMPlugin extends OsmandPlugin {
} }
@Override @Override
public String getDescription() { public CharSequence getDescription() {
return app.getString(R.string.srtm_plugin_description); return app.getString(R.string.srtm_plugin_description);
} }