OSDN Git Service

Refine resolution order for typeface and fontFamily
authorRaph Levien <raph@google.com>
Thu, 29 Jan 2015 20:49:19 +0000 (12:49 -0800)
committerRaph Levien <raph@google.com>
Thu, 29 Jan 2015 20:49:19 +0000 (12:49 -0800)
commit42b3024efdec647266c1ae54a2a7c2c46915b380
tree1c7ad580c407c5a11ca5496d3fb5251b2a49e440
parent1a5ac5b415fea8098686aa08bffc6da3ada31938
Refine resolution order for typeface and fontFamily

Previously any fontFamily value on a TextView would override a typeface
value, even if the fontFamily is from a TextAppearance (for example,
from the theme) and the typeface is explicitly set. This patch changes
the resolution order to fontFamily set directly on the TextView,
typeface set directly on the TextView, fontFamily from TextAppearance,
typeface from TextAppearance.

Bug: 16154223
Change-Id: I45c1e511fba8f64eb236200e3fa2e885c02b59dc
core/java/android/widget/TextView.java