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. 3
      core/src/org/transdroid/core/gui/navigation/Label.java

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

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

Loading…
Cancel
Save