commit | 7652ae9080b8cdb3c619982465228778fbc45736 | [log] [tgz] |
---|---|---|
author | Christopher Tate <ctate@google.com> | Tue Jul 14 12:23:21 2020 -0700 |
committer | Chris Tate <ctate@android.com> | Wed Jul 15 16:35:30 2020 +0000 |
tree | 2814413c8dd04d434dda57d5b85381b97a92ed1c | |
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