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

Commit 073cbca3 authored by Becky Qiu's avatar Becky Qiu
Browse files

[Overview Actions] Put the taskview in the middle of the screen.

Using horizontal padding 48dp to adjust the scale of the taskview and put it in the middle of the vertical space.

Test: local
Bug: 155444014
Change-Id: Iee6096baf18ae1106c24c83b4675abd4d3ff4d4f
parent 7dcd4d6e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -63,7 +63,7 @@
    <dimen name="task_card_menu_shadow_height">3dp</dimen>
    <dimen name="task_card_menu_horizontal_padding">0dp</dimen>
    <dimen name="portrait_task_card_horz_space">136dp</dimen>
    <dimen name="portrait_task_card_horz_space_big_overview">24dp</dimen>
    <dimen name="portrait_task_card_horz_space_big_overview">96dp</dimen>
    <dimen name="landscape_task_card_horz_space">200dp</dimen>
    <dimen name="multi_window_task_card_horz_space">100dp</dimen>
    <!-- Copied from framework resource:
+1 −3
Original line number Diff line number Diff line
@@ -146,9 +146,7 @@ public abstract class WindowSizeStrategy {
                        actionsBottomMargin = res.getDimensionPixelSize(
                                R.dimen.overview_actions_bottom_margin_gesture);
                    }
                    float actionsTopMargin = res.getDimensionPixelSize(
                            R.dimen.overview_actions_top_margin);
                    float actionsHeight = actionsTopMargin + actionsBottomMargin
                    float actionsHeight = actionsBottomMargin
                            + res.getDimensionPixelSize(R.dimen.overview_actions_height);
                    return actionsHeight;
                } else {