Fix on/off
This commit is contained in:
parent
f2f69e08ca
commit
3dd8f3c501
1 changed files with 1 additions and 1 deletions
|
@ -361,7 +361,7 @@ public class OsMoGroupsActivity extends OsmandExpandableListActivity implements
|
||||||
final LayoutInflater inflater = LayoutInflater.from(OsMoGroupsActivity.this);
|
final LayoutInflater inflater = LayoutInflater.from(OsMoGroupsActivity.this);
|
||||||
View view = inflater.inflate(R.layout.check_item_rel, null);
|
View view = inflater.inflate(R.layout.check_item_rel, null);
|
||||||
final CompoundButton check = (CompoundButton) view.findViewById(R.id.check_item);
|
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() {
|
check.setOnCheckedChangeListener(new OnCheckedChangeListener() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue