Make scanning decisions based on latest data.
authorJeff Sharkey <jsharkey@android.com>
Sat, 25 Jun 2016 00:13:22 +0000 (18:13 -0600)
committerJeff Sharkey <jsharkey@google.com>
Sat, 25 Jun 2016 00:15:03 +0000 (00:15 +0000)
commit3a4a3e7cd5a379e7e757177826ba935f000eb455
tree93eaef8dbbd0885aac8562c37c3e3c0366375a78
parentb5ca499c7417fc5954b6914d6d52e6e2c02ce7d8
Make scanning decisions based on latest data.

When deciding to kick off a media scan of a newly-downloaded file,
use the latest values from InfoDelta, instead of stale values from
the last database read, which may lead us to skip the scan.

Bug: 29234780
Change-Id: I7ffbcdd1edb9965999b7f5f100f57a9c2933f3a5
src/com/android/providers/downloads/DownloadInfo.java
src/com/android/providers/downloads/DownloadThread.java