aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/filter/TypeFilter.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/filter/TypeFilter.java')
-rw-r--r--main/src/cgeo/geocaching/filter/TypeFilter.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/filter/TypeFilter.java b/main/src/cgeo/geocaching/filter/TypeFilter.java
index 412cbc2..b8c879f 100644
--- a/main/src/cgeo/geocaching/filter/TypeFilter.java
+++ b/main/src/cgeo/geocaching/filter/TypeFilter.java
@@ -11,7 +11,7 @@ import java.util.List;
class TypeFilter extends AbstractFilter {
private final CacheType cacheType;
- public TypeFilter(final CacheType cacheType) {
+ public TypeFilter(@NonNull final CacheType cacheType) {
super(cacheType.id);
this.cacheType = cacheType;
}
@@ -22,6 +22,7 @@ class TypeFilter extends AbstractFilter {
}
@Override
+ @NonNull
public String getName() {
return cacheType.getL10n();
}
@@ -42,4 +43,9 @@ class TypeFilter extends AbstractFilter {
}
}
+
+ @Override
+ public int getImageId() {
+ return cacheType.markerId;
+ }
}