diff options
author | Robert Kozikowski <robertkoz@google.com> | 2015-03-30 23:46:46 +0100 |
---|---|---|
committer | Robert Kozikowski <robertkoz@google.com> | 2015-03-30 23:57:46 +0100 |
commit | 67c3086163593db47e57b8cf4fcb034334374000 (patch) | |
tree | 64010c52ede4eee41183cdc3f4b2d3f493ea797f /src/com/android/launcher3/Launcher.java | |
parent | b823ae4fca345e051831732ff2760023ef6ec2c4 (diff) | |
download | android_packages_apps_Trebuchet-67c3086163593db47e57b8cf4fcb034334374000.tar.gz android_packages_apps_Trebuchet-67c3086163593db47e57b8cf4fcb034334374000.tar.bz2 android_packages_apps_Trebuchet-67c3086163593db47e57b8cf4fcb034334374000.zip |
Adding Launcher3 callbacks for trimming memory.
It will help reduce memory footprint of Launcher, when in background.
It is required to help deallocate images, when Google Now Launcher
goes into the background. See cl/83222937/ .
Plan after this CL:
- Generate drop CL with launcher3_drop.sh. Add empty metods to
make code compile.
- Sync the cl/83222937 and hide the code behind the feature flag.
It was previously submitted in ag/628070 and reverted in ag/630423
due to GSA release schedule.
Change-Id: I56eee618b86d518d0afc362b6cf44c3bbec1f19c
Diffstat (limited to 'src/com/android/launcher3/Launcher.java')
-rw-r--r-- | src/com/android/launcher3/Launcher.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java index cd2bc596a..0414a5b1e 100644 --- a/src/com/android/launcher3/Launcher.java +++ b/src/com/android/launcher3/Launcher.java @@ -3823,6 +3823,9 @@ public class Launcher extends Activity mAppsCustomizeTabHost.trimMemory(); } } + if (mLauncherCallbacks != null) { + mLauncherCallbacks.onTrimMemory(level); + } } protected void showWorkspace(boolean animated) { |