refactor acquireDescriptionAndType
This commit is contained in:
parent
7baa093997
commit
0fbb4df134
1 changed files with 5 additions and 7 deletions
|
@ -555,13 +555,11 @@ public class OsmBugsLayer extends OsmandMapLayer implements IContextMenuProvider
|
||||||
|
|
||||||
private void acquireDescriptionAndType() {
|
private void acquireDescriptionAndType() {
|
||||||
if (comments.size() > 0) {
|
if (comments.size() > 0) {
|
||||||
String sb = comments.get(0).date + " " + comments.get(0).user;
|
Comment comment = comments.get(0);
|
||||||
description = comments.get(0).text;
|
description = comment.text;
|
||||||
typeName = sb;
|
typeName = comment.date + " " + comment.user;
|
||||||
}
|
if (description != null && description.length() < 100) {
|
||||||
if (description != null && description.length() < 100) {
|
comments.remove(comment);
|
||||||
if (comments.size() > 0) {
|
|
||||||
comments.remove(0);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue