From 2783dd19f19bcbb523fa15e2d8154174f0978479 Mon Sep 17 00:00:00 2001 From: Andrey Epin Date: Thu, 13 Apr 2023 18:45:10 -0700 Subject: Constraint image preivew width by Chooser width Limit preivew aspect ratio so they are never wider than Sharesheet. Bug: 277629860 Test: manual testing Test: integration test Change-Id: I501ffae9287eb524b466d6f654d4d604f97e1883 --- java/res/layout/chooser_grid_preview_image.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'java/res') diff --git a/java/res/layout/chooser_grid_preview_image.xml b/java/res/layout/chooser_grid_preview_image.xml index 68b07846..b87cecda 100644 --- a/java/res/layout/chooser_grid_preview_image.xml +++ b/java/res/layout/chooser_grid_preview_image.xml @@ -43,8 +43,7 @@ android:layout_gravity="center_horizontal" android:background="?android:attr/colorBackground" app:itemInnerSpacing="3dp" - app:itemOuterSpacing="@dimen/chooser_edge_margin_normal_half" - app:maxWidthHint="@dimen/chooser_width" /> + app:itemOuterSpacing="@dimen/chooser_edge_margin_normal_half" />