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

Commit 2d18c688 authored by Winson Chung's avatar Winson Chung Committed by Android (Google) Code Review
Browse files

Merge "Send trim memory to trim icon cache when stopped" into ub-launcher3-edmonton

parents 8546213d dea51350
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