commit | 9204994e4b258669b0d4ec9c8c8ca14a92567725 | [log] [tgz] |
---|---|---|
author | Ivan Chiang <chiangi@google.com> | Tue Sep 08 11:36:03 2020 +0800 |
committer | Nandana Dutt <nandana@google.com> | Thu Sep 10 10:54:15 2020 +0000 |
tree | b5e00e8abd63f8b33f34099f5e1f188dff6294c5 | |
parent | fab3d57a47aacdf8f48f7b03c7efa667e5acccb0 [diff] |
Exclude pending items in reconcileAndClean in ModernMediaScanner If ModernMediaScanner deletes the pending rows which are inserted between invoking ContentResolver#insert() and ContentResolver#openFileDescriptor(), it may raise FileNotFoundException. Bug: 166063754 Test: manual with test app Test: atest -c ModernMediaScannerTest Change-Id: I9567693375f6ea551917f2d1b204580c245d8a65 (cherry picked from commit 8f9474a4fd43ad1e6d171b59a0cf09a9f60f181b)