From 3dd8f3c50116765c737037ca40dfa8a320811dd2 Mon Sep 17 00:00:00 2001 From: vshcherb Date: Wed, 28 May 2014 18:22:02 +0200 Subject: [PATCH] Fix on/off --- OsmAnd/src/net/osmand/plus/osmo/OsMoGroupsActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/osmo/OsMoGroupsActivity.java b/OsmAnd/src/net/osmand/plus/osmo/OsMoGroupsActivity.java index 38f22bee80..d38ab05534 100644 --- a/OsmAnd/src/net/osmand/plus/osmo/OsMoGroupsActivity.java +++ b/OsmAnd/src/net/osmand/plus/osmo/OsMoGroupsActivity.java @@ -361,7 +361,7 @@ public class OsMoGroupsActivity extends OsmandExpandableListActivity implements final LayoutInflater inflater = LayoutInflater.from(OsMoGroupsActivity.this); View view = inflater.inflate(R.layout.check_item_rel, null); final CompoundButton check = (CompoundButton) view.findViewById(R.id.check_item); - check.setChecked((device != null && device.isActive()) || (group != null && group.isActive())); + check.setChecked((device != null && device.isActive() && device.isEnabled()) || (group != null && group.isActive() && group.isEnabled())); check.setOnCheckedChangeListener(new OnCheckedChangeListener() { @Override