OSDN Git Service

Fix wifi disable during restore
authorChristopher Tate <ctate@google.com>
Sat, 8 Aug 2015 02:20:05 +0000 (19:20 -0700)
committerChristopher Tate <ctate@google.com>
Sat, 8 Aug 2015 02:20:05 +0000 (19:20 -0700)
commit45dc0d03fdcc649f56bfd3a67a1334ced1e2789f
treebe64a43d2d289d78a703040a022fc46532c27a79
parent9d92955894118a51e310fdfeeb09f5b1d187c37f
Fix wifi disable during restore

The main looper needs to run freely for a moment after disabling
wifi in order for various signals (content observers, broadcast) to
propagate to all the listeners that need to take action for the
wifi stack to shut all the way down.  This patch breaks up the
disable-and-rewrite-config sequence of wifi AP restore in to two
distinct operations separated by a moment so as not to block those
necessary messages.

Bug 22979342

Change-Id: I271766cad0e454669a194652fb67f835bb022cd1
packages/SettingsProvider/src/com/android/providers/settings/SettingsBackupAgent.java