mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 01:16:49 +00:00
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
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user