Remove settings gear icon from connected network in Wi-Fi slice

- remove the gear icon from the active access point
- do not show any icon for the active access point

Fixes: 126458943
Test: robotest
Change-Id: Ibb57c6e1e1840e54266b49e0f092839a9c145187
This commit is contained in:
Jason Chiu
2019-03-07 18:06:12 +08:00
parent b5b61b202b
commit ec5ace3e19

View File

@@ -198,7 +198,7 @@ public class WifiSlice implements CustomSliceable {
private IconCompat getEndIcon(AccessPoint accessPoint) { private IconCompat getEndIcon(AccessPoint accessPoint) {
if (accessPoint.isActive()) { if (accessPoint.isActive()) {
return IconCompat.createWithResource(mContext, R.drawable.ic_settings_accent); return null;
} else if (accessPoint.getSecurity() != AccessPoint.SECURITY_NONE) { } else if (accessPoint.getSecurity() != AccessPoint.SECURITY_NONE) {
return IconCompat.createWithResource(mContext, R.drawable.ic_friction_lock_closed); return IconCompat.createWithResource(mContext, R.drawable.ic_friction_lock_closed);
} else if (accessPoint.isMetered()) { } else if (accessPoint.isMetered()) {