Browse Source

Remove any empty label that the server sends, as we maintain out own empty label. Fixes #79.

pull/148/merge
Eric Kok 11 years ago
parent
commit
35831ca5c0
  1. 1
      core/src/org/transdroid/core/gui/navigation/Label.java

1
core/src/org/transdroid/core/gui/navigation/Label.java

@ -96,6 +96,7 @@ public class Label implements SimpleListItem, NavigationFilter, Comparable<Label @@ -96,6 +96,7 @@ public class Label implements SimpleListItem, NavigationFilter, Comparable<Label
unnamedLabelText = unnamedLabel;
localLabels.add(new Label(unnamedLabel, -1, true));
for (org.transdroid.daemon.Label label : daemonLabels) {
if (!TextUtils.isEmpty(label.getName()))
localLabels.add(new Label(label));
}
Collections.sort(localLabels);

Loading…
Cancel
Save