summaryrefslogtreecommitdiff
path: root/java/res
diff options
context:
space:
mode:
author Andrey Epin <ayepin@google.com> 2023-04-13 18:45:10 -0700
committer Andrey Epin <ayepin@google.com> 2023-04-17 14:35:44 -0700
commit2783dd19f19bcbb523fa15e2d8154174f0978479 (patch)
tree9252a5b054c08589930e6678297920f17a3d2dfa /java/res
parent5c05904fbda5a7d8b0b3a1d474ab7224adb686ee (diff)
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
Diffstat (limited to 'java/res')
-rw-r--r--java/res/layout/chooser_grid_preview_image.xml3
1 files changed, 1 insertions, 2 deletions
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" />
<TextView
android:id="@androidprv:id/content_preview_text"