diff --git a/app/src/lite/res/values/strings.xml b/app/src/lite/res/values/strings.xml
index d0af0753..36912a08 100644
--- a/app/src/lite/res/values/strings.xml
+++ b/app/src/lite/res/values/strings.xml
@@ -18,7 +18,7 @@
Transdrone
- Donate via transdroid.org
- https://transdroid.org
+
+
diff --git a/app/src/main/java/org/transdroid/core/gui/settings/MainSettingsActivity.java b/app/src/main/java/org/transdroid/core/gui/settings/MainSettingsActivity.java
index 4e66825f..7d803716 100644
--- a/app/src/main/java/org/transdroid/core/gui/settings/MainSettingsActivity.java
+++ b/app/src/main/java/org/transdroid/core/gui/settings/MainSettingsActivity.java
@@ -178,6 +178,7 @@ public class MainSettingsActivity extends PreferenceCompatActivity {
boolean enableSearchUi = navigationHelper.enableSearchUi();
boolean enableRssUi = navigationHelper.enableRssUi();
+ boolean enableDonateLink = !getString(R.string.donate_url).isEmpty();
// Load the preference menu and attach actions
addPreferencesFromResource(R.xml.pref_main);
@@ -191,7 +192,11 @@ public class MainSettingsActivity extends PreferenceCompatActivity {
findPreference("header_background").setOnPreferenceClickListener(onBackgroundSettings);
findPreference("header_system").setOnPreferenceClickListener(onSystemSettings);
findPreference("header_help").setOnPreferenceClickListener(onHelpSettings);
- findPreference("header_donate").setOnPreferenceClickListener(onDonate);
+ if (enableDonateLink) {
+ findPreference("header_donate").setOnPreferenceClickListener(onDonate);
+ } else {
+ getPreferenceScreen().removePreference(findPreference("header_donate"));
+ }
// Keep a list of the server codes and names (for default server selection)
List serverCodes = new ArrayList<>();