Re-schedule downloads queued for unmetered.
authorJeff Sharkey <jsharkey@android.com>
Wed, 22 Jun 2016 20:19:22 +0000 (14:19 -0600)
committerJeff Sharkey <jsharkey@android.com>
Wed, 22 Jun 2016 21:42:47 +0000 (15:42 -0600)
commitb5ca499c7417fc5954b6914d6d52e6e2c02ce7d8
treea4d34b5bd595edc068d1f75fe7905607349aa828
parent07c50f1e60407083113bacf7c39b8bda67523b2b
Re-schedule downloads queued for unmetered.

When a download is stopped due to a metered network, we should
reschedule the job just like any other network failure.  If a
download requires an unmetered network, treat WAITING_FOR_NETWORK as
QUEUED_FOR_WIFI so we show a meaningful notification.

Bug: 29440531
Change-Id: I31e6535c575fd32e2982ef840ae501acf1db3927
src/com/android/providers/downloads/DownloadInfo.java
src/com/android/providers/downloads/DownloadThread.java