summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Winson Chung <winsonc@google.com> 2016-04-05 20:10:30 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2016-04-05 20:10:31 +0000
commitd1427fbe0de9039e9ca94038ef070772e8afc4a3 (patch)
tree1dbb66c10d38e590b1334190f7d36e44ab09b983
parentc0b8c119d311645450e923bae2b4e030b18d3632 (diff)
parent24251b68f15c503a88bfdcd2faeb34e50a7d6747 (diff)
Merge "Fixing tiny issue with empty state graphic not being centered correctly." into nyc-dev
-rw-r--r--packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java b/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
index e0d048660b96..ef81f9ee2817 100644
--- a/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
+++ b/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
@@ -367,8 +367,10 @@ public class RecentsView extends FrameLayout {
int topBottomInsets = mSystemInsets.top + mSystemInsets.bottom;
int childWidth = mEmptyView.getMeasuredWidth();
int childHeight = mEmptyView.getMeasuredHeight();
- int childLeft = left + Math.max(0, (right - left - leftRightInsets - childWidth)) / 2;
- int childTop = top + Math.max(0, (bottom - top - topBottomInsets - childHeight)) / 2;
+ int childLeft = left + mSystemInsets.left +
+ 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);
}