Allow disconnecting always-on VPNs
Bug: 28072644 Change-Id: If7595f7e17747867158368d95db5addf97d3a14c
This commit is contained in:
@@ -299,11 +299,6 @@ public class VpnSettings extends RestrictedSettingsFragment implements
|
||||
return true;
|
||||
} else if (preference instanceof AppPreference) {
|
||||
AppPreference pref = (AppPreference) preference;
|
||||
if (pref.isAlwaysOn()) {
|
||||
// User can't disconnect vpn when always-on is enabled
|
||||
return true;
|
||||
}
|
||||
|
||||
boolean connected = (pref.getState() == AppPreference.STATE_CONNECTED);
|
||||
|
||||
if (!connected) {
|
||||
|
Reference in New Issue
Block a user