summaryrefslogtreecommitdiff
path: root/java/src-release/com
diff options
context:
space:
mode:
author Andrey Epin <ayepin@google.com> 2023-03-13 16:39:23 -0700
committer Andrey Epin <ayepin@google.com> 2023-03-14 16:07:49 -0700
commit4649ef1769d53727d59423f184cb3ee068ce40db (patch)
tree07420a85e880c372e0341f38deb89df9d0be0c20 /java/src-release/com
parente7f8555d956c8bf5f338a182d8023b2740edc389 (diff)
Add unified preview UI
ChooserContentPreviewUi applies various heuristic to determine if each shared URI has a preview and, if any, displays a scrollable preview list. Each preview item in the list is badge accroding ot its type: no badge for images, a video-file badge for videos and a generic-file badge for all others. All URIs without a previwe are groupped under a single item at list end (+N files). Collateral changes: * FileContentPreviewUi$FileInfo is moved into the package level; * ChooserContentPreviewUi$ImageMimeTypeClassifier internface is moved into the package level, renamted to MimeTypeClassifier and defines a new method, isVideoType(); * ScrollableImagePreviewView is modified to support badges and the "+N" item; * A new class, UnfifiedContentPreviewUi is clonned from ImageContentPreviewUi class, and is reponsible for drawing the new unified preview ui, ImageContentPreviewUi is used only with the legacy image content preview. Bug: 271613784 Test: manual testing Change-Id: Ia25f5a1565226ac679cc8ecefd58acb95cb60142
Diffstat (limited to 'java/src-release/com')
0 files changed, 0 insertions, 0 deletions