summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/LauncherCallbacks.java
diff options
context:
space:
mode:
authorRobert Kozikowski <robertkoz@google.com>2015-03-30 23:46:46 +0100
committerRobert Kozikowski <robertkoz@google.com>2015-03-30 23:57:46 +0100
commit67c3086163593db47e57b8cf4fcb034334374000 (patch)
tree64010c52ede4eee41183cdc3f4b2d3f493ea797f /src/com/android/launcher3/LauncherCallbacks.java
parentb823ae4fca345e051831732ff2760023ef6ec2c4 (diff)
downloadandroid_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/LauncherCallbacks.java')
-rw-r--r--src/com/android/launcher3/LauncherCallbacks.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/launcher3/LauncherCallbacks.java b/src/com/android/launcher3/LauncherCallbacks.java
index a1f4e0b90..d8128d6e5 100644
--- a/src/com/android/launcher3/LauncherCallbacks.java
+++ b/src/com/android/launcher3/LauncherCallbacks.java
@@ -42,6 +42,7 @@ public interface LauncherCallbacks {
public void dump(String prefix, FileDescriptor fd, PrintWriter w, String[] args);
public void onHomeIntent();
public boolean handleBackPressed();
+ public void onTrimMemory(int level);
/*
* Extension points for providing custom behavior on certain user interactions.