OSDN Git Service

Round display scaling densities down to the nearest 2 DPI
authorAlan Viverette <alanv@google.com>
Thu, 18 Feb 2016 20:56:25 +0000 (15:56 -0500)
committerAlan Viverette <alanv@google.com>
Thu, 18 Feb 2016 20:56:25 +0000 (15:56 -0500)
commit656143240c1e003cd39141c98548e7f0c625cc14
tree47dece217004d11b8879e79cf6c41c1db5de5d70
parentadcec744b2699a54db5606e9a50a08c6fb243a0e
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
src/com/android/settings/display/DisplayDensityUtils.java