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

Commit d81beb2b authored by Winson Chung's avatar Winson Chung Committed by android-build-merger
Browse files

Merge "Fixing tiny issue with empty state graphic not being centered...

Merge "Fixing tiny issue with empty state graphic not being centered correctly." into nyc-dev am: d1427fbe
am: be46ffc0

* commit 'be46ffc0':
  Fixing tiny issue with empty state graphic not being centered correctly.

Change-Id: I31d96c26b14f3bfb8b9a9999745e8cbeb38f4cd7
parents 044c4d97 be46ffc0
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -367,8 +367,10 @@ public class RecentsView extends FrameLayout {
            int topBottomInsets = mSystemInsets.top + mSystemInsets.bottom;
            int topBottomInsets = mSystemInsets.top + mSystemInsets.bottom;
            int childWidth = mEmptyView.getMeasuredWidth();
            int childWidth = mEmptyView.getMeasuredWidth();
            int childHeight = mEmptyView.getMeasuredHeight();
            int childHeight = mEmptyView.getMeasuredHeight();
            int childLeft = left + Math.max(0, (right - left - leftRightInsets - childWidth)) / 2;
            int childLeft = left + mSystemInsets.left +
            int childTop = top + Math.max(0, (bottom - top - topBottomInsets - childHeight)) / 2;
                    Math.max(0, (right - left - leftRightInsets - childWidth)) / 2;
            int childTop = top + mSystemInsets.top +
                    Math.max(0, (bottom - top - topBottomInsets - childHeight)) / 2;
            mEmptyView.layout(childLeft, childTop, childLeft + childWidth, childTop + childHeight);
            mEmptyView.layout(childLeft, childTop, childLeft + childWidth, childTop + childHeight);
        }
        }