commit | bb3d94a9eee1ec85f81828c0cd8044cd4766652d | [log] [tgz] |
---|---|---|
author | Sahana Rao <sahanas@google.com> | Tue Apr 07 13:15:05 2020 +0100 |
committer | Sahana Rao <sahanas@google.com> | Fri Apr 17 13:28:08 2020 +0100 |
tree | b40516c210ba797ece11f5a539ef075f93622785 | |
parent | f3c21afdbd31a2d94156145e3a699934551e0e63 [diff] |
Use Files uri in Upsert When Fuse inserts a file to database it does not set is_download column. When app tries insert with Download uri, upsert fails because getIdIfPathExistsForCallingPackage can't find a row ID with is_download=1. Use Files uri to ensure upsert updates existing row. Test: atest MediaStore_Images_MediaTest#testUpsert Bug: 149300533 Change-Id: I25435f54828dfc63df496ce59130f79d784f7193