summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorAdam Lesinski <adamlesinski@google.com>2016-07-19 13:35:01 -0700
committerAdam Lesinski <adamlesinski@google.com>2016-07-20 20:15:26 +0000
commitbad43fcae487a19865c174483c11829379817c8a (patch)
treec825121fc03d81dffee5cb5f16deb912ef977814 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent4b3a0e2385d828902b84d73b4969ecff8d36c176 (diff)
Fix undefined fontScale issue in Configuration
When using a Configuration object as a delta for use as an update to an existing Configuration object, the fontScale property is always defaulted to 1.0, which is not considered "undefined". That means that fontScale will always get overridden to 1.0. This changes the undefined value of fontScale to 0.0, which is set when the Configuration object is constructed. Thankfully, the documentation for Configuration states that until Configuration#setToDefaults() is called, the Configuration is in an invalid state. That means that apps can not rely on fontScale == 1.0 without calling setToDefaults(). Bug:29924927 Change-Id: I19342c55f7057423f1ca8c5d8dce1dff07617d90
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions