commit | 3f9c971e761222dc9fb4e5866f81c5f7a3348992 | [log] [tgz] |
---|---|---|
author | Adam Cohen <adamcohen@google.com> | Fri Oct 31 11:48:25 2014 -0700 |
committer | Adam Cohen <adamcohen@google.com> | Fri Oct 31 12:15:09 2014 -0700 |
tree | 02dcea77ed7b42fb5811011701e0d3f8859875b6 | |
parent | 5fd733dbaeff3f07fff98f24947b2e1ab89eff7d [diff] [blame] |
Adding a couple memory optimizations to Launcher -> Always dispose of widget page views when leaving the activity. These pages hold onto many bitmaps. -> Clear database cache when leaving the activity. Bug: 17967108 Change-Id: I10ebaaed14e7cd86f09a9afcabd73043705f21b8
diff --git a/src/com/android/launcher3/AppsCustomizePagedView.java b/src/com/android/launcher3/AppsCustomizePagedView.java index 7f3b7fb..0648858 100644 --- a/src/com/android/launcher3/AppsCustomizePagedView.java +++ b/src/com/android/launcher3/AppsCustomizePagedView.java
@@ -1476,7 +1476,9 @@ } } + @Override public void reset() { + super.reset(); // If we have reset, then we should not continue to restore the previous state mSaveInstanceStateItemIndex = -1;