avoid repetition of retrying download
authorHideki Hayami <hayami.hideki@sharp.co.jp>
Tue, 14 Feb 2012 05:19:52 +0000 (14:19 +0900)
committerHideki Hayami <hayami.hideki@sharp.co.jp>
Tue, 14 Feb 2012 05:19:52 +0000 (14:19 +0900)
commit579be0d0d0de6af307ee94af07720a568ed2e7d1
tree03c7dff12a88fb2beda4029c9304698d6e5e4d66
parent13a089576461d61a49e6770c41faa9afcdcc8816
avoid repetition of retrying download

If isReadyToStart returns 'true' for STATUS_INSUFFICIENT_SPACE_ERROR,
DownloadProvider retries downloading after it gets requests from
browser to download contents.  The retrying loop won't stop until
its completion (recovering from space error), or user stops
downloading.  This retry loop impacts to network traffic, battery
consumption and packet charge.  So, change this method to return
'false' for the error in order to stop the loop.

Change-Id: Ia3466db60d86c5900842c7c28d294898ae3ff2bc
src/com/android/providers/downloads/DownloadInfo.java