blob: e104f9bb2abb2ecd5088d54c2d0042961e77e42b (
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
|
package cgeo.geocaching.apps.cache.navi;
import cgeo.geocaching.R;
import cgeo.geocaching.cgCache;
import cgeo.geocaching.cgWaypoint;
import cgeo.geocaching.geopoint.Geopoint;
import android.app.Activity;
class DownloadStaticMapsApp extends AbstractStaticMapsApp {
DownloadStaticMapsApp() {
super(getString(R.string.cache_menu_download_map_static));
}
@Override
public boolean invoke(Activity activity, cgCache cache, cgWaypoint waypoint, final Geopoint coords) {
return invoke(activity, cache, waypoint, true);
}
@Override
public boolean isEnabled(cgCache cache) {
return !hasStaticMap(cache);
}
@Override
public boolean isEnabled(cgWaypoint waypoint) {
return !hasStaticMap(waypoint);
}
}
|