diff --git a/app/src/main/java/foundation/e/drive/activity/AccountsActivity.java b/app/src/main/java/foundation/e/drive/activity/AccountsActivity.java index 1b9362224bce245b68161c0753259c77698ce439..90f47e0798b2f2c7ed0922b81df7a1f4115903b0 100644 --- a/app/src/main/java/foundation/e/drive/activity/AccountsActivity.java +++ b/app/src/main/java/foundation/e/drive/activity/AccountsActivity.java @@ -179,7 +179,7 @@ public class AccountsActivity extends AppCompatActivity { public void onClick(View v) { final Intent upgradeIntent = buildIntent(Intent.ACTION_VIEW, String.format(EDriveWidget.WEBPAGE, userInfo.id, - client.getCredentials().getAuthToken(), dataForWeb(userInfo.quota.total))); + dataForWeb(userInfo.quota.total))); startActivity(upgradeIntent); } }); diff --git a/app/src/main/java/foundation/e/drive/widgets/EDriveWidget.java b/app/src/main/java/foundation/e/drive/widgets/EDriveWidget.java index eb76f33c9052b9755513f6ea5f61e5909ddceb6b..9c0480f4e60a16f0dc269ae2743df3ecb4219f09 100644 --- a/app/src/main/java/foundation/e/drive/widgets/EDriveWidget.java +++ b/app/src/main/java/foundation/e/drive/widgets/EDriveWidget.java @@ -45,7 +45,7 @@ import foundation.e.drive.utils.CommonUtils; */ public class EDriveWidget extends AppWidgetProvider { public static final String WEBPAGE = - "https://esolutions.shop/ecloud-subscriptions/?username=%s&token=%s¤t-quota=%s&from=nextcloud"; + "https://esolutions.shop/ecloud-subscriptions/?username=%s&token=placeholder¤t-quota=%s&from=wp"; public static final String ACCOUNT_MANAGER_PACKAGE_NAME = "foundation.e.accountmanager"; private static final String ADD_ACCOUNT_WEBPAGE = "https://e.foundation/e-email-invite/"; private static final String GET_ACCOUNT_MANAGER_COMPONENT_NAME = ACCOUNT_MANAGER_PACKAGE_NAME + @@ -276,7 +276,7 @@ public class EDriveWidget extends AppWidgetProvider { final PendingIntent pendingIntentUpgrade = PendingIntent.getActivity(context, 0, buildIntent(Intent.ACTION_VIEW, String.format(WEBPAGE, userInfo.id, - client.getCredentials().getAuthToken(), dataForWeb(userInfo.quota.total))), + dataForWeb(userInfo.quota.total))), PendingIntent.FLAG_IMMUTABLE); views.setOnClickPendingIntent(R.id.upgrade, pendingIntentUpgrade); }