Draw currently connected network in Picker.
Make sure to call refresh when adding the Access Point Preference to the WifiPicker's Connected Access Point Category. This will case the icon and the title to be drawn. Bug: 35388267 Test: None. Too difficult without robolectric testing which requires refactor. Change-Id: I7949733f8ca7f904327872df54f6963c723bc704
This commit is contained in:
@@ -194,7 +194,6 @@ public class WifiSettings extends RestrictedSettingsFragment
|
||||
|
||||
mConnectedAccessPointPreferenceCategory =
|
||||
(PreferenceCategory) findPreference(PREF_KEY_CONNECTED_ACCESS_POINTS);
|
||||
mConnectedAccessPointPreferenceCategory.setVisible(false); // initially hidden
|
||||
|
||||
mAccessPointsPreferenceCategory =
|
||||
(PreferenceCategory) findPreference(PREF_KEY_ACCESS_POINTS);
|
||||
@@ -799,6 +798,7 @@ public class WifiSettings extends RestrictedSettingsFragment
|
||||
if (pref == null) {
|
||||
pref = createLongPressActionPointPreference(connectedAp);
|
||||
}
|
||||
pref.refresh();
|
||||
mConnectedAccessPointPreferenceCategory.addPreference(pref);
|
||||
mConnectedAccessPointPreferenceCategory.setVisible(true);
|
||||
}
|
||||
|
Reference in New Issue
Block a user