From 0b8dfe60d86192f1f89d185c6162a77b30f6e8bb Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 31 Dec 2015 19:31:34 +0100 Subject: [PATCH] Pro trial preparation --- app/src/main/java/eu/faircode/netguard/IAB.java | 4 ++-- app/src/main/res/layout/pro.xml | 8 ++++++++ app/src/main/res/values/strings.xml | 2 ++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/netguard/IAB.java b/app/src/main/java/eu/faircode/netguard/IAB.java index 55953583..3d6e42ab 100644 --- a/app/src/main/java/eu/faircode/netguard/IAB.java +++ b/app/src/main/java/eu/faircode/netguard/IAB.java @@ -121,8 +121,8 @@ public class IAB implements ServiceConnection { SharedPreferences prefs = context.getSharedPreferences("IAB", Context.MODE_PRIVATE); SharedPreferences.Editor editor = prefs.edit(); for (String product : prefs.getAll().keySet()) - //if (!ActivityPro.SKU_DONATION.equals(product)) - editor.remove(product); + if (!ActivityPro.SKU_DONATION.equals(product)) + editor.remove(product); for (String sku : skus) { Log.i(TAG, "SKU=" + sku); editor.putBoolean(sku, true); diff --git a/app/src/main/res/layout/pro.xml b/app/src/main/res/layout/pro.xml index 39d02d7d..f77f4db9 100644 --- a/app/src/main/res/layout/pro.xml +++ b/app/src/main/res/layout/pro.xml @@ -16,8 +16,16 @@ android:orientation="vertical"> + + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index a905c4e7..31d7bcd5 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -94,6 +94,8 @@ Since NetGuard has no internet permission, you know your internet traffic is not Block Pro features + Pro features trial until %1$s + Pro features trial period ended The following convenience features are available: Search, filter, sort applications New application reminders