Loading packages/SystemUI/src/com/android/systemui/statusbar/ActivatableNotificationView.java +4 −0 Original line number Original line Diff line number Diff line Loading @@ -744,6 +744,7 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView } } if (!mWasCancelled) { if (!mWasCancelled) { enableAppearDrawing(false); enableAppearDrawing(false); onAppearAnimationFinished(isAppearing); } } } } Loading @@ -760,6 +761,9 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView mAppearAnimator.start(); mAppearAnimator.start(); } } protected void onAppearAnimationFinished(boolean wasAppearing) { } private void cancelAppearAnimation() { private void cancelAppearAnimation() { if (mAppearAnimator != null) { if (mAppearAnimator != null) { mAppearAnimator.cancel(); mAppearAnimator.cancel(); Loading packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java +19 −2 Original line number Original line Diff line number Diff line Loading @@ -598,7 +598,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView { } } private NotificationHeaderView getVisibleNotificationHeader() { private NotificationHeaderView getVisibleNotificationHeader() { if (mIsSummaryWithChildren) { if (mIsSummaryWithChildren && !mShowingPublic) { return mChildrenContainer.getHeaderView(); return mChildrenContainer.getHeaderView(); } } return getShowingLayout().getVisibleNotificationHeader(); return getShowingLayout().getVisibleNotificationHeader(); Loading Loading @@ -1442,12 +1442,29 @@ public class ExpandableNotificationRow extends ActivatableNotificationView { @Override @Override protected View getContentView() { protected View getContentView() { if (mIsSummaryWithChildren) { if (mIsSummaryWithChildren && !mShowingPublic) { return mChildrenContainer; return mChildrenContainer; } } return getShowingLayout(); return getShowingLayout(); } } @Override protected void onAppearAnimationFinished(boolean wasAppearing) { super.onAppearAnimationFinished(wasAppearing); if (wasAppearing) { // During the animation the visible view might have changed, so let's make sure all // alphas are reset if (mChildrenContainer != null) { mChildrenContainer.setAlpha(1.0f); mChildrenContainer.setLayerType(LAYER_TYPE_NONE, null); } mPrivateLayout.setAlpha(1.0f); mPrivateLayout.setLayerType(LAYER_TYPE_NONE, null); mPublicLayout.setAlpha(1.0f); mPublicLayout.setLayerType(LAYER_TYPE_NONE, null); } } @Override @Override public int getExtraBottomPadding() { public int getExtraBottomPadding() { if (mIsSummaryWithChildren && isGroupExpanded()) { if (mIsSummaryWithChildren && isGroupExpanded()) { Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/ActivatableNotificationView.java +4 −0 Original line number Original line Diff line number Diff line Loading @@ -744,6 +744,7 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView } } if (!mWasCancelled) { if (!mWasCancelled) { enableAppearDrawing(false); enableAppearDrawing(false); onAppearAnimationFinished(isAppearing); } } } } Loading @@ -760,6 +761,9 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView mAppearAnimator.start(); mAppearAnimator.start(); } } protected void onAppearAnimationFinished(boolean wasAppearing) { } private void cancelAppearAnimation() { private void cancelAppearAnimation() { if (mAppearAnimator != null) { if (mAppearAnimator != null) { mAppearAnimator.cancel(); mAppearAnimator.cancel(); Loading
packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java +19 −2 Original line number Original line Diff line number Diff line Loading @@ -598,7 +598,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView { } } private NotificationHeaderView getVisibleNotificationHeader() { private NotificationHeaderView getVisibleNotificationHeader() { if (mIsSummaryWithChildren) { if (mIsSummaryWithChildren && !mShowingPublic) { return mChildrenContainer.getHeaderView(); return mChildrenContainer.getHeaderView(); } } return getShowingLayout().getVisibleNotificationHeader(); return getShowingLayout().getVisibleNotificationHeader(); Loading Loading @@ -1442,12 +1442,29 @@ public class ExpandableNotificationRow extends ActivatableNotificationView { @Override @Override protected View getContentView() { protected View getContentView() { if (mIsSummaryWithChildren) { if (mIsSummaryWithChildren && !mShowingPublic) { return mChildrenContainer; return mChildrenContainer; } } return getShowingLayout(); return getShowingLayout(); } } @Override protected void onAppearAnimationFinished(boolean wasAppearing) { super.onAppearAnimationFinished(wasAppearing); if (wasAppearing) { // During the animation the visible view might have changed, so let's make sure all // alphas are reset if (mChildrenContainer != null) { mChildrenContainer.setAlpha(1.0f); mChildrenContainer.setLayerType(LAYER_TYPE_NONE, null); } mPrivateLayout.setAlpha(1.0f); mPrivateLayout.setLayerType(LAYER_TYPE_NONE, null); mPublicLayout.setAlpha(1.0f); mPublicLayout.setLayerType(LAYER_TYPE_NONE, null); } } @Override @Override public int getExtraBottomPadding() { public int getExtraBottomPadding() { if (mIsSummaryWithChildren && isGroupExpanded()) { if (mIsSummaryWithChildren && isGroupExpanded()) { Loading