commit | 430c6e6ebb6dbd9ef3ee500f132a49850a89855d | [log] [tgz] |
---|---|---|
author | Arthur Hung <arthurhung@google.com> | Fri Jun 01 13:42:48 2018 +0800 |
committer | Arthur Hung <arthurhung@google.com> | Thu Jun 07 04:54:37 2018 +0000 |
tree | 3feb59df5b430ed8bfa70c3203c670a1b3de5bbd | |
parent | 35f12ed10a39a8d833798e6e00ed8a290c240d49 [diff] |
Get mime type from getDocumentType instead of from file name DownloadProvider and FileSystemProvide will decide mime type in different way, so if some function like getDocumentMetadata will try to get mime type and do some loading. It may reurn unsupported Bug: 80454526 Test: Download jpg file, remove .jpg extension, get info Change-Id: Ia8d237181eba51005981ba46a1be3a43af0f249c