From ba5b3a0b4e334d56fa08a6c39eeee54384eec003 Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Tue, 23 Sep 2014 15:34:53 +0200 Subject: [PATCH] Fixed a bug where the alarm could overlap in QS When closing the QS panel the alarm did the normal transformation, regardless whether we were in a detail state. This lead to the alarm overlapping with the title. Bug: 17581501 Change-Id: I0318f6778063af11f388e6c7fe8bbb30105ca246 --- .../systemui/statusbar/phone/StatusBarHeaderView.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 cb9abfd9e5fe0..b0f3ea1ec48d5 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarHeaderView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarHeaderView.java @@ -623,7 +623,10 @@ public class StatusBarHeaderView extends RelativeLayout implements View.OnClickL mSettingsButton.setTranslationX(values.settingsTranslation); mSettingsButton.setRotation(values.settingsRotation); applyAlpha(mEmergencyCallsOnly, values.emergencyCallsOnlyAlpha); - applyAlpha(mAlarmStatus, values.alarmStatusAlpha); + if (!mShowingDetail) { + // Otherwise it needs to stay invisible + applyAlpha(mAlarmStatus, values.alarmStatusAlpha); + } applyAlpha(mDateCollapsed, values.dateCollapsedAlpha); applyAlpha(mDateExpanded, values.dateExpandedAlpha); applyAlpha(mBatteryLevel, values.batteryLevelAlpha);