commit | 5799f2bcbabe927ed91e3df4f71e54f8cb1f770c | [log] [tgz] |
---|---|---|
author | Zheng Fu <zhengfu@google.com> | Tue Sep 16 14:38:01 2014 -0700 |
committer | Zheng Fu <zhengfu@google.com> | Mon Sep 29 16:51:36 2014 +0000 |
tree | 12c3c5d1603989b11488e295f4eaeaf429d8a32d | |
parent | 3c8d7fd963946bdf80d5e9a121bd8ea65862b870 [diff] |
DO NOT MERGE synchronize photo storage creation for race conditions. Several exceptions were reported regarding "Unable to create photo storage directory /data/user/0/com.android.providers.contacts/files/photos". It might caused by the fact that File.makeDirs() is not thread safe. So make it syncrhonized to resolve this issue. Bug:17505392 Bug:17449819 Change-Id: I494204424c024c2166340af609423a669e741761 (cherry picked from commit 240d10d677b4acfeda5aa6e66c2cdea9ae02769b)