1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2024-12-27 18:30:09 +00:00

Fixed filtering enabled by default on Android 5.1

Closes #338
This commit is contained in:
M66B 2016-02-20 16:32:50 +01:00
parent a07677b0a2
commit da25a91e61

View file

@ -224,7 +224,7 @@ public class Receiver extends BroadcastReceiver {
Log.i(TAG, "Initializing sdk=" + Build.VERSION.SDK_INT); Log.i(TAG, "Initializing sdk=" + Build.VERSION.SDK_INT);
editor.putBoolean("whitelist_wifi", false); editor.putBoolean("whitelist_wifi", false);
editor.putBoolean("whitelist_other", false); editor.putBoolean("whitelist_other", false);
if (Build.VERSION.SDK_INT == Build.VERSION_CODES.LOLLIPOP_MR1) { if (Build.VERSION.SDK_INT == Build.VERSION_CODES.LOLLIPOP) {
editor.putBoolean("filter", true); // Optional editor.putBoolean("filter", true); // Optional
editor.putBoolean("filter_allowed", true); // Optional editor.putBoolean("filter_allowed", true); // Optional
} }