Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dea51350 authored by Winson Chung's avatar Winson Chung
Browse files

Send trim memory to trim icon cache when stopped

- Workaround for b/78520668

Bug: 76162466

Change-Id: I2c225c59484984a671186415cb1eb19161f57ba6
parent 406c0872
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -225,6 +225,14 @@ public class RecentsActivity extends BaseDraggingActivity {
        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
    public void onTrimMemory(int level) {
        super.onTrimMemory(level);
+2 −0
Original line number Diff line number Diff line
@@ -737,6 +737,8 @@ public class Launcher extends BaseDraggingActivity
        NotificationListener.removeNotificationsChangedListener();
        getStateManager().moveToRestState();

        // Workaround for b/78520668, explicitly trim memory once UI is hidden
        UiFactory.onTrimMemory(this, TRIM_MEMORY_UI_HIDDEN);
    }

    @Override