OSDN Git Service

Fixed size of autofill service icon on Save affordance.
authorFelipe Leme <felipeal@google.com>
Fri, 15 Sep 2017 19:56:55 +0000 (12:56 -0700)
committerFelipe Leme <felipeal@google.com>
Fri, 15 Sep 2017 22:56:14 +0000 (15:56 -0700)
Test: manual verification
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases

Bug: 65739885

Change-Id: Ic9efd7bbb853c28b2d869a609d21eff4e6ef6d2d

core/res/res/layout/autofill_save.xml
core/res/res/values/dimens.xml

index 63675ab..92419c8 100644 (file)
@@ -47,7 +47,7 @@
                 <ImageView
                     android:id="@+id/autofill_save_icon"
                     android:layout_width="wrap_content"
-                    android:layout_height="wrap_content"/>
+                    android:layout_height="24sp"/>
 
                 <TextView
                     android:id="@+id/autofill_save_title"
index 9be00f7..16c8578 100644 (file)
     <!-- Max height of the the autofill save custom subtitle as a fraction of the screen width/height -->
     <dimen name="autofill_save_custom_subtitle_max_height">20%</dimen>
 
-    <!-- Max (absolute) dimensions (both width and height) of autofill service icon on autofill save affordance -->
-    <dimen name="autofill_save_icon_max_size">100dp</dimen>
+    <!-- Max (absolute) dimensions (both width and height) of autofill service icon on autofill save affordance.
+      NOTE: the actual displayed size might is actually smaller than this and is hardcoded in the
+      autofill_save.xml layout; this dimension is just used to avoid a crash in the UI (if the icon provided
+      by the autofill service metadata is bigger than these dimentionsit will not be displayed).
+    -->
+    <dimen name="autofill_save_icon_max_size">300dp</dimen>
 
 </resources>