summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorCharles Chen <charlesccchen@google.com>2020-05-29 19:16:57 +0800
committerCharles Chen <charlesccchen@google.com>2020-05-30 12:46:59 +0800
commite22c4cb3c648312a4fd58d89c5ff88968d99215e (patch)
treea85317cfb9ea107f1d3c246324f7452107e66627 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentc4452824a000cf1cdd064f884badde5f7834bc5f (diff)
Fix get display from display context derived context not working
In ContextImpl, we checked the flag "mIsAssociatedWithDisplay" to identify if a context can access a display or not. The flag wasn't passed from outer context, and it leads to an issue that context which created from #createConfigurationContext from display context failed to obtain display instance. This CL passes mIsAssociatedWithDisplay from outer context and also add test to verify the behavior. fixes: 157719118 Test: atest ContextTest ContextAccessTest Change-Id: Ibeb2a08c75f90304e12dcf99293c84409c5eea34
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions