mirror of https://github.com/M66B/NetGuard.git
Make sure Play store users have NetGuard allowed
This commit is contained in:
parent
fb48c1b5c4
commit
c173c4a370
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue