Change Quick Settings to account for branded VPNs.
Screenshots: https://photos.app.goo.gl/FrnK69TXR86npFmY2 Test: runtest --path frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs Bug: 109837832 Change-Id: Ie447e6598ff593ff5d14ec8787db82ba39c9ea54
This commit is contained in:
@@ -153,9 +153,14 @@ public class QSSecurityFooter implements OnClickListener, DialogInterface.OnClic
|
|||||||
hasCACerts, hasCACertsInWorkProfile, isNetworkLoggingEnabled, vpnName,
|
hasCACerts, hasCACertsInWorkProfile, isNetworkLoggingEnabled, vpnName,
|
||||||
vpnNameWorkProfile, organizationName, workProfileName);
|
vpnNameWorkProfile, organizationName, workProfileName);
|
||||||
// Update the icon
|
// Update the icon
|
||||||
int footerIconId = vpnName != null || vpnNameWorkProfile != null
|
int footerIconId = R.drawable.ic_info_outline;
|
||||||
? R.drawable.ic_qs_vpn
|
if (vpnName != null || vpnNameWorkProfile != null) {
|
||||||
: R.drawable.ic_info_outline;
|
if (mSecurityController.isVpnBranded()) {
|
||||||
|
footerIconId = R.drawable.ic_qs_branded_vpn;
|
||||||
|
} else {
|
||||||
|
footerIconId = R.drawable.ic_qs_vpn;
|
||||||
|
}
|
||||||
|
}
|
||||||
if (mFooterIconId != footerIconId) {
|
if (mFooterIconId != footerIconId) {
|
||||||
mFooterIconId = footerIconId;
|
mFooterIconId = footerIconId;
|
||||||
mMainHandler.post(mUpdateIcon);
|
mMainHandler.post(mUpdateIcon);
|
||||||
|
|||||||
Reference in New Issue
Block a user