OSDN Git Service

Removing disk access from startActivity thread
authorSuprabh Shukla <suprabh@google.com>
Wed, 20 Apr 2016 22:24:31 +0000 (15:24 -0700)
committerSuprabh Shukla <suprabh@google.com>
Wed, 20 Apr 2016 22:27:42 +0000 (15:27 -0700)
commitdc4b80dde458ab43cc2bc8670864532023ddd6f2
tree1aced8da004a7574f4759b37e55dc493290bce6f
parentdd67b0d52521bb828bc31732fe3ac8b786a19cce
Removing disk access from startActivity thread

Code was checking whether the directory for recent_images existed in
many places unnecessarily causing StrictMode violations. Moved the
code to only attempt to check and create the directory before
actually writing to disk.

Bug: b/28195831
Change-Id: I05f77a10f1dafc8cc0b1836b62352d56549ac1ee
services/core/java/com/android/server/am/TaskPersister.java