Remove unnecessary changes

This commit is contained in:
Vitaliy 2020-01-10 09:59:14 +02:00
parent 27bf9eb853
commit d9900126a7

View file

@ -53,6 +53,8 @@ public class ConnectedApp implements Comparable<ConnectedApp> {
private Map<String, AidlMapLayerWrapper> layers = new ConcurrentHashMap<>();
private Map<String, OsmandMapLayer> mapLayers = new ConcurrentHashMap<>();
private OsmandSettings.CommonPreference<Boolean> layersPref;
private String pack;
private String name;
@ -64,6 +66,7 @@ public class ConnectedApp implements Comparable<ConnectedApp> {
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<ConnectedApp> {
}
void registerLayerContextMenu(final ContextMenuAdapter menuAdapter, final MapActivity mapActivity) {
final OsmandSettings.CommonPreference<Boolean> layersPref = app.getSettings().registerBooleanPreference(AIDL_LAYERS_PREFIX + pack, true).cache();
ContextMenuAdapter.ItemClickListener listener = new ContextMenuAdapter.OnRowItemClick() {
@Override