diff options
author | Christopher Tate <ctate@google.com> | 2020-07-14 12:23:21 -0700 |
---|---|---|
committer | Chris Tate <ctate@android.com> | 2020-07-15 16:35:30 +0000 |
commit | 7652ae9080b8cdb3c619982465228778fbc45736 (patch) | |
tree | 2814413c8dd04d434dda57d5b85381b97a92ed1c /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 4c17f946a34c346da29715b65c26c091c6301dc9 (diff) |
Don't clone the locale redundantly in Configuration.setTo()
When updating an existing Configuration instance, don't create a new
clone of the pattern's embedded Locale unless it is materially different
from the existing instance's own.
Bug: 161264248
Test: boot & run
Test: atest AppConfigurationTests
Test: atest ConfigChangeTests
Test: atest LocaleListTest
Change-Id: I5dc0598b89305c488ba50c1774ecdabf939a6ccc
Merged-In: I5dc0598b89305c488ba50c1774ecdabf939a6ccc
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions