Remove unnecessary changes
This commit is contained in:
parent
27bf9eb853
commit
d9900126a7
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue