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

Commit 346388d7 authored by Matthew Ng's avatar Matthew Ng Committed by android-build-merger
Browse files

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

am: 0424bb7d

Change-Id: I06a025ab25429dbcf14cd14a4771b6a423794dfe
parents a4fab98d 0424bb7d
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());