diff options
author | Andrii Kulian <akulian@google.com> | 2016-10-19 13:30:58 -0700 |
---|---|---|
committer | Andrii Kulian <akulian@google.com> | 2016-10-20 19:02:12 -0700 |
commit | b94292e5fe18a459aa521b9b9631d2db0485ac1b (patch) | |
tree | 3d7487f935b603a6a249afb11ba354db27b3b1a8 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | c74c449bc9e9035ba4d4f8d685d91cdf6d5f4010 (diff) |
Fix NPEs when display is added or removed
- In WindowContainer set parent of the child after it is actually
added. This way if the child class depends on this in overridden
methods it will be in correct state.
- Reconfigure display only if it is attached. Otherwise there is no
corresponding DisplayContent record with configuration.
Change-Id: I20c51522d82f9d0ca98f098070585e6472a23e98
Test: Updated WindowContainerTests.
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions