aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/VisitCacheActivity.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/VisitCacheActivity.java')
-rw-r--r--main/src/cgeo/geocaching/VisitCacheActivity.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/VisitCacheActivity.java b/main/src/cgeo/geocaching/VisitCacheActivity.java
index d95f6df..dce0fbf 100644
--- a/main/src/cgeo/geocaching/VisitCacheActivity.java
+++ b/main/src/cgeo/geocaching/VisitCacheActivity.java
@@ -356,6 +356,7 @@ public class VisitCacheActivity extends AbstractLoggingActivity implements DateD
}
tweetCheck.setChecked(true);
+ updateTweetBox(typeSelected);
final Button imageButton = (Button) findViewById(R.id.image_btn);
imageButton.setOnClickListener(new View.OnClickListener() {
@@ -522,12 +523,17 @@ public class VisitCacheActivity extends AbstractLoggingActivity implements DateD
// TODO: change action
}
+ updateTweetBox(type);
+
+ updatePostButtonText();
+ }
+
+ private void updateTweetBox(LogType type) {
if (type == LogType.FOUND_IT && Settings.isUseTwitter()) {
tweetBox.setVisibility(View.VISIBLE);
} else {
tweetBox.setVisibility(View.GONE);
}
- updatePostButtonText();
}
private class DateListener implements View.OnClickListener {