aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/LogCacheActivity.java
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2013-07-05 18:56:43 +0200
committerBananeweizen <bananeweizen@gmx.de>2013-07-05 18:56:43 +0200
commitecb11c7d1f2bcf56848a1bfb5e3ecf249e48da8c (patch)
tree0167404fb4491071520231a2a192f25d8e3798db /main/src/cgeo/geocaching/LogCacheActivity.java
parent85f5277e6e4780960b8e028f8a8b717d121ac3be (diff)
downloadcgeo-ecb11c7d1f2bcf56848a1bfb5e3ecf249e48da8c.zip
cgeo-ecb11c7d1f2bcf56848a1bfb5e3ecf249e48da8c.tar.gz
cgeo-ecb11c7d1f2bcf56848a1bfb5e3ecf249e48da8c.tar.bz2
fix #2936: No GCVote for attended logs possible
Diffstat (limited to 'main/src/cgeo/geocaching/LogCacheActivity.java')
-rw-r--r--main/src/cgeo/geocaching/LogCacheActivity.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/LogCacheActivity.java b/main/src/cgeo/geocaching/LogCacheActivity.java
index b3b6c09..1045a9d 100644
--- a/main/src/cgeo/geocaching/LogCacheActivity.java
+++ b/main/src/cgeo/geocaching/LogCacheActivity.java
@@ -423,7 +423,7 @@ public class LogCacheActivity extends AbstractLoggingActivity implements DateDia
public boolean onPrepareOptionsMenu(Menu menu) {
super.onPrepareOptionsMenu(menu);
- final boolean voteAvailable = Settings.isGCvoteLogin() && typeSelected == LogType.FOUND_IT && StringUtils.isNotBlank(cache.getGuid()) && cache.supportsGCVote();
+ final boolean voteAvailable = Settings.isGCvoteLogin() && (typeSelected == LogType.FOUND_IT || typeSelected == LogType.ATTENDED || typeSelected == LogType.WEBCAM_PHOTO_TAKEN) && StringUtils.isNotBlank(cache.getGuid()) && cache.supportsGCVote();
menu.findItem(SUBMENU_VOTE).setVisible(voteAvailable);
return true;