summaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
author Andrey Epin <ayepin@google.com> 2022-12-23 15:45:43 -0800
committer Andrey Epin <ayepin@google.com> 2022-12-28 18:50:03 +0000
commitfb2ee59060fc15a659ea859cee3466035f6b4963 (patch)
treef79bf3d12d4ee37afa52049d99d0de1e380299e4 /Android.bp
parent4f282042d84e40a9da7183c2d908e90c83b689ab (diff)
Introduce an image preview view
A preparation step for image preview UI update. A new view, ImagePreviewView, that encapsulates image preview grid UI is created. The view has a generalized interface for image loading: it accepts a list of image URIs and a suspend function that would perform actual image loading. The image loading is still delegated to ChooserContentPreviewCoordinator class that has the following collateral changes: - all UI logic is moved out of the class either into the new view or into ChooserContentPreviewUI; - mOnSingleImageSuccessCallback is removed and replaced with a separate callback (see description below). ChooserActivity used ChooserContentPreviewCoordinator#mOnSingleImageSuccess as a signal to start lisneting for the shared element transition animation (SETA) target readiness. With all image preview UI logic now being encapsulated in the new ImagePreviewView view, the new view triggers a SETA target readiness callback instead, if configured. As ChooserActivity explicitely resumes SETA for a non-image preview, ChooserContentPreviewCoordinator always triggers image callback and the new view always notify about SETA target readiness, we should be fine with remplacing the after-image-loaded callback. Flag: IntentResolver package entirely behind the CHOOSER_UNBUNDLED which is in teamfood Bug: 262280076 Test: manual tests for all previe types, multi- and single profile and SETA (share a shcreenshot) tests. Test: delay image loading and test that in all cases SETA is not get stuck. Test: atest IntentResolverUnitTests Change-Id: I081ab98c2bcb24cd2ad96b508ab559d7775aeaf4
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 521d5626..31d7d6d0 100644
--- a/Android.bp
+++ b/Android.bp
@@ -51,6 +51,12 @@ android_library {
"androidx.viewpager_viewpager",
"androidx.lifecycle_lifecycle-common-java8",
"androidx.lifecycle_lifecycle-extensions",
+ "androidx.lifecycle_lifecycle-runtime-ktx",
+ "androidx.lifecycle_lifecycle-viewmodel-ktx",
+ "kotlin-stdlib",
+ "kotlinx_coroutines",
+ "kotlinx-coroutines-android",
+ "//external/kotlinc:kotlin-annotations",
"guava",
],