OSDN Git Service

Fix issue with fontScale changes not taking effect
authorAdam Lesinski <adamlesinski@google.com>
Tue, 18 Apr 2017 21:42:22 +0000 (14:42 -0700)
committerAdam Lesinski <adamlesinski@google.com>
Tue, 18 Apr 2017 23:58:18 +0000 (16:58 -0700)
commitec05bc0fda9e10fe16cb98c5d3a4de37773ad5f8
treee678049811a0e60d949b251c8750723540d59741
parent1e28c8fa337388060dc7f69a835852cab324724d
Fix issue with fontScale changes not taking effect

If a configuration change occurs, and an underlying ResourcesImpl is
swapped out under a Resources object, the DisplayMetrics cached by
TypedArray will be stale and not up-to-date.

Bug: 34120637
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerConfigChangeTests
Change-Id: Id78a6d259250950387c2e95c4a2292fdd095c7af
core/java/android/content/res/TypedArray.java