diff --git a/app/src/main/java/eu/faircode/netguard/ActivityPro.java b/app/src/main/java/eu/faircode/netguard/ActivityPro.java index 063d360d..817b3535 100644 --- a/app/src/main/java/eu/faircode/netguard/ActivityPro.java +++ b/app/src/main/java/eu/faircode/netguard/ActivityPro.java @@ -279,13 +279,18 @@ public class ActivityPro extends AppCompatActivity { @Override public boolean onPrepareOptionsMenu(Menu menu) { - if (IAB.isPurchased(SKU_DONATION, this) || Util.isPlayStoreInstall(this)) + if (Util.isPlayStoreInstall(this)) menu.removeItem(R.id.menu_challenge); return super.onPrepareOptionsMenu(menu); } private void menu_challenge() { + if (IAB.isPurchased(SKU_DONATION, this)) { + Toast.makeText(this, getString(R.string.title_pro_already), Toast.LENGTH_LONG).show(); + return; + } + LayoutInflater inflater = LayoutInflater.from(this); View view = inflater.inflate(R.layout.challenge, null, false); diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 0630a3f9..fd0819a3 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -325,6 +325,7 @@ Your internet traffic is not being sent to a remote VPN server. A monthly subscriptions of 1 or 2 euros (excluding local taxes) will activate all pro features. You can cancel or manage a subscription via the subscriptions tab in the Play store app. + The pro features are already activated teal/orange