commit | 7bf90408e36613a84dc2a665905fde2c83cfa797 | [log] [tgz] |
---|---|---|
author | Tony Huang <tonyychuang@google.com> | Tue Sep 11 17:09:12 2018 +0800 |
committer | Tony Huang <tonyychuang@google.com> | Wed Sep 12 16:04:15 2018 +0800 |
tree | 9b65fd7b88701880bd88bc837f77875ac7ff3a5f | |
parent | f0bb83bab60b532f6a08d294fdac5eaaa092500c [diff] |
Fix ExternalStorageProvider always throw exception when rename ExternalStorageProvider always throw exception when renameDocument because it will check file exist when getFileForDocId. However, beforeVisibleFile is not exist after rename, it will throw exception. Fix it by put getting beforeVisibleFile before rename. Test: manual test rename in DocumentsUI Test: atest RenameActualProviderUiTest Fix: 113302685 Fix: 115304092 Change-Id: I45d60d2f940e3dbc2b121f7cd28acc3c2d085ec4