Fix the consistency of connection status displayed on Wi-Fi card

- Refresh slice in WifiTracker.onConnectedChanged
- Only expose notifySliceChange to child in SliceBackgroundWorker

Fixes: 123270015
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.wifi.slice
Change-Id: Id5540ebae2746e58e14924665c5e62bf437ebcf0
This commit is contained in:
Jason Chiu
2019-01-23 18:09:45 +08:00
parent 875178bbfa
commit 36b37de9d6
4 changed files with 19 additions and 17 deletions

View File

@@ -139,4 +139,11 @@ public class WifiSliceTest {
verify(mResolver).notifyChange(WIFI_SLICE_URI, null);
}
@Test
public void onConnectedChanged_shouldNotifyChange() {
mWifiScanWorker.onConnectedChanged();
verify(mResolver).notifyChange(WIFI_SLICE_URI, null);
}
}