OSDN Git Service

Scroll to top when connecting to network.
authorSundeep Ghuman <sghuman@google.com>
Mon, 26 Jun 2017 23:57:27 +0000 (16:57 -0700)
committerSundeep Ghuman <sghuman@google.com>
Mon, 26 Jun 2017 23:57:27 +0000 (16:57 -0700)
Bug: b/34093572
Test: Open wifi picker. Select new network. Picker should scroll to top
of list to display the connected access point category.

Change-Id: Ie555f076a62e8cb589f8c6157d628b345cd84a4c

src/com/android/settings/wifi/WifiSettings.java

index 3cfb17d..0333f63 100644 (file)
@@ -1006,6 +1006,7 @@ public class WifiSettings extends RestrictedSettingsFragment
         mMetricsFeatureProvider.action(getActivity(), MetricsEvent.ACTION_WIFI_CONNECT,
                 isSavedNetwork);
         mWifiManager.connect(config, mConnectListener);
+        scrollToPreference(mConnectedAccessPointPreferenceCategory);
     }
 
     protected void connect(final int networkId, boolean isSavedNetwork) {