From 6ceab7b91674137109bd78225bd0219c9f2bba83 Mon Sep 17 00:00:00 2001 From: changbetty Date: Thu, 21 Oct 2021 05:51:20 +0000 Subject: [PATCH] Remove the Advanced item when Security type is open Bug: 202674761 Test: Manual test Test: make RunSettingsRoboTests ROBOTEST_FILTER=WifiTetherSettingsTest Change-Id: Iaac76a5a1370d5f9fcea2e1aaa0f02310ed4a5a3 --- .../settings/wifi/tether/WifiTetherSettings.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/com/android/settings/wifi/tether/WifiTetherSettings.java b/src/com/android/settings/wifi/tether/WifiTetherSettings.java index 088356b904e..23601fac5d8 100644 --- a/src/com/android/settings/wifi/tether/WifiTetherSettings.java +++ b/src/com/android/settings/wifi/tether/WifiTetherSettings.java @@ -54,7 +54,6 @@ public class WifiTetherSettings extends RestrictedDashboardFragment private static final String TAG = "WifiTetherSettings"; private static final IntentFilter TETHER_STATE_CHANGE_FILTER; private static final String KEY_WIFI_TETHER_SCREEN = "wifi_tether_settings_screen"; - private static final int EXPANDED_CHILD_COUNT_DEFAULT = 3; @VisibleForTesting static final String KEY_WIFI_TETHER_NETWORK_NAME = "wifi_tether_network_name"; @@ -204,10 +203,6 @@ public class WifiTetherSettings extends RestrictedDashboardFragment mSwitchBarController.stopTether(); } mWifiManager.setSoftApConfiguration(config); - - if (context instanceof WifiTetherSecurityPreferenceController) { - reConfigInitialExpandedChildCount(); - } } private SoftApConfiguration buildNewConfig() { @@ -287,11 +282,4 @@ public class WifiTetherSettings extends RestrictedDashboardFragment } } } - - private void reConfigInitialExpandedChildCount() { - final PreferenceGroup screen = getPreferenceScreen(); - if (screen != null) { - screen.setInitialExpandedChildrenCount(getInitialExpandedChildCount()); - } - } }