diff options
author | Daichi Hirono <hirono@google.com> | 2016-11-02 14:51:26 +0900 |
---|---|---|
committer | Daichi Hirono <hirono@google.com> | 2016-11-07 10:29:09 +0900 |
commit | 35b2ec551f670562a779925fe152307f20ad67cd (patch) | |
tree | 5c6cc803df17c31ae892ea631313798cbd6bd69c /libs/hwui/ProgramCache.cpp | |
parent | 03c8e3f7714f33d19164b2349051a50900b3060c (diff) |
Not create document under the device.
The structure of files in MtpDocumentsProvider looks like
/device/storage/files. But MtpDocumentsProvider shows files
just under the device if the device has only single storage.
It causes a problem that MtpDocumentsProvider tries to create a file
under the device. Previously it tries to create a file with storageId =
0, which means MTP device choose a storage to store the file.
Because it only happens when the device has a single storage, the file
is properly written to the device. But the database in
MtpDocumentsProvider goes into the illegal state where the file is
placed just under the device.
Bug: 32561572
Test: adb shell am instrument -w -e class com.android.mtp.MtpDocumentsProviderTest com.android.mtp.tests/com.android.mtp.TestResultInstrumentation
Change-Id: I47a373ceee8a64ba9995934317693e79d2497ee0
Diffstat (limited to 'libs/hwui/ProgramCache.cpp')
0 files changed, 0 insertions, 0 deletions