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

Commit 6d5fbe61 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"...

Merge "Fixes clear all button disappearing after rotate on low ram device" into oc-mr1-dev am: 0424bb7d
am: 346388d7

Change-Id: I3eea093e06f3434973f936c26656f6e6d683bc12
parents 6866b983 346388d7
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());