diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2015-03-08 23:22:26 +0100 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2015-03-08 23:22:26 +0100 |
commit | 13dedaa0d6844da2825bdef1559b4341853a769b (patch) | |
tree | ac76269c3d7586b972c48114790edcfc043d5e99 /main | |
parent | 4699070a2fad4dd98fbf62827bc3931ea009b252 (diff) | |
download | cgeo-13dedaa0d6844da2825bdef1559b4341853a769b.zip cgeo-13dedaa0d6844da2825bdef1559b4341853a769b.tar.gz cgeo-13dedaa0d6844da2825bdef1559b4341853a769b.tar.bz2 |
Add plugins information to system information
Related to #4649.
Diffstat (limited to 'main')
-rw-r--r-- | main/src/cgeo/geocaching/AboutActivity.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/AboutActivity.java b/main/src/cgeo/geocaching/AboutActivity.java index e6f3fd1..3f24dfd 100644 --- a/main/src/cgeo/geocaching/AboutActivity.java +++ b/main/src/cgeo/geocaching/AboutActivity.java @@ -3,6 +3,8 @@ package cgeo.geocaching; import butterknife.ButterKnife; import butterknife.InjectView; +import cgeo.calendar.CalendarAddon; +import cgeo.contacts.ContactsAddon; import cgeo.geocaching.activity.AbstractViewPagerActivity; import cgeo.geocaching.compatibility.Compatibility; import cgeo.geocaching.connector.ConnectorFactory; @@ -299,6 +301,19 @@ public class AboutActivity extends AbstractViewPagerActivity<AboutActivity.Page> if (Settings.isUseEnglish()) { body.append(" (cgeo forced to English)"); } + final boolean calendarAddonAvailable = CalendarAddon.isAvailable(); + final boolean contactsAddonAvailable = ContactsAddon.isAvailable(); + body.append("\nInstalled plugins:"); + if (calendarAddonAvailable || contactsAddonAvailable) { + if (calendarAddonAvailable) { + body.append(" calendar"); + } + if (contactsAddonAvailable) { + body.append(" contacts"); + } + } else { + body.append("none"); + } body.append("\n--- End of system information ---\n"); return body.toString(); } |