Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4ee56ab9 authored by Jeremy Goldman's avatar Jeremy Goldman Committed by Android (Google) Code Review
Browse files

Merge "Maintain VPN type form the VpnProfile" into sc-dev

parents 22167651 88ee31e2
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -304,7 +304,9 @@ public class VpnSettings extends RestrictedSettingsFragment implements
                LegacyVpnPreference p = mSettings.findOrCreatePreference(stubProfile, false);
                p.setState(vpn.state);
                p.setAlwaysOn(lockdownVpnKey != null && lockdownVpnKey.equals(vpn.key));
                p.setInsecureVpn(VpnProfile.isLegacyType(stubProfile.type));
                // (b/184921649) do not call setInsecureVpn() for connectedLegacyVpns, since the
                // LegacyVpnInfo does not contain VPN type information, and the profile already
                // exists within vpnProfiles.
                updates.add(p);
            }