From 8c74ec4d3e45bf6dc4d427e6f46805dbf955a8c6 Mon Sep 17 00:00:00 2001 From: max-klaus Date: Tue, 21 Jul 2020 13:50:01 +0300 Subject: [PATCH] Fix import plugin bug --- OsmAnd/src/net/osmand/plus/settings/backend/SettingsHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/settings/backend/SettingsHelper.java b/OsmAnd/src/net/osmand/plus/settings/backend/SettingsHelper.java index 41d251ea06..35ba432b9f 100644 --- a/OsmAnd/src/net/osmand/plus/settings/backend/SettingsHelper.java +++ b/OsmAnd/src/net/osmand/plus/settings/backend/SettingsHelper.java @@ -2493,7 +2493,7 @@ public class SettingsHelper { if (fileName.equals("items.json")) { String itemsJson = null; try { - itemsJson = Algorithms.readFromInputStream(ois).toString(); + itemsJson = Algorithms.readFromInputStream(ois, false).toString(); } catch (IOException e) { LOG.error("Error reading items.json: " + itemsJson, e); throw new IllegalArgumentException("No items");