aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/LogCacheActivity.java
diff options
context:
space:
mode:
authorkoem <koem@petoria.de>2013-06-21 18:57:50 -0600
committerrsudev <rasch@munin-soft.de>2013-07-09 21:49:26 +0200
commitece37925442507a71f12a2a2f531ea213c48cad5 (patch)
treed901c0f18e9e8c1af65c15f0de25ad3abc04a14f /main/src/cgeo/geocaching/LogCacheActivity.java
parent3abe2f0eb20b351bb8d7b8d5283dcbd102241d27 (diff)
downloadcgeo-ece37925442507a71f12a2a2f531ea213c48cad5.zip
cgeo-ece37925442507a71f12a2a2f531ea213c48cad5.tar.gz
cgeo-ece37925442507a71f12a2a2f531ea213c48cad5.tar.bz2
Implements #750, use preference activity
Diffstat (limited to 'main/src/cgeo/geocaching/LogCacheActivity.java')
-rw-r--r--main/src/cgeo/geocaching/LogCacheActivity.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/LogCacheActivity.java b/main/src/cgeo/geocaching/LogCacheActivity.java
index 1045a9d..e11af0f 100644
--- a/main/src/cgeo/geocaching/LogCacheActivity.java
+++ b/main/src/cgeo/geocaching/LogCacheActivity.java
@@ -8,6 +8,7 @@ import cgeo.geocaching.enumerations.LogType;
import cgeo.geocaching.enumerations.LogTypeTrackable;
import cgeo.geocaching.enumerations.StatusCode;
import cgeo.geocaching.gcvote.GCVote;
+import cgeo.geocaching.settings.Settings;
import cgeo.geocaching.twitter.Twitter;
import cgeo.geocaching.ui.Formatter;
import cgeo.geocaching.ui.dialog.DateDialog;
@@ -489,7 +490,7 @@ public class LogCacheActivity extends AbstractLoggingActivity implements DateDia
}
private void updateTweetBox(LogType type) {
- if (type == LogType.FOUND_IT && Settings.isUseTwitter()) {
+ if (type == LogType.FOUND_IT && Settings.isUseTwitter() && Settings.isTwitterLoginValid()) {
tweetBox.setVisibility(View.VISIBLE);
} else {
tweetBox.setVisibility(View.GONE);