diff options
author | Filip Gruszczynski <gruszczy@google.com> | 2015-09-15 18:28:03 -0700 |
---|---|---|
committer | Filip Gruszczynski <gruszczy@google.com> | 2015-09-15 18:28:03 -0700 |
commit | 640a3909a33c5688f7752e5db6f7c6b23801300c (patch) | |
tree | 96511851ae452162a332cdb8cf93a0198f9772ad /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 7876646249b9375ca4a436ad03da7ec572809c39 (diff) |
Fix leaking the first activity while preserving windows.
Preserving decor view across activity relaunches would leak the first
activity, because the decor view would hold onto into in the form of the
context. This CL fixes that by having DecorView and NonClientDecorView
use application context instead.
Another source of a leak is DecorView being inner, non static class.
This would keep the orignal, first PhoneWindow around, which in turn
holds a reference to the activity. DecorView is now static and has
explicit reference to the PhoneWindow.
Change-Id: I3df58755d65d3d36ea2157908b0000b2d5c4ab70
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions