From ec5ace3e19373befe7f6f5b49edceab30ff8a9f5 Mon Sep 17 00:00:00 2001 From: Jason Chiu Date: Thu, 7 Mar 2019 18:06:12 +0800 Subject: [PATCH] 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 --- src/com/android/settings/wifi/slice/WifiSlice.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/settings/wifi/slice/WifiSlice.java b/src/com/android/settings/wifi/slice/WifiSlice.java index 8d20f7f847b..a2debb8873f 100644 --- a/src/com/android/settings/wifi/slice/WifiSlice.java +++ b/src/com/android/settings/wifi/slice/WifiSlice.java @@ -198,7 +198,7 @@ public class WifiSlice implements CustomSliceable { private IconCompat getEndIcon(AccessPoint accessPoint) { if (accessPoint.isActive()) { - return IconCompat.createWithResource(mContext, R.drawable.ic_settings_accent); + return null; } else if (accessPoint.getSecurity() != AccessPoint.SECURITY_NONE) { return IconCompat.createWithResource(mContext, R.drawable.ic_friction_lock_closed); } else if (accessPoint.isMetered()) {