OSDN Git Service

Check for WiFi controller for summary population.
authorBen Lin <linben@google.com>
Fri, 20 Jul 2018 19:36:42 +0000 (12:36 -0700)
committerBen Lin <linben@google.com>
Wed, 25 Jul 2018 21:14:11 +0000 (14:14 -0700)
commit96dc235f6e2ce102de0d4e6adb2dafb83a1699d9
treecfb969cfe947a5cc3326797d7a2d994bd72879b9
parentc879386e5adbd155c56d5e5531b10ba7296f61dd
Check for WiFi controller for summary population.

WiFiController might return not available, so we should only surface
"Wi-Fi" as a summary entry if it's available in the settings page.

This also checks for empty strings in case they are declared as such in
the XML (since XML can be device/product overlay'd), to avoid situations
such as ", data usage".

Bug: 111398942
Test: Manual check, and I see Wi-Fi no longer visible for cases where
Wifi controller isn't available.
Test: make RunSettingsRoboTests
Change-Id: I24736a6240c50e2ea38ce424fbac2316721290d8
src/com/android/settings/network/NetworkDashboardFragment.java
tests/robotests/src/com/android/settings/network/NetworkDashboardFragmentTest.java