commit | 8d4765883ff24f0f79bf64fea23d4687d50cec85 | [log] [tgz] |
---|---|---|
author | Chris Banes <chrisbanes@google.com> | Thu Jun 18 13:04:05 2015 +0100 |
committer | Chris Banes <chrisbanes@google.com> | Thu Jun 18 13:42:50 2015 +0100 |
tree | 55f77c404f52e624e5ca08e7a90cae7b85c9df75 | |
parent | 0f694cd2137e6c760bf09cf6ce4aa7b4e0d070e3 [diff] |
Fix memory leak in ToolbarActionBar Caused when there are multiple calls to setSupportActionBar() (i.e. fragments). ToolbarActionBar currently just wraps the Window's current Callback. Which means that for every setSupportActionBar() call, we're re-wrapping a ToolbarActionBar Window.Callback wrapper. This CL fixes it by making sure that we always wrap the correct 'root' Window.Callback. BUG: 21914909 Change-Id: I8f21b94d60eb488630b1fe7377ba62d3608accef