Move away from deprecated NetworkInfo extra.
authorJeff Sharkey <jsharkey@android.com>
Mon, 30 Jan 2012 19:16:44 +0000 (11:16 -0800)
committerJeff Sharkey <jsharkey@android.com>
Mon, 30 Jan 2012 19:17:58 +0000 (11:17 -0800)
commit515cf53eb94b8873aa6a1edcd6a962f0b0ca2170
tree751c077a87222ba6dad9de096e8d10d76653b686
parentb1a4b7d41bcc5c89e1123ff0b031efe45512519f
Move away from deprecated NetworkInfo extra.

Because the NetworkInfo included in CONNECTIVITY_ACTION broadcast
extra does not reflect the state applicable to the calling UID, and
the last sticky broadcast may have stale state, transition to calling
ConnectivityManager.getActiveNetworkInfo() directly.

Change-Id: Ie7a143e621e5a3a013ec6d8b8613709e7787dc0c
src/com/android/providers/downloads/DownloadReceiver.java