OSDN Git Service

Adding a couple memory optimizations to Launcher
authorAdam Cohen <adamcohen@google.com>
Fri, 31 Oct 2014 18:48:25 +0000 (11:48 -0700)
committerAdam Cohen <adamcohen@google.com>
Fri, 31 Oct 2014 19:15:09 +0000 (12:15 -0700)
commit3f9c971e761222dc9fb4e5866f81c5f7a3348992
tree02dcea77ed7b42fb5811011701e0d3f8859875b6
parent5fd733dbaeff3f07fff98f24947b2e1ab89eff7d
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
src/com/android/launcher3/AppsCustomizePagedView.java
src/com/android/launcher3/AppsCustomizeTabHost.java
src/com/android/launcher3/Launcher.java
src/com/android/launcher3/PagedViewWithDraggableItems.java