refactor acquireDescriptionAndType

This commit is contained in:
Chumva 2018-07-18 12:11:26 +03:00
parent 7baa093997
commit 0fbb4df134

View file

@ -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);
} }
} }
} }