From 2eec8fe5ebd14913a741d57327295e591c0736b8 Mon Sep 17 00:00:00 2001 From: John Spurlock Date: Thu, 24 Jul 2014 12:16:14 -0400 Subject: [PATCH] QS: Fix clipped battery icon when expanded. Change-Id: If5ad46b9f25e70af0e13654ce1137955eb87eec2 --- .../systemui/statusbar/phone/StatusBarHeaderView.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarHeaderView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarHeaderView.java index 2f88e21c315ab..6db2e640e77b2 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarHeaderView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarHeaderView.java @@ -553,8 +553,9 @@ public class StatusBarHeaderView extends RelativeLayout implements View.OnClickL } public void update() { - final boolean onKeyguardAndCollapsed = mKeyguardShowing && !mExpanded; - mSystemIconsContainer.setClipBounds(onKeyguardAndCollapsed ? null : mClipBounds); + final boolean collapsedKeyguard = mKeyguardShowing && !mExpanded; + final boolean expanded = mExpanded && !mOverscrolled; + mSystemIconsContainer.setClipBounds(collapsedKeyguard || expanded ? null : mClipBounds); } }