Fixed formatting
This commit is contained in:
parent
8e979c02b9
commit
64bc77eb1d
5 changed files with 189 additions and 184 deletions
|
@ -196,6 +196,7 @@
|
|||
android:layout_height="wrap_content">
|
||||
|
||||
<include layout="@layout/recording_note_fragment"/>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/map_context_menu_layout"
|
||||
android:layout_width="match_parent"
|
||||
|
|
|
@ -351,6 +351,7 @@ public class ContextMenuAdapter {
|
|||
private OsmandApplication app;
|
||||
private boolean holoLight;
|
||||
private int layoutId;
|
||||
|
||||
public ContextMenuArrayAdapter(Activity context, int resource, int textViewResourceId,
|
||||
String[] objects, OsmandApplication app, boolean holoLight) {
|
||||
super(context, resource, textViewResourceId, objects);
|
||||
|
|
|
@ -383,6 +383,7 @@ public class MapActivityLayers {
|
|||
OsmandRasterMapsPlugin.installMapLayers(activity, new ResultMatcher<TileSourceTemplate>() {
|
||||
TileSourceTemplate template = null;
|
||||
int count = 0;
|
||||
|
||||
@Override
|
||||
public boolean publish(TileSourceTemplate object) {
|
||||
if (object == null) {
|
||||
|
|
|
@ -70,10 +70,12 @@ public class OsmandRasterMapsPlugin extends OsmandPlugin {
|
|||
public String getId() {
|
||||
return ID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDescription() {
|
||||
return app.getString(R.string.osmand_rastermaps_plugin_description);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return app.getString(R.string.shared_string_online_maps);
|
||||
|
@ -257,7 +259,6 @@ public class OsmandRasterMapsPlugin extends OsmandPlugin {
|
|||
}
|
||||
|
||||
|
||||
|
||||
public static void installMapLayers(final Activity activity, final ResultMatcher<TileSourceTemplate> result) {
|
||||
final OsmandApplication app = (OsmandApplication) activity.getApplication();
|
||||
final OsmandSettings settings = app.getSettings();
|
||||
|
@ -271,6 +272,7 @@ public class OsmandRasterMapsPlugin extends OsmandPlugin {
|
|||
protected List<TileSourceTemplate> doInBackground(Void... params) {
|
||||
return TileSourceManager.downloadTileSourceTemplates(Version.getVersionAsURLParam(app));
|
||||
}
|
||||
|
||||
protected void onPostExecute(final java.util.List<TileSourceTemplate> downloaded) {
|
||||
if (downloaded == null || downloaded.isEmpty()) {
|
||||
AccessibleToast.makeText(activity, R.string.shared_string_io_error, Toast.LENGTH_SHORT).show();
|
||||
|
|
Loading…
Reference in a new issue