[Provider Model] Move the Internet unavailable Wi-Fi down
- Check the Wifi network have both INTERNET and VALIDATED capabilities to achieve effective network access - Move the Internet unavailable Wi-Fi down to the top of Wi-Fi list - Don't paint color for the Internet unavailable Wi-Fi - Screenshot: https://screenshot.googleplex.com/w82kbALssdTZmg4 Bug: 178457619 Bug: 178926547 Bug: 178978070 Test: manual test on device atest -c InternetUpdaterTest \ NetworkProviderWorkerTest \ ProviderModelSliceTest Change-Id: Idf04e556ab5a87abc5bc96d1934f5e8fd91fbfaa
This commit is contained in:
@@ -288,9 +288,9 @@ public class NetworkProviderWorker extends WifiScanWorker implements
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true, if the ethernet network is connected.
|
||||
* Returns the internet type.
|
||||
*/
|
||||
public boolean isEthernetConnected() {
|
||||
return mInternetType == INTERNET_ETHERNET;
|
||||
public @InternetUpdater.InternetType int getInternetType() {
|
||||
return mInternetType;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user