diff options
author | Joe Onorato <joeo@android.com> | 2010-05-18 18:43:51 -0700 |
---|---|---|
committer | Joe Onorato <joeo@android.com> | 2010-05-18 18:44:36 -0700 |
commit | f3d5ea926d4dd1a739b9d3816543728af723cc26 (patch) | |
tree | a9876e9cad876cf8a91b7983dcb9f0321e0f1bcf /src | |
parent | d0b7a8cf2b26afe598799d4a451a985f0da45c2d (diff) | |
download | android_packages_apps_Trebuchet-f3d5ea926d4dd1a739b9d3816543728af723cc26.tar.gz android_packages_apps_Trebuchet-f3d5ea926d4dd1a739b9d3816543728af723cc26.tar.bz2 android_packages_apps_Trebuchet-f3d5ea926d4dd1a739b9d3816543728af723cc26.zip |
Have LauncherModel poke the gc after it's done, to give the
renderscript objects a chance to get deleted, since they aren't
in the java heap.
Bug 2685490
Change-Id: Ifff97b64585ac0f6faed0feb6362f6137682e32d
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/launcher2/LauncherModel.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/android/launcher2/LauncherModel.java b/src/com/android/launcher2/LauncherModel.java index a8672008c..612764984 100644 --- a/src/com/android/launcher2/LauncherModel.java +++ b/src/com/android/launcher2/LauncherModel.java @@ -623,6 +623,14 @@ public class LauncherModel extends BroadcastReceiver { // sections. mLoaderThread = null; } + + // Trigger a gc to try to clean up after the stuff is done, since the + // renderscript allocations aren't charge to the java heap. + mHandler.post(new Runnable() { + public void run() { + System.gc(); + } + }); } public void stopLocked() { |