aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-10-16 10:01:01 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-10-16 10:01:01 +0200
commitf0bab44b4a17b65e9f7e718a9ba9b2bc37041268 (patch)
tree379414076159ba9cb118d6cc12aecc537fb12935
parentVersion bump (diff)
downloadwireguard-android-f0bab44b4a17b65e9f7e718a9ba9b2bc37041268.tar.xz
wireguard-android-f0bab44b4a17b65e9f7e718a9ba9b2bc37041268.zip
Google doesn't want to enable others to support free open source software
Revert "preferences: add donation link" This reverts commit e5455f579aec48abb30ba68b0248b02d79303126. The app was removed from the Play Store for violating their payments policy. Upon filing an appeal, I was told that they do not allow donations to projects like WireGuard.
-rw-r--r--app/src/main/java/com/wireguard/android/preference/DonatePreference.java44
-rw-r--r--app/src/main/res/values/strings.xml2
-rw-r--r--app/src/main/res/xml/preferences.xml1
3 files changed, 0 insertions, 47 deletions
diff --git a/app/src/main/java/com/wireguard/android/preference/DonatePreference.java b/app/src/main/java/com/wireguard/android/preference/DonatePreference.java
deleted file mode 100644
index 6ae0622c..00000000
--- a/app/src/main/java/com/wireguard/android/preference/DonatePreference.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Copyright © 2019 WireGuard LLC. All Rights Reserved.
- * SPDX-License-Identifier: Apache-2.0
- */
-
-package com.wireguard.android.preference;
-
-import android.content.ActivityNotFoundException;
-import android.content.Context;
-import android.content.Intent;
-import android.net.Uri;
-import android.util.AttributeSet;
-
-import com.wireguard.android.Application;
-import com.wireguard.android.BuildConfig;
-import com.wireguard.android.R;
-
-import java.util.Locale;
-
-import androidx.annotation.Nullable;
-import androidx.preference.Preference;
-
-public class DonatePreference extends Preference {
- public DonatePreference(final Context context, final AttributeSet attrs) {
- super(context, attrs);
- }
-
- @Override
- public CharSequence getSummary() { return getContext().getString(R.string.donate_summary); }
-
- @Override
- public CharSequence getTitle() { return getContext().getString(R.string.donate_title); }
-
- @Override
- protected void onClick() {
- final Intent intent = new Intent(Intent.ACTION_VIEW);
- intent.setData(Uri.parse("https://www.wireguard.com/donations/"));
- try {
- getContext().startActivity(intent);
- } catch (final ActivityNotFoundException ignored) {
- }
- }
-
-}
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 6cc50f2d..33470706 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -67,8 +67,6 @@
<string name="dark_theme_title">Use dark theme</string>
<string name="delete">Delete</string>
<string name="deselect_all">Deselect All</string>
- <string name="donate_title">♥ Donate to the WireGuard Project</string>
- <string name="donate_summary">Every contribution helps.</string>
<string name="dns_servers">DNS servers</string>
<string name="edit">Edit</string>
<string name="endpoint">Endpoint</string>
diff --git a/app/src/main/res/xml/preferences.xml b/app/src/main/res/xml/preferences.xml
index e27b607d..9c09ae89 100644
--- a/app/src/main/res/xml/preferences.xml
+++ b/app/src/main/res/xml/preferences.xml
@@ -16,5 +16,4 @@
android:summaryOff="@string/dark_theme_summary_off"
android:summaryOn="@string/dark_theme_summary_on"
android:title="@string/dark_theme_title" />
- <com.wireguard.android.preference.DonatePreference />
</androidx.preference.PreferenceScreen>