OSDN Git Service

Show correct Wi-Fi status when switching to multi window mode
authorZhihong Li <zhihong.li@sonymobile.com>
Fri, 23 Sep 2016 01:38:42 +0000 (09:38 +0800)
committerTomonori Nanbu <tomonori.nanbu@sonymobile.com>
Thu, 9 Mar 2017 04:25:46 +0000 (13:25 +0900)
commit9d12d101be7ed735b47a5214a98318d17e7a7563
treeaaee10a189cfa4c00e6d91a38e6dfd232fe5bf2a
parent084c20409b94ebbe2465e66d03290d9003c7a8b1
Show correct Wi-Fi status when switching to multi window mode

In WifiSettings, when switching to multi window mode,
WifiSettings fragment is recreated and "onPause()" is called,
then WifiTracker stops and wrong Wi-Fi status is shown.

Move "WifiTracker.startTracking()" to "onStart()",
 "WifiTracker.stopTracking()" to "onStop()"
to make sure to show correct Wi-Fi status.

Bug: 36078677
Test: Manual test OK

Change-Id: I215f180b1082f6039c03de8b4a3ca27d1f364c75
src/com/android/settings/wifi/WifiSettings.java