summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorBryce Lee <brycelee@google.com>2017-05-09 10:40:23 -0700
committerBryce Lee <brycelee@google.com>2017-05-09 10:40:23 -0700
commitc406152f5fdcaeae2b2d24ba26663badd92b226b (patch)
tree391a389c7fe4d4491a9a22fb0be7a01718197f61 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent2cd2d23440470e12e24e8b406ca082f0586cb3d1 (diff)
Use application context getting secondary displays.
Activity contexts include override configurations in their resources associated with the primary display. There currently is no way to specify overrides for another display from the same context. As a result, getting metrics for other displays will reflect the metrics of the context's display. This change provides the application context when we create a display if the display id does not match the display associated with the context. Change-Id: I68a7b609ead6d7cc652d36e7e8af432700af8efa Fixes:37923030 Test: cts-tradefed run cts-dev --module CtsDisplayTestCases --test android.display.cts.DisplayTest#testActivityContextGetMetrics
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions