OSDN Git Service

Prevent brief flash of "Error" in hotspot status text
authorAntony Sargent <asargent@google.com>
Mon, 11 Sep 2017 23:43:58 +0000 (16:43 -0700)
committerAntony Sargent <asargent@google.com>
Mon, 11 Sep 2017 23:50:10 +0000 (16:50 -0700)
commita2559ab1289f28bf111ec8c6921d566a3fd17308
treec6e551a9044e3cf814413b7c620a4ea6bd0dc012
parentadef5b23e03cf1f0091538dd97e7f6f29c51fc0d
Prevent brief flash of "Error" in hotspot status text

When toggling the master preference to turn on wifi hotspot, it briefly
changes the status text to "Error" because we have a catch-all in a
function monitoring wifi state changes for unexpected status codes, and
we weren't expecting to see the status of WIFI_AP_STATE_ENABLING before
the status of WIFI_AP_STATE_ENABLED.

Bug: 64811203
Test: make RunSettingsRoboTests
Change-Id: Ifba7abadbfba9ce93cc524b17232c65570f0f428
src/com/android/settings/wifi/tether/WifiTetherPreferenceController.java
tests/robotests/src/com/android/settings/wifi/tether/WifiTetherPreferenceControllerTest.java