Commit 48085819 authored by Thomas's avatar Thomas
Browse files

Replace Paypal with Liberapay

parent 40d742e4
Pipeline #299003 passed with stage
in 6 minutes and 27 seconds
......@@ -1113,7 +1113,7 @@ public abstract class BaseMainActivity extends BaseActivity
}
if (!BuildConfig.DONATIONS) {
MenuItem openCollectiveItem = navigationView.getMenu().findItem(R.id.nav_opencollective);
MenuItem openCollectiveItem = navigationView.getMenu().findItem(R.id.nav_liberapay);
if (openCollectiveItem != null) {
openCollectiveItem.setVisible(false);
}
......@@ -1721,13 +1721,13 @@ public abstract class BaseMainActivity extends BaseActivity
Intent intent = new Intent(BaseMainActivity.this, AboutActivity.class);
startActivity(intent);
return false;
} else if (id == R.id.nav_opencollective) {
} else if (id == R.id.nav_liberapay) {
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("https://www.paypal.me/mastalab"));
intent.setData(Uri.parse("https://liberapay.com/tom79"));
try {
startActivity(intent);
} catch (Exception e) {
Helper.openBrowser(BaseMainActivity.this, "https://www.paypal.me/mastalab");
Helper.openBrowser(BaseMainActivity.this, "https://liberapay.com/tom79");
}
return false;
} else if (id == R.id.nav_upload) {
......
......@@ -1534,7 +1534,7 @@ public class Helper {
}
}
if (!BuildConfig.DONATIONS) {
MenuItem openCollectiveItem = menu.findItem(R.id.nav_opencollective);
MenuItem openCollectiveItem = menu.findItem(R.id.nav_liberapay);
if (openCollectiveItem != null) {
openCollectiveItem.setVisible(false);
}
......
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
<menu xmlns:tools="http://schemas.android.com/tools"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<group>
<!-- MASTODON MENU -->
......@@ -178,9 +179,10 @@
<menu>
<group android:checkableBehavior="single">
<item
android:id="@+id/nav_opencollective"
android:icon="@drawable/ic_attach_money"
android:title="PaypalMe" />
android:id="@+id/nav_liberapay"
android:icon="@drawable/ic_liberapay"
android:title="Liberapay"
tools:ignore="HardcodedText" />
<item
android:id="@+id/nav_how_to"
android:icon="@drawable/ic_videocam"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment