mirror of https://github.com/M66B/NetGuard.git
Enable IP filtering for new installations for Android versions before 5.1
This commit is contained in:
parent
495dc5c2a7
commit
c5f1b3ebd3
|
@ -28,6 +28,7 @@ import android.content.SharedPreferences;
|
|||
import android.content.pm.ApplicationInfo;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.net.VpnService;
|
||||
import android.os.Build;
|
||||
import android.os.PowerManager;
|
||||
import android.preference.PreferenceManager;
|
||||
import android.support.v4.app.NotificationCompat;
|
||||
|
@ -226,6 +227,8 @@ public class Receiver extends BroadcastReceiver {
|
|||
} else {
|
||||
editor.putBoolean("whitelist_wifi", false);
|
||||
editor.putBoolean("whitelist_other", false);
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP_MR1)
|
||||
editor.putBoolean("filter", true);
|
||||
}
|
||||
editor.putInt("version", newVersion);
|
||||
editor.apply();
|
||||
|
|
Loading…
Reference in New Issue