|
|
@ -101,13 +101,17 @@ public class Label implements SimpleListItem, NavigationFilter, Comparable<Label |
|
|
|
} |
|
|
|
} |
|
|
|
ArrayList<Label> localLabels = new ArrayList<>(); |
|
|
|
ArrayList<Label> localLabels = new ArrayList<>(); |
|
|
|
unnamedLabelText = unnamedLabel; |
|
|
|
unnamedLabelText = unnamedLabel; |
|
|
|
localLabels.add(new Label(unnamedLabel, -1, true)); |
|
|
|
|
|
|
|
for (org.transdroid.daemon.Label label : daemonLabels) { |
|
|
|
for (org.transdroid.daemon.Label label : daemonLabels) { |
|
|
|
if (label != null && !TextUtils.isEmpty(label.getName())) { |
|
|
|
if (label != null && !TextUtils.isEmpty(label.getName())) { |
|
|
|
localLabels.add(new Label(label)); |
|
|
|
localLabels.add(new Label(label)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
Collections.sort(localLabels); |
|
|
|
Collections.sort(localLabels); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// force unlabelled to be at the top
|
|
|
|
|
|
|
|
localLabels.add(0, new Label(unnamedLabel, -1, true)); |
|
|
|
|
|
|
|
|
|
|
|
return localLabels; |
|
|
|
return localLabels; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|