1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2024-12-21 23:33:21 +00:00

Already activated

This commit is contained in:
M66B 2023-11-01 07:33:29 +01:00
parent 6ad2e037ee
commit 2faf361591
2 changed files with 7 additions and 1 deletions

View file

@ -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);

View file

@ -325,6 +325,7 @@ Your internet traffic is not being sent to a remote VPN server.</string>
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.
</string>
<string name="title_pro_already">The pro features are already activated</string>
<string-array name="themeNames">
<item>teal/orange</item>