Commit Graph

4 Commits

Author SHA1 Message Date
Muyuan Li
ab15e923a5 Fixed a bug in DisplayUtils in which the length of entries will be added
twice, causing IndexOutOfBound exception at runtime when using custom
DPI

Change-Id: Ib106f0ee8044893e2c1f3b4f334b741194171e2a
(cherry picked from commit d4ed8400ff7bc60e1391f4ea248390342a9f90dd)
2016-02-25 18:01:13 +00:00
Alan Viverette
94ecc81376 Change Display size option "normal" to "default"
Bug: 27274227
Change-Id: I83b949cabaf333aa45cfef1beaa986d66067fa53
2016-02-23 13:17:16 -05:00
Alan Viverette
656143240c Round display scaling densities down to the nearest 2 DPI
This will prevent scaling artifacts due to odd densities. We will not
make any adjustments to the "normal" density, which will preserve
tvdpi or whatever the device manufacturer needed to use.

Rounding the density down is always safe, since it will not push us
below our 320dp lower bound on minimum effective screen dimension.

Bug: 27225670
Change-Id: Ib084bb3d4fc70a59106ac74df5394c21e9f8c7bd
2016-02-18 15:56:25 -05:00
Alan Viverette
01a04f132b Implement Settings UI for Screen zoom preference
Also cleans up unnecessary 0s and moves tint to the proper place in
relevant vector drawable XML files.

Preview layout is still WIP pending UX input, but I wanted to get this
CL in place so that we can test/demo the feature ASAP.

Bug: 22450672
Change-Id: Ic3f1500006c763df99fba2d1d16782b89d6fcae1
2015-12-10 14:07:51 -05:00