summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/AppsCustomizeTabHost.java
diff options
context:
space:
mode:
authorAdam Cohen <adamcohen@google.com>2014-10-31 11:48:25 -0700
committerAdam Cohen <adamcohen@google.com>2014-10-31 12:15:09 -0700
commit3f9c971e761222dc9fb4e5866f81c5f7a3348992 (patch)
tree02dcea77ed7b42fb5811011701e0d3f8859875b6 /src/com/android/launcher3/AppsCustomizeTabHost.java
parent5fd733dbaeff3f07fff98f24947b2e1ab89eff7d (diff)
downloadandroid_packages_apps_Trebuchet-3f9c971e761222dc9fb4e5866f81c5f7a3348992.tar.gz
android_packages_apps_Trebuchet-3f9c971e761222dc9fb4e5866f81c5f7a3348992.tar.bz2
android_packages_apps_Trebuchet-3f9c971e761222dc9fb4e5866f81c5f7a3348992.zip
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
Diffstat (limited to 'src/com/android/launcher3/AppsCustomizeTabHost.java')
-rw-r--r--src/com/android/launcher3/AppsCustomizeTabHost.java8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/com/android/launcher3/AppsCustomizeTabHost.java b/src/com/android/launcher3/AppsCustomizeTabHost.java
index 9a516fd41..df65cbaa1 100644
--- a/src/com/android/launcher3/AppsCustomizeTabHost.java
+++ b/src/com/android/launcher3/AppsCustomizeTabHost.java
@@ -141,14 +141,6 @@ public class AppsCustomizeTabHost extends FrameLayout implements LauncherTransit
mPagedView.loadAssociatedPages(mPagedView.getCurrentPage());
}
}
-
- public void onTrimMemory() {
- mContent.setVisibility(GONE);
- // Clear the widget pages of all their subviews - this will trigger the widget previews
- // to delete their bitmaps
- mPagedView.clearAllWidgetPages();
- }
-
@Override
public ViewGroup getContent() {
return mPagedView;