aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/apps/cache/CacheBeaconApp.java
blob: 34c907409ae2ac4a61af5259b49ff495c62be981 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package cgeo.geocaching.apps.cache;

import cgeo.geocaching.Geocache;
import cgeo.geocaching.R;
import cgeo.geocaching.enumerations.CacheAttribute;

public class CacheBeaconApp extends AbstractGeneralApp {

    public CacheBeaconApp() {
        super(getString(R.string.cache_menu_cachebeacon), R.id.cache_app_cache_beacon, "de.fun2code.android.cachebeacon");
    }

    @Override
    public boolean isEnabled(Geocache cache) {
        return cache.hasAttribute(CacheAttribute.WIRELESSBEACON, true);
    }

}