summaryrefslogtreecommitdiffstats
path: root/packages/SettingsLib
diff options
context:
space:
mode:
authorJason Monk <jmonk@google.com>2015-05-12 14:20:25 -0400
committerJason Monk <jmonk@google.com>2015-05-12 14:20:25 -0400
commita42ee81368f4ce469db5a787f0f3a3edd15d9931 (patch)
tree2dea208925139fce190ff282b72768374ab864cf /packages/SettingsLib
parentbb9d9278aa6fe3ba3d4c21b03d3e3da4543a974c (diff)
downloadframeworks_base-a42ee81368f4ce469db5a787f0f3a3edd15d9931.zip
frameworks_base-a42ee81368f4ce469db5a787f0f3a3edd15d9931.tar.gz
frameworks_base-a42ee81368f4ce469db5a787f0f3a3edd15d9931.tar.bz2
Fix crash in setup wizard
Clear out any unhandled worker messages before stopping tracking. Bug: 21048197 Change-Id: I3792215a1e7799bdb93587cd7158c4d5d86de348
Diffstat (limited to 'packages/SettingsLib')
-rw-r--r--packages/SettingsLib/src/com/android/settingslib/wifi/WifiTracker.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/SettingsLib/src/com/android/settingslib/wifi/WifiTracker.java b/packages/SettingsLib/src/com/android/settingslib/wifi/WifiTracker.java
index 28fa8fb..c4e3bd6 100644
--- a/packages/SettingsLib/src/com/android/settingslib/wifi/WifiTracker.java
+++ b/packages/SettingsLib/src/com/android/settingslib/wifi/WifiTracker.java
@@ -189,6 +189,8 @@ public class WifiTracker {
*/
public void stopTracking() {
if (mRegistered) {
+ mWorkHandler.removeMessages(WorkHandler.MSG_UPDATE_ACCESS_POINTS);
+ mWorkHandler.removeMessages(WorkHandler.MSG_UPDATE_NETWORK_INFO);
mContext.unregisterReceiver(mReceiver);
mRegistered = false;
}