aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2015-04-01 17:00:06 +0200
committerSamuel Tardieu <sam@rfc1149.net>2015-04-01 17:00:06 +0200
commite500a22cafe1b6ef0e6a1571ad7acaa385674436 (patch)
treeaecd771feb6c01b24cf9bc9a6ece96637e9f29e3 /main
parent9f891590c2c54701872a1846ccfcf26dcf4f15a1 (diff)
downloadcgeo-e500a22cafe1b6ef0e6a1571ad7acaa385674436.zip
cgeo-e500a22cafe1b6ef0e6a1571ad7acaa385674436.tar.gz
cgeo-e500a22cafe1b6ef0e6a1571ad7acaa385674436.tar.bz2
fix #4824: be more explicit when no connectors are active
Diffstat (limited to 'main')
-rw-r--r--main/src/cgeo/geocaching/AboutActivity.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/AboutActivity.java b/main/src/cgeo/geocaching/AboutActivity.java
index 90961d5..e5a98c2 100644
--- a/main/src/cgeo/geocaching/AboutActivity.java
+++ b/main/src/cgeo/geocaching/AboutActivity.java
@@ -291,14 +291,18 @@ public class AboutActivity extends AbstractViewPagerActivity<AboutActivity.Page>
.append("\nMap strategy: ").append(Settings.getLiveMapStrategy().toString().toLowerCase(Locale.getDefault()))
.append("\nHW-acceleration: ").append(Settings.useHardwareAcceleration() ? "enabled" : "disabled")
.append(" (").append(Settings.useHardwareAcceleration() != Settings.HW_ACCEL_DISABLED_BY_DEFAULT ? "default state" : "manually changed").append(")");
+ final StringBuilder connectors = new StringBuilder();
+ int connectorCount = 0;
for (final ILogin connector : ConnectorFactory.getActiveLiveConnectors()) {
- body.append('\n').append(connector.getName()).append(": ").append(connector.isLoggedIn() ? "logged in" : "not logged in")
+ connectorCount++;
+ connectors.append("\n - ").append(connector.getName()).append(": ").append(connector.isLoggedIn() ? "logged in" : "not logged in")
.append(" (").append(connector.getLoginStatusString()).append(')');
if (connector.getName().equals("geocaching.com") && connector.isLoggedIn()) {
- body.append(" / ").append(Settings.getGCMemberStatus());
+ connectors.append(" / ").append(Settings.getGCMemberStatus());
}
}
- body.append("\nSystem language: ").append(Locale.getDefault());
+ body.append("\nGeocaching sites enabled:").append(connectorCount > 0 ? connectors : " none")
+ .append("\nSystem language: ").append(Locale.getDefault());
if (Settings.isUseEnglish()) {
body.append(" (cgeo forced to English)");
}