aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/twitter
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2012-12-01 11:17:28 +0100
committerBananeweizen <bananeweizen@gmx.de>2012-12-01 11:17:28 +0100
commit9e8bd582fe704f06414f4018da65a49976511541 (patch)
tree4d40f1247b311ad20ea686fb12deb2261fc5e036 /main/src/cgeo/geocaching/twitter
parent2a399517f9bbd58fdd1f9bb79bac08ef5d1d344d (diff)
downloadcgeo-9e8bd582fe704f06414f4018da65a49976511541.zip
cgeo-9e8bd582fe704f06414f4018da65a49976511541.tar.gz
cgeo-9e8bd582fe704f06414f4018da65a49976511541.tar.bz2
fix #2211: remove application-database indirection
Diffstat (limited to 'main/src/cgeo/geocaching/twitter')
-rw-r--r--main/src/cgeo/geocaching/twitter/Twitter.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/twitter/Twitter.java b/main/src/cgeo/geocaching/twitter/Twitter.java
index c630cec..c86c633 100644
--- a/main/src/cgeo/geocaching/twitter/Twitter.java
+++ b/main/src/cgeo/geocaching/twitter/Twitter.java
@@ -2,6 +2,7 @@ package cgeo.geocaching.twitter;
import cgeo.geocaching.Settings;
import cgeo.geocaching.cgCache;
+import cgeo.geocaching.cgData;
import cgeo.geocaching.cgTrackable;
import cgeo.geocaching.cgeoapplication;
import cgeo.geocaching.enumerations.LoadFlags;
@@ -55,7 +56,7 @@ public final class Twitter {
}
public static void postTweetCache(String geocode) {
- final cgCache cache = cgeoapplication.getInstance().loadCache(geocode, LoadFlags.LOAD_CACHE_OR_DB);
+ final cgCache cache = cgData.loadCache(geocode, LoadFlags.LOAD_CACHE_OR_DB);
String status;
final String url = cache.getUrl();
if (url.length() >= 100) {
@@ -76,7 +77,7 @@ public final class Twitter {
}
public static void postTweetTrackable(String geocode) {
- final cgTrackable trackable = cgeoapplication.getInstance().getTrackableByGeocode(geocode);
+ final cgTrackable trackable = cgData.loadTrackable(geocode);
String name = trackable.getName();
if (name.length() > 82) {
name = name.substring(0, 81) + '…';