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

Commit 9a91f277 authored by Anarghya Mitra's avatar Anarghya Mitra Committed by android-build-merger
Browse files

Change Quick Settings to account for branded VPNs.

am: 10422896

Change-Id: If9b181b5d4175f9418b4c8b0e4a8938b0bc98811
parents e25d61f1 10422896
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -153,9 +153,14 @@ public class QSSecurityFooter implements OnClickListener, DialogInterface.OnClic
                hasCACerts, hasCACertsInWorkProfile, isNetworkLoggingEnabled, vpnName,
                vpnNameWorkProfile, organizationName, workProfileName);
        // Update the icon
        int footerIconId = vpnName != null || vpnNameWorkProfile != null
                ? R.drawable.ic_qs_vpn
                : R.drawable.ic_info_outline;
        int footerIconId = R.drawable.ic_info_outline;
        if (vpnName != null || vpnNameWorkProfile != null) {
            if (mSecurityController.isVpnBranded()) {
                footerIconId = R.drawable.ic_qs_branded_vpn;
            } else {
                footerIconId = R.drawable.ic_qs_vpn;
            }
        }
        if (mFooterIconId != footerIconId) {
            mFooterIconId = footerIconId;
            mMainHandler.post(mUpdateIcon);