From d9900126a772b0a0fc904eea5bf2c99d2ff5f5d2 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Fri, 10 Jan 2020 09:59:14 +0200 Subject: [PATCH] Remove unnecessary changes --- OsmAnd/src/net/osmand/aidl/ConnectedApp.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/aidl/ConnectedApp.java b/OsmAnd/src/net/osmand/aidl/ConnectedApp.java index 755b3ec8fe..112c533175 100644 --- a/OsmAnd/src/net/osmand/aidl/ConnectedApp.java +++ b/OsmAnd/src/net/osmand/aidl/ConnectedApp.java @@ -53,6 +53,8 @@ public class ConnectedApp implements Comparable { private Map layers = new ConcurrentHashMap<>(); private Map mapLayers = new ConcurrentHashMap<>(); + private OsmandSettings.CommonPreference layersPref; + private String pack; private String name; @@ -64,6 +66,7 @@ public class ConnectedApp implements Comparable { this.app = app; this.pack = pack; this.enabled = enabled; + layersPref = app.getSettings().registerBooleanPreference(AIDL_LAYERS_PREFIX + pack, true).cache(); } public boolean isEnabled() { @@ -122,8 +125,6 @@ public class ConnectedApp implements Comparable { } void registerLayerContextMenu(final ContextMenuAdapter menuAdapter, final MapActivity mapActivity) { - final OsmandSettings.CommonPreference layersPref = app.getSettings().registerBooleanPreference(AIDL_LAYERS_PREFIX + pack, true).cache(); - ContextMenuAdapter.ItemClickListener listener = new ContextMenuAdapter.OnRowItemClick() { @Override