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

Commit 625f0559 authored by Winson Chung's avatar Winson Chung Committed by Android (Google) Code Review
Browse files

Merge "Fixing issue with stack not being fully centered. (Bug 17015153)" into lmp-dev

parents a11757c1 6074c5c1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@
    <dimen name="status_bar_recents_app_icon_top_margin">8dp</dimen>

    <!-- The side padding for the task stack as a percentage of the width. -->
    <item name="recents_stack_width_padding_percentage" format="float" type="dimen">0.2229</item>
    <item name="recents_stack_width_padding_percentage" format="float" type="dimen">0.26</item>

    <!-- Standard notification width + gravity -->
    <dimen name="notification_panel_width">@dimen/standard_notification_panel_width</dimen>
+2 −2
Original line number Diff line number Diff line
@@ -347,8 +347,8 @@ public class RecentsConfiguration {
        Rect searchBarBounds = new Rect();
        getSearchBarBounds(windowWidth, windowHeight, topInset, searchBarBounds);
        if (isLandscape && hasTransposedSearchBar) {
            // In landscape, the search bar appears on the left
            taskStackBounds.set(searchBarBounds.right, topInset, windowWidth - rightInset, windowHeight);
            // In landscape, the search bar appears on the left, but we overlay it on top
            taskStackBounds.set(0, topInset, windowWidth - rightInset, windowHeight);
        } else {
            // In portrait, the search bar appears on the top (which already has the inset)
            taskStackBounds.set(0, searchBarBounds.bottom, windowWidth, windowHeight);