Loading packages/SystemUI/src/com/android/systemui/statusbar/ActivatableNotificationView.java +7 −2 Original line number Diff line number Diff line Loading @@ -230,10 +230,13 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView // Check whether there is already a background animation running. if (mBackgroundAnimator != null) { startAlpha = (Integer) mBackgroundAnimator.getAnimatedValue(); duration = (int) (NotificationActivator.ANIMATION_LENGTH_MS - mBackgroundAnimator.getCurrentPlayTime()); duration = (int) mBackgroundAnimator.getCurrentPlayTime(); mBackgroundAnimator.removeAllListeners(); mBackgroundAnimator.cancel(); if (duration <= 0) { updateBackgroundResource(); return; } } mBackgroundNormal.setAlpha(startAlpha); mBackgroundAnimator = Loading @@ -257,10 +260,12 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView private void updateBackgroundResource() { if (mDimmed) { setBackgroundDimmed(mDimmedBgResId); mBackgroundDimmed.setAlpha(255); setBackgroundNormal(null); } else { setBackgroundDimmed(null); setBackgroundNormal(mBgResId); mBackgroundNormal.setAlpha(255); } } Loading packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java +0 −7 Original line number Diff line number Diff line Loading @@ -1415,13 +1415,6 @@ public abstract class BaseStatusBar extends SystemUI implements return mBouncerShowing; } /** * See {@link PowerManager#isInteractive()} for the meaning of this method. */ public boolean isScreenTurnedOn() { return mPowerManager.isInteractive(); } public void destroy() { if (mSearchPanelView != null) { mWindowManager.removeViewImmediate(mSearchPanelView); Loading packages/SystemUI/src/com/android/systemui/statusbar/DragDownHelper.java +1 −0 Original line number Diff line number Diff line Loading @@ -127,6 +127,7 @@ public class DragDownHelper implements Gefingerpoken { mCallback.setUserLockedChild(mStartingChild, false); } mOnDragDownListener.onDraggedDown(mStartingChild); mDraggingDown = false; } else { stopDragging(); return false; Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java +8 −1 Original line number Diff line number Diff line Loading @@ -39,6 +39,7 @@ public class NotificationPanelView extends PanelView implements private NotificationStackScrollLayout mNotificationStackScroller; private boolean mTrackingSettings; private int mNotificationTopPadding; private boolean mAnimateNextTopPaddingChange; public NotificationPanelView(Context context, AttributeSet attrs) { super(context, attrs); Loading Loading @@ -80,7 +81,13 @@ public class NotificationPanelView extends PanelView implements mNotificationStackScroller.setTopPadding(mStatusBar.getBarState() == StatusBarState.KEYGUARD ? mKeyguardStatusView.getBottom() + keyguardBottomMargin : mHeader.getBottom() + mNotificationTopPadding, mStatusBar.isScreenTurnedOn() && mStatusBar.isExpandedVisible()); mAnimateNextTopPaddingChange); mAnimateNextTopPaddingChange = false; } public void animateNextTopPaddingChange() { mAnimateNextTopPaddingChange = true; requestLayout(); } @Override Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +4 −5 Original line number Diff line number Diff line Loading @@ -631,7 +631,8 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, R.layout.status_bar_notification_keyguard_overflow, mStackScroller, false); mKeyguardIconOverflowContainer.setOnActivatedListener(this); mKeyguardCarrierLabel = mStatusBarWindow.findViewById(R.id.keyguard_carrier_text); mKeyguardIconOverflowContainer.setOnClickListener(mOverflowClickListener); // TODO: Comment in when transition is ready. //mKeyguardIconOverflowContainer.setOnClickListener(mOverflowClickListener); mStackScroller.addView(mKeyguardIconOverflowContainer); mExpandedContents = mStackScroller; Loading Loading @@ -2990,6 +2991,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, setBarState(StatusBarState.SHADE); if (mLeaveOpenOnKeyguardHide) { mLeaveOpenOnKeyguardHide = false; mNotificationPanel.animateNextTopPaddingChange(); } else { instantCollapseNotificationPanel(); } Loading Loading @@ -3176,6 +3178,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, mLeaveOpenOnKeyguardHide = true; showBouncer(); } else if (mStatusBarKeyguardViewManager.isSecure()) { mNotificationPanel.animateNextTopPaddingChange(); setBarState(StatusBarState.SHADE_LOCKED); updateKeyguardState(); } else { Loading @@ -3195,10 +3198,6 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, } } public boolean isExpandedVisible() { return mExpandedVisible; } public static boolean inBounds(View view, MotionEvent event, boolean orAbove) { final int[] location = new int[2]; view.getLocationInWindow(location); Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/ActivatableNotificationView.java +7 −2 Original line number Diff line number Diff line Loading @@ -230,10 +230,13 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView // Check whether there is already a background animation running. if (mBackgroundAnimator != null) { startAlpha = (Integer) mBackgroundAnimator.getAnimatedValue(); duration = (int) (NotificationActivator.ANIMATION_LENGTH_MS - mBackgroundAnimator.getCurrentPlayTime()); duration = (int) mBackgroundAnimator.getCurrentPlayTime(); mBackgroundAnimator.removeAllListeners(); mBackgroundAnimator.cancel(); if (duration <= 0) { updateBackgroundResource(); return; } } mBackgroundNormal.setAlpha(startAlpha); mBackgroundAnimator = Loading @@ -257,10 +260,12 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView private void updateBackgroundResource() { if (mDimmed) { setBackgroundDimmed(mDimmedBgResId); mBackgroundDimmed.setAlpha(255); setBackgroundNormal(null); } else { setBackgroundDimmed(null); setBackgroundNormal(mBgResId); mBackgroundNormal.setAlpha(255); } } Loading
packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java +0 −7 Original line number Diff line number Diff line Loading @@ -1415,13 +1415,6 @@ public abstract class BaseStatusBar extends SystemUI implements return mBouncerShowing; } /** * See {@link PowerManager#isInteractive()} for the meaning of this method. */ public boolean isScreenTurnedOn() { return mPowerManager.isInteractive(); } public void destroy() { if (mSearchPanelView != null) { mWindowManager.removeViewImmediate(mSearchPanelView); Loading
packages/SystemUI/src/com/android/systemui/statusbar/DragDownHelper.java +1 −0 Original line number Diff line number Diff line Loading @@ -127,6 +127,7 @@ public class DragDownHelper implements Gefingerpoken { mCallback.setUserLockedChild(mStartingChild, false); } mOnDragDownListener.onDraggedDown(mStartingChild); mDraggingDown = false; } else { stopDragging(); return false; Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java +8 −1 Original line number Diff line number Diff line Loading @@ -39,6 +39,7 @@ public class NotificationPanelView extends PanelView implements private NotificationStackScrollLayout mNotificationStackScroller; private boolean mTrackingSettings; private int mNotificationTopPadding; private boolean mAnimateNextTopPaddingChange; public NotificationPanelView(Context context, AttributeSet attrs) { super(context, attrs); Loading Loading @@ -80,7 +81,13 @@ public class NotificationPanelView extends PanelView implements mNotificationStackScroller.setTopPadding(mStatusBar.getBarState() == StatusBarState.KEYGUARD ? mKeyguardStatusView.getBottom() + keyguardBottomMargin : mHeader.getBottom() + mNotificationTopPadding, mStatusBar.isScreenTurnedOn() && mStatusBar.isExpandedVisible()); mAnimateNextTopPaddingChange); mAnimateNextTopPaddingChange = false; } public void animateNextTopPaddingChange() { mAnimateNextTopPaddingChange = true; requestLayout(); } @Override Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +4 −5 Original line number Diff line number Diff line Loading @@ -631,7 +631,8 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, R.layout.status_bar_notification_keyguard_overflow, mStackScroller, false); mKeyguardIconOverflowContainer.setOnActivatedListener(this); mKeyguardCarrierLabel = mStatusBarWindow.findViewById(R.id.keyguard_carrier_text); mKeyguardIconOverflowContainer.setOnClickListener(mOverflowClickListener); // TODO: Comment in when transition is ready. //mKeyguardIconOverflowContainer.setOnClickListener(mOverflowClickListener); mStackScroller.addView(mKeyguardIconOverflowContainer); mExpandedContents = mStackScroller; Loading Loading @@ -2990,6 +2991,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, setBarState(StatusBarState.SHADE); if (mLeaveOpenOnKeyguardHide) { mLeaveOpenOnKeyguardHide = false; mNotificationPanel.animateNextTopPaddingChange(); } else { instantCollapseNotificationPanel(); } Loading Loading @@ -3176,6 +3178,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, mLeaveOpenOnKeyguardHide = true; showBouncer(); } else if (mStatusBarKeyguardViewManager.isSecure()) { mNotificationPanel.animateNextTopPaddingChange(); setBarState(StatusBarState.SHADE_LOCKED); updateKeyguardState(); } else { Loading @@ -3195,10 +3198,6 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, } } public boolean isExpandedVisible() { return mExpandedVisible; } public static boolean inBounds(View view, MotionEvent event, boolean orAbove) { final int[] location = new int[2]; view.getLocationInWindow(location); Loading