From f43491f8f25db4e9967a22aa17add94436b12cf5 Mon Sep 17 00:00:00 2001 From: Xiaohui Chen Date: Mon, 1 Feb 2016 12:19:35 -0800 Subject: [PATCH] sysui: small refactor Bug: 26161831 Change-Id: I020176d49cb12c7f7b56ad6eb1221e678312f798 --- .../systemui/statusbar/phone/NotificationPanelView.java | 4 ++-- .../com/android/systemui/statusbar/phone/PhoneStatusBar.java | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java index 277668febd6c5..575eda7cf873f 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java @@ -93,7 +93,7 @@ public class NotificationPanelView extends PanelView implements public static final long DOZE_ANIMATION_DURATION = 700; private KeyguardAffordanceHelper mAfforanceHelper; - private BaseStatusBarHeader mHeader; + protected BaseStatusBarHeader mHeader; private KeyguardUserSwitcher mKeyguardUserSwitcher; private KeyguardStatusBarView mKeyguardStatusBar; private QSContainer mQsContainer; @@ -2404,7 +2404,7 @@ public class NotificationPanelView extends PanelView implements setVerticalPanelTranslation(0f); } - private void setVerticalPanelTranslation(float translation) { + protected void setVerticalPanelTranslation(float translation) { mNotificationStackScroller.setTranslationX(translation); mScrollView.setTranslationX(translation); mHeader.setTranslationX(translation); diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java index 6d5186926027b..07dc4fd5fb7cf 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java @@ -795,7 +795,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, mKeyguardBottomArea.getLockIcon()); mKeyguardBottomArea.setKeyguardIndicationController(mKeyguardIndicationController); - // set the inital view visibility + // set the initial view visibility setAreThereNotifications(); mIconController = new StatusBarIconController( @@ -2339,8 +2339,6 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, } - Animator mScrollViewAnim, mClearButtonAnim; - @Override public void animateExpandNotificationsPanel() { if (SPEW) Log.d(TAG, "animateExpand: mExpandedVisible=" + mExpandedVisible);