OSDN Git Service

Add missing values for screen percent width dimens
authorTodd Lee <leetodd@google.com>
Wed, 3 May 2017 23:22:42 +0000 (16:22 -0700)
committerTodd Lee <leetodd@google.com>
Fri, 9 Jun 2017 19:17:28 +0000 (19:17 +0000)
Protects against bootlooping in the event that developer
inadvertently changes DPI to unsupported value for device.

Use 0dp as it will not be mistaken for anything other
than a broken experience (cts test to validate device DPIs
so as to avoid shipping with this).

bug: b/37755288
Change-Id: Ie9f4aa0d6d226383824e06d28151e06038d0110b

core/res/res/values-watch/dimens_material.xml

index 3c4904c..82c088b 100644 (file)
     <dimen name="progress_bar_size_small">16dip</dimen>
     <dimen name="progress_bar_size_medium">32dip</dimen>
     <dimen name="progress_bar_size_large">64dip</dimen>
-</resources>
+
+    <!-- fallback for screen percentage widths -->
+    <dimen name="screen_percentage_05">0dp</dimen>
+    <dimen name="screen_percentage_10">0dp</dimen>
+    <dimen name="screen_percentage_12">0dp</dimen>
+    <dimen name="screen_percentage_15">0dp</dimen>
+  </resources>