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

Commit 0424bb7d authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fixes clear all button disappearing after rotate on low ram device" into oc-mr1-dev

parents a6183945 e4c57d72
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -2396,10 +2396,14 @@ public class TaskStackView extends FrameLayout implements TaskStack.TaskStackCal
    }

    private void updateStackActionButtonVisibility() {
        if (Recents.getConfiguration().isLowRamDevice) {
            return;
        }

        // Always show the button in grid layout.
        if (useGridLayout() ||
                (mStackScroller.getStackScroll() < SHOW_STACK_ACTION_BUTTON_SCROLL_THRESHOLD &&
                        mStack.getTaskCount() > 0 && !Recents.getConfiguration().isLowRamDevice)) {
                        mStack.getTaskCount() > 0)) {
            EventBus.getDefault().send(new ShowStackActionButtonEvent(false /* translate */));
        } else {
            EventBus.getDefault().send(new HideStackActionButtonEvent());