diff options
author | Yohei Yukawa <yukawa@google.com> | 2016-02-08 23:21:37 -0800 |
---|---|---|
committer | Yohei Yukawa <yukawa@google.com> | 2016-02-08 23:21:37 -0800 |
commit | 5d64399c51de861261267a937502c6a13c50a239 (patch) | |
tree | c6ba4dedd53559a59685e76ad3ce5dac648f820b /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 93f04f89202d269fbb38c6f2ffacc3fa01728bbc (diff) |
Use Context#createConfigurationContext().
Nothing is changed in the test expectations.
Major changes in this CL are:
1. To obtain a custom context with the given locale,
Context#createConfigurationContext() is the way to go.
Modifying any internal state of the resource that is owned by the
context is not supported at all.
2. As a preparation to test cases where multiple locales are specified
in the system settings, unit tests need to switch to
Confituration#setLocales(LocaleList).
Bug: 27076327
Change-Id: I6caa76627677c7625a1c42d76a275f67ae65a9b2
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions