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

Commit 6074c5c1 authored by Winson Chung's avatar Winson Chung
Browse files

Fixing issue with stack not being fully centered. (Bug 17015153)

Change-Id: Id9d0d77d03ff0291fccb717d81754c239d8442b4
parent 91db5ea1
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);