commit | 76be46f4d9314fd7daca0985a0a7e02126d85975 | [log] [tgz] |
---|---|---|
author | Daichi Hirono <hirono@google.com> | Fri Apr 08 09:48:02 2016 +0900 |
committer | Daichi Hirono <hirono@google.com> | Mon Apr 11 14:32:03 2016 +0900 |
tree | b3228c65ebc11dbf03924e62c3acea52b1f6d0f6 | |
parent | 75aee0a681a763b8de67cb078ca3e520f65c8efe [diff] |
Fix crash when deleting multiple files. When deleting files, MtpDocumentsProvider clears LoadingTask in DocumentsLoader to update directory contents list. Previously it can clear ongoing task, and it skips calling Mapper#stopAddingDocuments. Since Mapper#startAddingDocuments and Mapper#stopAddingDocuments must be called 1 to 1, it causes precondition check failure at the next call of Mapper#startAddingDocuments. Change-Id: I23e2b117da826297e45404be4db4cc29f96e5510 Fix: 28076320