Send trim memory to trim icon cache when stopped
- Workaround for b/78520668 Bug: 76162466 Change-Id: I2c225c59484984a671186415cb1eb19161f57ba6
This commit is contained in:
parent
406c08727e
commit
dea51350d6
|
@ -225,6 +225,14 @@ public class RecentsActivity extends BaseDraggingActivity {
|
||||||
mFallbackRecentsView.resetTaskVisuals();
|
mFallbackRecentsView.resetTaskVisuals();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onStop() {
|
||||||
|
super.onStop();
|
||||||
|
|
||||||
|
// Workaround for b/78520668, explicitly trim memory once UI is hidden
|
||||||
|
UiFactory.onTrimMemory(this, TRIM_MEMORY_UI_HIDDEN);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onTrimMemory(int level) {
|
public void onTrimMemory(int level) {
|
||||||
super.onTrimMemory(level);
|
super.onTrimMemory(level);
|
||||||
|
|
|
@ -737,6 +737,8 @@ public class Launcher extends BaseDraggingActivity
|
||||||
NotificationListener.removeNotificationsChangedListener();
|
NotificationListener.removeNotificationsChangedListener();
|
||||||
getStateManager().moveToRestState();
|
getStateManager().moveToRestState();
|
||||||
|
|
||||||
|
// Workaround for b/78520668, explicitly trim memory once UI is hidden
|
||||||
|
UiFactory.onTrimMemory(this, TRIM_MEMORY_UI_HIDDEN);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue