Show 2 line description

This commit is contained in:
vshcherb 2013-11-03 18:52:57 +01:00
parent fdfc13681d
commit b09a07c315

View file

@ -136,6 +136,12 @@ public class ContextMenuLayer extends OsmandMapLayer {
// special case relayout after on draw method
layoutText();
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());
}
textView.setText(description);
if(textView.getLineCount() == 1) {
// make 2 line description
description +="\n ";
textView.setText(description);
}
} else {
textView.setText(""); //$NON-NLS-1$
}