commit | 44c4994dca5e968a423dc3510d2e15d9f4d92f8d | [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:00 2020 +0000 |
tree | 1f091794cc983838eeebe43f3f12879f8dfb9f72 | |
parent | 76539712ca0b3bdc149c188a27add62f9bdfa04c [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