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

Commit 143acd35 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

am: 9a91f277

Change-Id: I9d4c738b54ce7487b5a8214c30d6659c41b9418a
parents 69d50752 9a91f277
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);