From 7cf676f9bd65f7f3fe834161effedad93fd29e80 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 16 Oct 2019 10:01:01 +0200 Subject: 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. Signed-off-by: Jason A. Donenfeld --- .../android/preference/DonatePreference.java | 44 ---------------------- 1 file changed, 44 deletions(-) delete mode 100644 app/src/main/java/com/wireguard/android/preference/DonatePreference.java (limited to 'app/src/main/java/com/wireguard') 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) { - } - } - -} -- cgit v1.2.3