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

Commit 91c7ce9d authored by Veeti Paananen's avatar Veeti Paananen Committed by Gerrit Code Review
Browse files

Align recents clear button to screen edge instead of tasks if close

Change-Id: I903088a34762d13c489b2f81eeb8ff3db13e0981
parent 47cbe3a9
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -358,6 +358,10 @@ public class RecentsView extends FrameLayout implements TaskStackView.TaskStackV
            } else {
                // Adjust to task views
                params.rightMargin = (width / 2) - (taskViewWidth / 2);

                // If very close to the screen edge, align to it
                if (params.rightMargin < mClearRecents.getWidth())
                    params.rightMargin = width - taskStackBounds.right;
            }
            mClearRecents.setLayoutParams(params);
        }