mirror of
https://github.com/M66B/NetGuard.git
synced 2024-12-21 23:33:21 +00:00
Already activated
This commit is contained in:
parent
6ad2e037ee
commit
2faf361591
2 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue