summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorRoozbeh Pournader <roozbeh@google.com>2016-01-23 22:34:57 -0800
committerRoozbeh Pournader <roozbeh@google.com>2016-01-25 19:23:38 -0800
commit834641b3908b21e7054c290e116d76e3d5e6888c (patch)
tree8b407b8a610bb8b817f4a0ded3a5063b36886156 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentac7c606c90bcf3bfea2b04f518680baf5549b9f5 (diff)
Move locale negotiation to ResourcesManager
Previously, locale resolution happened at Resources level, which could result in different Resources in the same app using different locales. This change moves the locale negotiation to ResourcesManager, which remembers the locales supported by each Resources as they are created, and negotiates the locale based on their union. It also makes sure that the old model of apps getting the default locale by accessing it through the Configuration's locale attribute continues to work, since the negotiated locale will be moved to the top of the list before Resources are created and when they are updated with a Configuration change. Bug: 25800576 Bug: 26404653 Change-Id: I0dd81df288327fd8d1229188c9544ee2209c161a
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions