blob: 4cce8d795c0c75e0b337342d5c83ec0463d4ba10 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
package cgeo.geocaching.apps.cachelist;
import cgeo.geocaching.cgCache;
import cgeo.geocaching.cgGeo;
import cgeo.geocaching.apps.AbstractLocusApp;
import org.apache.commons.collections.CollectionUtils;
import android.app.Activity;
import android.content.res.Resources;
import java.util.List;
import java.util.UUID;
class LocusCacheListApp extends AbstractLocusApp implements CacheListApp {
LocusCacheListApp(Resources res) {
super(res);
}
/**
* show caches in Locus
*
* @see AbstractLocusApp#showInLocus
* @author koem
*/
@Override
public boolean invoke(cgGeo geo, List<cgCache> cacheList, Activity activity, Resources res,
final UUID searchId) {
if (CollectionUtils.isEmpty(cacheList)) {
return false;
}
showInLocus(cacheList, false, activity);
return true;
}
}
|