mirror of https://github.com/M66B/NetGuard.git
Already activated
This commit is contained in:
parent
6ad2e037ee
commit
2faf361591
|
@ -279,13 +279,18 @@ public class ActivityPro extends AppCompatActivity {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onPrepareOptionsMenu(Menu menu) {
|
public boolean onPrepareOptionsMenu(Menu menu) {
|
||||||
if (IAB.isPurchased(SKU_DONATION, this) || Util.isPlayStoreInstall(this))
|
if (Util.isPlayStoreInstall(this))
|
||||||
menu.removeItem(R.id.menu_challenge);
|
menu.removeItem(R.id.menu_challenge);
|
||||||
|
|
||||||
return super.onPrepareOptionsMenu(menu);
|
return super.onPrepareOptionsMenu(menu);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void menu_challenge() {
|
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);
|
LayoutInflater inflater = LayoutInflater.from(this);
|
||||||
View view = inflater.inflate(R.layout.challenge, null, false);
|
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.
|
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.
|
You can cancel or manage a subscription via the subscriptions tab in the Play store app.
|
||||||
</string>
|
</string>
|
||||||
|
<string name="title_pro_already">The pro features are already activated</string>
|
||||||
|
|
||||||
<string-array name="themeNames">
|
<string-array name="themeNames">
|
||||||
<item>teal/orange</item>
|
<item>teal/orange</item>
|
||||||
|
|
Loading…
Reference in New Issue