summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Launcher.java
diff options
context:
space:
mode:
authorAdam Cohen <adamcohen@google.com>2014-11-19 16:03:20 -0800
committerAdam Cohen <adamcohen@google.com>2014-11-19 16:24:12 -0800
commitc8f4e1bc88401cad3cc5e439cd08450974d99d81 (patch)
tree25b8e67b7e3a2a8d2c69571451e7ebbac48dca24 /src/com/android/launcher3/Launcher.java
parent08072c05bf9c760acff653545a795a0fae4bd917 (diff)
downloadandroid_packages_apps_Trebuchet-c8f4e1bc88401cad3cc5e439cd08450974d99d81.tar.gz
android_packages_apps_Trebuchet-c8f4e1bc88401cad3cc5e439cd08450974d99d81.tar.bz2
android_packages_apps_Trebuchet-c8f4e1bc88401cad3cc5e439cd08450974d99d81.zip
Fix a couple regressions from resetting AppsCustomizeTabHost
Bug 18409435 Bug 18358080 Change-Id: I07a071342b5c5e062ab2bb562b672d93ba0d5c2e
Diffstat (limited to 'src/com/android/launcher3/Launcher.java')
-rw-r--r--src/com/android/launcher3/Launcher.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java
index 0d1d3ef6e..ac46fd33d 100644
--- a/src/com/android/launcher3/Launcher.java
+++ b/src/com/android/launcher3/Launcher.java
@@ -3815,10 +3815,9 @@ public class Launcher extends Activity
// 3MB of memory for caching which isn't necessary.
SQLiteDatabase.releaseMemory();
- // We reset the apps customize tray in order to
- // to free all the memory associated with widget previews
+ // This clears all widget bitmaps from the widget tray
if (mAppsCustomizeTabHost != null) {
- mAppsCustomizeTabHost.reset();
+ mAppsCustomizeTabHost.trimMemory();
}
}
}