1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2025-01-03 13:54:09 +00:00

Cleanup settings

This commit is contained in:
M66B 2016-07-23 17:53:25 +02:00
parent 0d254bf43a
commit cfb0a9987a

View file

@ -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();
}