Make sure Play store users have NetGuard allowed

This commit is contained in:
M66B 2016-07-17 17:37:30 +02:00
parent fb48c1b5c4
commit c173c4a370
1 changed files with 5 additions and 0 deletions

View File

@ -239,6 +239,11 @@ public class Receiver extends BroadcastReceiver {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP)
editor.putBoolean("filter", true); // Mandatory
if (Util.isPlayStoreInstall(context)) {
SharedPreferences apply = context.getSharedPreferences("apply", Context.MODE_PRIVATE);
apply.edit().putBoolean(context.getPackageName(), false).apply();
}
editor.putInt("version", newVersion);
editor.apply();
}