Loading packages/SystemUI/src/com/android/systemui/statusbar/tablet/NotificationPanel.java +8 −3 Original line number Original line Diff line number Diff line Loading @@ -320,7 +320,7 @@ public class NotificationPanel extends RelativeLayout implements StatusBarPanel, if (mNotificationCount == 0) { if (mNotificationCount == 0) { end += mContentFrameMissingTranslation; end += mContentFrameMissingTranslation; } } start = (y < (HYPERSPACE_OFFRAMP+end)) ? y : (HYPERSPACE_OFFRAMP+end); start = HYPERSPACE_OFFRAMP+end; } else { } else { start = y; start = y; end = y + HYPERSPACE_OFFRAMP; end = y + HYPERSPACE_OFFRAMP; Loading @@ -336,10 +336,15 @@ public class NotificationPanel extends RelativeLayout implements StatusBarPanel, mContentAnim.cancel(); mContentAnim.cancel(); } } Animator fadeAnim = ObjectAnimator.ofFloat(mContentParent, "alpha", mContentParent.getAlpha(), appearing ? 1.0f : 0.0f); fadeAnim.setInterpolator(appearing ? new android.view.animation.AccelerateInterpolator(2.0f) : new android.view.animation.DecelerateInterpolator(2.0f)); mContentAnim = new AnimatorSet(); mContentAnim = new AnimatorSet(); mContentAnim mContentAnim .play(ObjectAnimator.ofFloat(mContentParent, "alpha", .play(fadeAnim) mContentParent.getAlpha(), appearing ? 1.0f : 0.0f)) .with(bgAnim) .with(bgAnim) .with(posAnim) .with(posAnim) ; ; Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/tablet/NotificationPanel.java +8 −3 Original line number Original line Diff line number Diff line Loading @@ -320,7 +320,7 @@ public class NotificationPanel extends RelativeLayout implements StatusBarPanel, if (mNotificationCount == 0) { if (mNotificationCount == 0) { end += mContentFrameMissingTranslation; end += mContentFrameMissingTranslation; } } start = (y < (HYPERSPACE_OFFRAMP+end)) ? y : (HYPERSPACE_OFFRAMP+end); start = HYPERSPACE_OFFRAMP+end; } else { } else { start = y; start = y; end = y + HYPERSPACE_OFFRAMP; end = y + HYPERSPACE_OFFRAMP; Loading @@ -336,10 +336,15 @@ public class NotificationPanel extends RelativeLayout implements StatusBarPanel, mContentAnim.cancel(); mContentAnim.cancel(); } } Animator fadeAnim = ObjectAnimator.ofFloat(mContentParent, "alpha", mContentParent.getAlpha(), appearing ? 1.0f : 0.0f); fadeAnim.setInterpolator(appearing ? new android.view.animation.AccelerateInterpolator(2.0f) : new android.view.animation.DecelerateInterpolator(2.0f)); mContentAnim = new AnimatorSet(); mContentAnim = new AnimatorSet(); mContentAnim mContentAnim .play(ObjectAnimator.ofFloat(mContentParent, "alpha", .play(fadeAnim) mContentParent.getAlpha(), appearing ? 1.0f : 0.0f)) .with(bgAnim) .with(bgAnim) .with(posAnim) .with(posAnim) ; ; Loading