Call Activity.onTrimMemory() to ensure render thread cache is also trimmed

Bug: 76162466
Change-Id: Ie3cf9076ba8149c0f2d7e58b5ca0c974ae914c18
This commit is contained in:
Winson Chung committed 2018-04-26 12:07:39 -07:00
1 parent 1d2c3fb9be
commit 473730fcf9
2 files changed
+2 -2

No files matched your search

@@ -231,7 +231,7 @@ public class RecentsActivity extends BaseDraggingActivity {
super.onStop();
// Workaround for b/78520668, explicitly trim memory once UI is hidden
UiFactory.onTrimMemory(this, TRIM_MEMORY_UI_HIDDEN);
onTrimMemory(TRIM_MEMORY_UI_HIDDEN);
}
@Override
+1 -1
View File
@@ -738,7 +738,7 @@ public class Launcher extends BaseDraggingActivity
getStateManager().moveToRestState();
// Workaround for b/78520668, explicitly trim memory once UI is hidden
UiFactory.onTrimMemory(this, TRIM_MEMORY_UI_HIDDEN);
onTrimMemory(TRIM_MEMORY_UI_HIDDEN);
}
@Override