frameworks/base
修订版 | 84d548336b5408cea52d844cfbfc7983f299c258 (tree) |
---|---|
时间 | 2009-11-12 04:13:12 |
作者 | Yi Sun <beyounn@gmai...> |
Commiter | Yi Sun |
fixed a race condition for wifi hotkey operation
@@ -266,9 +266,9 @@ public class WifiService extends IWifiManager.Stub { | ||
266 | 266 | private void processWifiButton( ) { |
267 | 267 | if (isAirplaneModeOn() != true) { |
268 | 268 | if (getWifiEnabledState() == WIFI_STATE_DISABLED) { |
269 | - setWifiEnabledBlocking(true,false,Process.myUid()); | |
269 | + setWifiEnabled(true); | |
270 | 270 | } else { |
271 | - setWifiEnabledBlocking(false,false,Process.myUid()); | |
271 | + setWifiEnabled(false); | |
272 | 272 | } |
273 | 273 | } |
274 | 274 | } |