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

Commit a24c341b authored by Becky Qiu's avatar Becky Qiu
Browse files

[Overview Actions] Update the actions container UI.

Make the overview actions container not limited by the taskview any more, and add left and right margin as 16dp to it.

Screenshot: https://hsv.googleplex.com/5938979251683328
Test: local
Bug: 153591867
Change-Id: I8056105fe4c03311e473bb317cba345048ec2203
parent 260f52d4
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -2139,13 +2139,15 @@ public abstract class RecentsView<T extends BaseActivity> extends PagedView impl
                && SysUINavigationMode.removeShelfFromOverview(mActivity)) {
            mActionsView = ((ViewGroup) getParent()).findViewById(R.id.overview_actions_view);
            if (mActionsView != null) {
                Rect rect = new Rect();
                getTaskSize(rect);
                InsettableFrameLayout.LayoutParams layoutParams =
                        new InsettableFrameLayout.LayoutParams(rect.width(),
                        new InsettableFrameLayout.LayoutParams(LayoutParams.MATCH_PARENT,
                                getResources().getDimensionPixelSize(
                                        R.dimen.overview_actions_height));
                layoutParams.gravity = Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL;
                int margin = getResources().getDimensionPixelSize(
                        R.dimen.overview_actions_horizontal_margin);
                layoutParams.setMarginStart(margin);
                layoutParams.setMarginEnd(margin);
                mActionsView.setLayoutParams(layoutParams);
                showActionsView();
            }
+1 −0
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@

    <!-- Overrideable in overlay that provides the Overview Actions. -->
    <dimen name="overview_actions_height">110dp</dimen>
    <dimen name="overview_actions_horizontal_margin">16dp</dimen>

    <dimen name="recents_page_spacing">10dp</dimen>
    <dimen name="recents_clear_all_deadzone_vertical_margin">70dp</dimen>