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

Commit 8be8e626 authored by Robin Lee's avatar Robin Lee
Browse files

Make Vpn.isAvailable return available, not unavailable

Also removed the check about secondary users. We already disable
adding a legacy VPN for secondary users inside the Settings page
itself.

We do not want to stop our users from configuring/disabling third
party VPNs, that's completely supported.

Bug: 23693383
Fix: 32308780
Test: manual, needs robotest
Change-Id: I99ab14b6b26582bdd7fc491c4b2542f3e653f3dc
parent 80d1ec7d
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -59,8 +59,7 @@ public class VpnPreferenceController extends PreferenceController {

    @Override
    public boolean isAvailable() {
        // TODO: http://b/23693383
        return mIsSecondaryUser || RestrictedLockUtils.hasBaseUserRestriction(mContext,
        return !RestrictedLockUtils.hasBaseUserRestriction(mContext,
                UserManager.DISALLOW_CONFIG_VPN, UserHandle.myUserId());
    }