Show 2 line description
This commit is contained in:
parent
fdfc13681d
commit
b09a07c315
1 changed files with 6 additions and 5 deletions
|
@ -136,6 +136,12 @@ public class ContextMenuLayer extends OsmandMapLayer {
|
||||||
// special case relayout after on draw method
|
// special case relayout after on draw method
|
||||||
layoutText();
|
layoutText();
|
||||||
view.refreshMap();
|
view.refreshMap();
|
||||||
|
} else if (c == 1) {
|
||||||
|
// make 2 line description
|
||||||
|
String des = textView.getText() + "\n ";
|
||||||
|
textView.setText(des);
|
||||||
|
layoutText();
|
||||||
|
view.refreshMap();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -163,11 +169,6 @@ public class ContextMenuLayer extends OsmandMapLayer {
|
||||||
latLon.getLatitude(), latLon.getLongitude());
|
latLon.getLatitude(), latLon.getLongitude());
|
||||||
}
|
}
|
||||||
textView.setText(description);
|
textView.setText(description);
|
||||||
if(textView.getLineCount() == 1) {
|
|
||||||
// make 2 line description
|
|
||||||
description +="\n ";
|
|
||||||
textView.setText(description);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
textView.setText(""); //$NON-NLS-1$
|
textView.setText(""); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue