]> nv-tegra.nvidia Code Review - android/platform/packages/providers/DownloadProvider.git/commit
Create a handler thread
authorTodd Kennedy <toddke@google.com>
Fri, 19 Jun 2015 21:47:45 +0000 (14:47 -0700)
committerTodd Kennedy <toddke@google.com>
Fri, 19 Jun 2015 21:47:45 +0000 (14:47 -0700)
commitf775c9840f8f9520ab3dc859597cb34624213363
tree49136a74599821b208199365c1ae89b1347480b6
parente3960ea97d5ddee80e5237796d577892e42a28cb
Create a handler thread

The onCreate() method [where we initialize the handler] runs on the
main thread. This means the ParcelFileDescriptor also runs tasks
involving disk access on the main thread. We need to create a
separate thread to run the Content Provider's handler.

Bug: 19718299
Change-Id: Ia3661fafd3442ad6260f04253ba24ddf83b176b2
src/com/android/providers/downloads/DownloadProvider.java