mirror of https://github.com/M66B/NetGuard.git
Enable pro features and development settings in beta versions
This commit is contained in:
parent
8d6682515e
commit
0026057861
|
@ -235,7 +235,7 @@ public class ActivitySettings extends AppCompatActivity implements SharedPrefere
|
||||||
options.removePreference(screen.findPreference("national_roaming"));
|
options.removePreference(screen.findPreference("national_roaming"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!Util.isDebuggable(this))
|
if (!Util.getSelfVersionName(this).endsWith("beta"))
|
||||||
screen.removePreference(screen.findPreference("category_development"));
|
screen.removePreference(screen.findPreference("category_development"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -168,6 +168,8 @@ public class IAB implements ServiceConnection {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isPurchased(String sku, Context context) {
|
public static boolean isPurchased(String sku, Context context) {
|
||||||
|
if (Util.getSelfVersionName(context).endsWith("beta"))
|
||||||
|
return true;
|
||||||
SharedPreferences prefs = context.getSharedPreferences("IAB", Context.MODE_PRIVATE);
|
SharedPreferences prefs = context.getSharedPreferences("IAB", Context.MODE_PRIVATE);
|
||||||
return (prefs.getBoolean(sku, false) || prefs.getBoolean(ActivityPro.SKU_DONATION, false));
|
return (prefs.getBoolean(sku, false) || prefs.getBoolean(ActivityPro.SKU_DONATION, false));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue