Ensure that downloads stop quickly.
authorJeff Sharkey <jsharkey@android.com>
Mon, 27 Oct 2014 23:29:56 +0000 (16:29 -0700)
committerJeff Sharkey <jsharkey@android.com>
Mon, 27 Oct 2014 23:29:59 +0000 (16:29 -0700)
commitda9d77a478a2ab33ad81066012cab73b7c9dee3f
treefafa5a0bdc6b81161d744767e729066d04206556
parentd9492e1781af07a0a5d7a8135118bf75febab6e4
Ensure that downloads stop quickly.

In some cases the provider may have marked a download as deleted,
but the content change notification may lag several seconds.  To stop
as soon as possible, assert that we're not deleted when writing
our progress updates.

Bug: 16405936
Change-Id: I994b746056d0427c626355e0815234ff5b73198c
src/com/android/providers/downloads/DownloadThread.java