[Provider Model] Listen for callback to highlight WiFi network
- The Highlighting WiFi network refers to the
WifiEntry#hasInternetAccess() function.
- The WifiEntry#hasInternetAccess() might not be updated immediately
when ConnectivityManager calls back a connected WiFi entry with Internet
capabilities.
- Need to listen the WifiEntry.onUpdated() callback to aware that
WifiEntry#hasInternetAccess() has been updated correctly.
- Also fixed a missing update for the WiFi max count issue
- See b/208701968#comment4 for the result video.
Bug: 208701968
Test: manual test
atest -c InternetAdapterTest \
InternetDialogControllerTest \
InternetDialogTest
Change-Id: I59be23643678c892f37ab8d4c7d2e33cb8c8f5b2
4 files changed