OSDN Git Service

Fix tethering summary when airplane mode is off
authorLei Yu <jackqdyulei@google.com>
Thu, 17 May 2018 19:32:02 +0000 (12:32 -0700)
committerLei Yu <jackqdyulei@google.com>
Thu, 17 May 2018 21:38:22 +0000 (14:38 -0700)
commit4fec12cbbf290f0cf24060379ef134745ee19901
tree2bc994681d0b2258d7b6f2399bef4416609b8ed4
parentcd28a977ca3a32b390e3e0313482a41df93fb412
Fix tethering summary when airplane mode is off

When airplane mode is off, fall back to default summary
(tether off summary). It should be fine because once tether
state get updated again, it will go through original listener
to update the summary.

Change-Id: Iba9b56f452e72365ea964d841ee156a2625c0ae1
Fixes: 79721162
Test: RunSettingsRoboTests
src/com/android/settings/wifi/tether/WifiTetherPreferenceController.java
tests/robotests/src/com/android/settings/wifi/tether/WifiTetherPreferenceControllerTest.java