Enable IP filtering for new installations for Android versions before 5.1

This commit is contained in:
M66B 2016-01-24 14:04:37 +01:00
parent 495dc5c2a7
commit c5f1b3ebd3
1 changed files with 3 additions and 0 deletions

View File

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