diff options
| author | rsudev <rasch@munin-soft.de> | 2013-05-08 22:49:52 +0200 |
|---|---|---|
| committer | rsudev <rasch@munin-soft.de> | 2013-05-08 22:49:52 +0200 |
| commit | bdba3f7506a8fe58b2a3e81b94d28f3d74f3d6d0 (patch) | |
| tree | d7c90c6e609f12f19314c0d2bb9444206c2a2694 /main/src/cgeo/geocaching/VisitCacheActivity.java | |
| parent | 2ce258172e1368a751ea27b11e3582ad4a72261c (diff) | |
| download | cgeo-bdba3f7506a8fe58b2a3e81b94d28f3d74f3d6d0.zip cgeo-bdba3f7506a8fe58b2a3e81b94d28f3d74f3d6d0.tar.gz cgeo-bdba3f7506a8fe58b2a3e81b94d28f3d74f3d6d0.tar.bz2 | |
Fixes #2627, Twitter posting (ui)
Integrate UI initialization into onCreate as well
Diffstat (limited to 'main/src/cgeo/geocaching/VisitCacheActivity.java')
| -rw-r--r-- | main/src/cgeo/geocaching/VisitCacheActivity.java | 8 |
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 { |
