commit | ebb5c75344168397403edd74f8fc5e9603e41b13 | [log] [tgz] |
---|---|---|
author | vadimt <vadimt@google.com> | Fri Oct 18 11:34:21 2019 -0700 |
committer | vadimt <vadimt@google.com> | Fri Oct 18 11:34:21 2019 -0700 |
tree | d3c9be25514b305d5e7a55641568ea6621900892 | |
parent | 8625d0d8e78876747fb59c2930ee95ee58c9bd75 [diff] |
Fixing activity leak on config change If attachTo happens before the view is attached to window, ViewOnDrawExecutor hooks to the tree observer twice (second time from onViewAttachedToWindow). It only unhooks once. Since tree observer is global, this leads to leaking the activity, and besides, all old activities getting the events from the tree observer. Bug: 139137636 Change-Id: Ie2641b8f3614545052fe34ad6588b070c3b82a33