From a2c5624930d1dc04a89818207a94f69848ef7a09 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Thu, 19 Mar 2020 18:13:20 +0200 Subject: [PATCH] Add string resource --- OsmAnd/res/values/strings.xml | 1 + OsmAnd/src/net/osmand/plus/CustomOsmandPlugin.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/OsmAnd/res/values/strings.xml b/OsmAnd/res/values/strings.xml index 4131dc937b..85d5f80d1b 100644 --- a/OsmAnd/res/values/strings.xml +++ b/OsmAnd/res/values/strings.xml @@ -11,6 +11,7 @@ Thx - Hardy --> + Custom OsmAnd plugin Are you sure you want to clear recorded data? All profile settings will be restored to their original state after creating/importing this profile. Restore all profile settings? diff --git a/OsmAnd/src/net/osmand/plus/CustomOsmandPlugin.java b/OsmAnd/src/net/osmand/plus/CustomOsmandPlugin.java index e596bbcf49..e63fdac2df 100644 --- a/OsmAnd/src/net/osmand/plus/CustomOsmandPlugin.java +++ b/OsmAnd/src/net/osmand/plus/CustomOsmandPlugin.java @@ -57,7 +57,7 @@ public class CustomOsmandPlugin extends OsmandPlugin { names.put(localeKey, name); } } - JSONObject descriptionJson = json.getJSONObject("Description"); + JSONObject descriptionJson = json.getJSONObject("description"); if (descriptionJson != null) { for (Iterator it = descriptionJson.keys(); it.hasNext(); ) { String localeKey = it.next(); @@ -137,7 +137,7 @@ public class CustomOsmandPlugin extends OsmandPlugin { for (Map.Entry entry : descriptions.entrySet()) { descriptionJson.put(entry.getKey(), entry.getValue()); } - json.put("Description", descriptionJson); + json.put("description", descriptionJson); saveAdditionalItemsToJson(json);