You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
fairemail-apk/patches/10-pro.diff

18 lines
761 B

--- app/src/play/java/eu/faircode/email/ActivityBilling.java 2020-08-30 11:37:31.000000000 +0000
+++ app/src/play/java/eu/faircode/email/ActivityBilling.java 2020-08-30 17:14:51.498662023 +0000
@@ -196,10 +196,11 @@
}
static boolean isPro(Context context) {
- if (BuildConfig.DEBUG && false)
- return true;
- return PreferenceManager.getDefaultSharedPreferences(context)
- .getBoolean("pro", false);
+ SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
+ if (!prefs.getBoolean("pro", false)) {
+ prefs.edit().putBoolean("pro", true).commit();
+ }
+ return true;
}
private BroadcastReceiver receiver = new BroadcastReceiver() {