blob: 6e7cdcaf18a253b8bbf42f4b7945d889b257a1a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package cgeo.geocaching.apps.cache;
import cgeo.geocaching.R;
import cgeo.geocaching.cgCache;
import cgeo.geocaching.enumerations.CacheAttribute;
public class CacheBeaconApp extends AbstractGeneralApp {
protected CacheBeaconApp() {
super(getString(R.string.cache_menu_cachebeacon), "de.fun2code.android.cachebeacon");
}
@Override
public boolean isEnabled(cgCache cache) {
if (cache == null) {
return false;
}
return cache.hasAttribute(CacheAttribute.WIRELESS_BEACON, true);
}
}
|