commit | 78c85943f16098cd526521885ee4fbc3b9e904cd | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Wed Mar 25 22:08:25 2020 -0600 |
committer | Jeff Sharkey <jsharkey@google.com> | Thu Mar 26 14:23:52 2020 +0000 |
tree | 02254e8312214a368b700fa95ed324f46e3b4ab1 | |
parent | 43ef59265044f79ea4d7012860e2956f450572d8 [diff] |
Only decode full-bleed images when supported. When we have a file format that we can't decode with ImageDecoder, fall back to using the thumbnail as a stand-in. This fixes a crash when showing a full-bleed representation of video and audio files. Also optimize full-bleed decoding based on screen size, since we'll never need resolution beyond that. Bug: 147883786 Test: atest --test-mapping packages/providers/MediaProvider Change-Id: I3733a6e7f26d1fa4802bab73d9c4fd804a3f45fb