mirror of
https://github.com/M66B/NetGuard.git
synced 2025-01-03 13:54:09 +00:00
Cleanup settings
This commit is contained in:
parent
0d254bf43a
commit
cfb0a9987a
1 changed files with 10 additions and 0 deletions
|
@ -239,6 +239,16 @@ public class Receiver extends BroadcastReceiver {
|
|||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP)
|
||||
editor.putBoolean("filter", true); // Mandatory
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N)
|
||||
editor.remove("show_top");
|
||||
|
||||
if (Util.isPlayStoreInstall(context)) {
|
||||
editor.remove("update_check");
|
||||
editor.remove("use_hosts");
|
||||
editor.remove("hosts_url");
|
||||
editor.remove("loglevel");
|
||||
}
|
||||
|
||||
editor.putInt("version", newVersion);
|
||||
editor.apply();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue