Enable pro features and development settings in beta versions

This commit is contained in:
M66B 2016-01-23 16:54:19 +01:00
parent 8d6682515e
commit 0026057861
2 changed files with 3 additions and 1 deletions

View File

@ -235,7 +235,7 @@ public class ActivitySettings extends AppCompatActivity implements SharedPrefere
options.removePreference(screen.findPreference("national_roaming"));
}
if (!Util.isDebuggable(this))
if (!Util.getSelfVersionName(this).endsWith("beta"))
screen.removePreference(screen.findPreference("category_development"));
}

View File

@ -168,6 +168,8 @@ public class IAB implements ServiceConnection {
}
public static boolean isPurchased(String sku, Context context) {
if (Util.getSelfVersionName(context).endsWith("beta"))
return true;
SharedPreferences prefs = context.getSharedPreferences("IAB", Context.MODE_PRIVATE);
return (prefs.getBoolean(sku, false) || prefs.getBoolean(ActivityPro.SKU_DONATION, false));
}