commit | b94292e5fe18a459aa521b9b9631d2db0485ac1b | [log] [tgz] |
---|---|---|
author | Andrii Kulian <akulian@google.com> | Wed Oct 19 13:30:58 2016 -0700 |
committer | Andrii Kulian <akulian@google.com> | Thu Oct 20 19:02:12 2016 -0700 |
tree | 3d7487f935b603a6a249afb11ba354db27b3b1a8 | |
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.