Unload widget previews when launcher is not visible

Can save ~1-2MB of RAM

Bug #5104303

Change-Id: I992bec33052f4d2c201e528b5edf384d05960e71
This commit is contained in:
Michael Jurka
2011-11-21 14:05:46 -08:00
parent 31186d0535
commit e326f186af
5 changed files with 59 additions and 4 deletions

View File

@@ -68,6 +68,12 @@ public class PagedViewGridLayout extends GridLayout implements Page {
heightMeasureSpec);
}
@Override
protected void onDetachedFromWindow() {
super.onDetachedFromWindow();
mOnLayoutListener = null;
}
public void setOnLayoutListener(Runnable r) {
mOnLayoutListener = r;
}