Fix 2881
This commit is contained in:
parent
e61e5eb35d
commit
4082bdf11e
2 changed files with 18 additions and 20 deletions
|
@ -591,7 +591,7 @@ public class ConfigureMapMenu {
|
|||
@Override
|
||||
public boolean onContextMenuClick(ArrayAdapter<ContextMenuItem> a, int itemId, int pos,
|
||||
boolean isChecked) {
|
||||
if (!isChecked) {
|
||||
if (!isChecked && !useDescription) {
|
||||
for (int i = 0; i < prefs.size(); i++) {
|
||||
prefs.get(i).set(false);
|
||||
}
|
||||
|
@ -606,10 +606,8 @@ public class ConfigureMapMenu {
|
|||
}
|
||||
|
||||
};
|
||||
ContextMenuItem.ItemBuilder builder = new ContextMenuItem.ItemBuilder()
|
||||
.setTitleId(strId, activity)
|
||||
.setIcon(icon)
|
||||
.setListener(clickListener);
|
||||
ContextMenuItem.ItemBuilder builder = new ContextMenuItem.ItemBuilder().setTitleId(strId, activity)
|
||||
.setIcon(icon).setListener(clickListener);
|
||||
if (useDescription) {
|
||||
final String descr = getDescription(prefs);
|
||||
builder.setDescription(descr);
|
||||
|
|
Loading…
Reference in a new issue