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
|
@Override
|
||||||
public boolean onContextMenuClick(ArrayAdapter<ContextMenuItem> a, int itemId, int pos,
|
public boolean onContextMenuClick(ArrayAdapter<ContextMenuItem> a, int itemId, int pos,
|
||||||
boolean isChecked) {
|
boolean isChecked) {
|
||||||
if (!isChecked) {
|
if (!isChecked && !useDescription) {
|
||||||
for (int i = 0; i < prefs.size(); i++) {
|
for (int i = 0; i < prefs.size(); i++) {
|
||||||
prefs.get(i).set(false);
|
prefs.get(i).set(false);
|
||||||
}
|
}
|
||||||
|
@ -606,10 +606,8 @@ public class ConfigureMapMenu {
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
ContextMenuItem.ItemBuilder builder = new ContextMenuItem.ItemBuilder()
|
ContextMenuItem.ItemBuilder builder = new ContextMenuItem.ItemBuilder().setTitleId(strId, activity)
|
||||||
.setTitleId(strId, activity)
|
.setIcon(icon).setListener(clickListener);
|
||||||
.setIcon(icon)
|
|
||||||
.setListener(clickListener);
|
|
||||||
if (useDescription) {
|
if (useDescription) {
|
||||||
final String descr = getDescription(prefs);
|
final String descr = getDescription(prefs);
|
||||||
builder.setDescription(descr);
|
builder.setDescription(descr);
|
||||||
|
|
Loading…
Reference in a new issue