mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-26 07:44:56 +01:00
fix filter by none
This commit is contained in:
parent
1ead555e09
commit
1a2ba04b76
@ -67,6 +67,7 @@ public abstract class MindmapFilter {
|
|||||||
|
|
||||||
static public MindmapFilter parse(@Nullable final String valueStr) {
|
static public MindmapFilter parse(@Nullable final String valueStr) {
|
||||||
MindmapFilter result = null;
|
MindmapFilter result = null;
|
||||||
|
if (valueStr != null) {
|
||||||
for (MindmapFilter value : MindmapFilter.values) {
|
for (MindmapFilter value : MindmapFilter.values) {
|
||||||
if (value.id.equals(valueStr)) {
|
if (value.id.equals(valueStr)) {
|
||||||
result = value;
|
result = value;
|
||||||
@ -75,9 +76,11 @@ public abstract class MindmapFilter {
|
|||||||
}
|
}
|
||||||
// valueStr is not a default filter
|
// valueStr is not a default filter
|
||||||
if (result == null) {
|
if (result == null) {
|
||||||
assert valueStr != null;
|
|
||||||
result = new LabelFilter(valueStr);
|
result = new LabelFilter(valueStr);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
result = ALL;
|
||||||
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user