commit | d649b8d9eddf1e5c244ab61437b60040b1cf35c0 | [log] [tgz] |
---|---|---|
author | Chris Banes <chrisbanes@google.com> | Thu Jan 05 12:36:53 2017 +0000 |
committer | Chris Banes <chrisbanes@google.com> | Thu Jan 19 10:02:43 2017 +0000 |
tree | cab2eadafc4788a72d7d6033f408510fca9b6cfd | |
parent | 826d6b277b92fa5307bb31bfc1cc8dcfd714d293 [diff] |
Fix inflation using themed LayoutInflater We currently use a flaky heuristic for detecting whether we should inherit a parents context when inflating a child. This fails when the root parent the layout is being inflated in to, is not attached. This CL introduces a new heuristic which handles this case. Test: included and passes on all API levels. BUG: 33799622 Change-Id: I71cdc9ba0a6450e6b4c3e371b83621ecb2aed7e5