From f53c4ca8ae807ae165a98706d7bb253a9eb38ac8 Mon Sep 17 00:00:00 2001 From: Weng Su Date: Mon, 12 Apr 2021 11:22:48 +0800 Subject: [PATCH] [Provider Model] Remove "Advanced" from Wi-Fi hotspot settings - Screenshot: https://screenshot.googleplex.com/B4vjvGdcQUL8YCR Bug: 184907962 Test: manual test make RunSettingsRoboTests ROBOTEST_FILTER=WifiTetherSettingsTest Change-Id: I934061c9129e77fc37381d1eba4a8107d40131eb --- .../android/settings/wifi/tether/WifiTetherSettings.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/com/android/settings/wifi/tether/WifiTetherSettings.java b/src/com/android/settings/wifi/tether/WifiTetherSettings.java index e34255035e5..088356b904e 100644 --- a/src/com/android/settings/wifi/tether/WifiTetherSettings.java +++ b/src/com/android/settings/wifi/tether/WifiTetherSettings.java @@ -294,13 +294,4 @@ public class WifiTetherSettings extends RestrictedDashboardFragment screen.setInitialExpandedChildrenCount(getInitialExpandedChildCount()); } } - - @Override - public int getInitialExpandedChildCount() { - if (mSecurityPreferenceController != null && mSecurityPreferenceController.getSecurityType() - == SoftApConfiguration.SECURITY_TYPE_OPEN) { - return (EXPANDED_CHILD_COUNT_DEFAULT - 1); - } - return EXPANDED_CHILD_COUNT_DEFAULT; - } }