Loading packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java +9 −5 Original line number Original line Diff line number Diff line Loading @@ -41,6 +41,7 @@ import android.widget.Chronometer; import android.widget.ImageView; import android.widget.ImageView; import android.widget.RemoteViews; import android.widget.RemoteViews; import com.android.internal.util.NotificationColorUtil; import com.android.systemui.R; import com.android.systemui.R; import com.android.systemui.classifier.FalsingManager; import com.android.systemui.classifier.FalsingManager; import com.android.systemui.statusbar.notification.HybridNotificationView; import com.android.systemui.statusbar.notification.HybridNotificationView; Loading Loading @@ -103,6 +104,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView { private int mMaxExpandHeight; private int mMaxExpandHeight; private int mHeadsUpHeight; private int mHeadsUpHeight; private View mVetoButton; private View mVetoButton; private int mNotificationColor; private boolean mClearable; private boolean mClearable; private ExpansionLogger mLogger; private ExpansionLogger mLogger; private String mLoggingKey; private String mLoggingKey; Loading Loading @@ -226,6 +228,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView { mPrivateLayout.onNotificationUpdated(entry); mPrivateLayout.onNotificationUpdated(entry); mPublicLayout.onNotificationUpdated(entry); mPublicLayout.onNotificationUpdated(entry); mShowingPublicInitialized = false; mShowingPublicInitialized = false; updateNotificationColor(); updateClearability(); updateClearability(); if (mIsSummaryWithChildren) { if (mIsSummaryWithChildren) { recreateNotificationHeader(); recreateNotificationHeader(); Loading Loading @@ -603,11 +606,12 @@ public class ExpandableNotificationRow extends ActivatableNotificationView { } } public int getNotificationColor() { public int getNotificationColor() { int color = getStatusBarNotification().getNotification().color; return mNotificationColor; if (color == Notification.COLOR_DEFAULT) { return mContext.getColor(com.android.internal.R.color.notification_icon_default_color); } } return color; private void updateNotificationColor() { mNotificationColor = NotificationColorUtil.resolveContrastColor(mContext, getStatusBarNotification().getNotification().color); } } public HybridNotificationView getSingleLineView() { public HybridNotificationView getSingleLineView() { Loading packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationChildrenContainer.java +5 −0 Original line number Original line Diff line number Diff line Loading @@ -663,6 +663,11 @@ public class NotificationChildrenContainer extends ViewGroup { addView(divider, index); addView(divider, index); mDividers.set(i, divider); mDividers.set(i, divider); } } removeView(mOverflowNumber); mOverflowNumber = null; mOverflowInvertHelper = null; mGroupOverFlowState = null; updateGroupOverflow(); } } public void setUserLocked(boolean userLocked) { public void setUserLocked(boolean userLocked) { Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java +9 −5 Original line number Original line Diff line number Diff line Loading @@ -41,6 +41,7 @@ import android.widget.Chronometer; import android.widget.ImageView; import android.widget.ImageView; import android.widget.RemoteViews; import android.widget.RemoteViews; import com.android.internal.util.NotificationColorUtil; import com.android.systemui.R; import com.android.systemui.R; import com.android.systemui.classifier.FalsingManager; import com.android.systemui.classifier.FalsingManager; import com.android.systemui.statusbar.notification.HybridNotificationView; import com.android.systemui.statusbar.notification.HybridNotificationView; Loading Loading @@ -103,6 +104,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView { private int mMaxExpandHeight; private int mMaxExpandHeight; private int mHeadsUpHeight; private int mHeadsUpHeight; private View mVetoButton; private View mVetoButton; private int mNotificationColor; private boolean mClearable; private boolean mClearable; private ExpansionLogger mLogger; private ExpansionLogger mLogger; private String mLoggingKey; private String mLoggingKey; Loading Loading @@ -226,6 +228,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView { mPrivateLayout.onNotificationUpdated(entry); mPrivateLayout.onNotificationUpdated(entry); mPublicLayout.onNotificationUpdated(entry); mPublicLayout.onNotificationUpdated(entry); mShowingPublicInitialized = false; mShowingPublicInitialized = false; updateNotificationColor(); updateClearability(); updateClearability(); if (mIsSummaryWithChildren) { if (mIsSummaryWithChildren) { recreateNotificationHeader(); recreateNotificationHeader(); Loading Loading @@ -603,11 +606,12 @@ public class ExpandableNotificationRow extends ActivatableNotificationView { } } public int getNotificationColor() { public int getNotificationColor() { int color = getStatusBarNotification().getNotification().color; return mNotificationColor; if (color == Notification.COLOR_DEFAULT) { return mContext.getColor(com.android.internal.R.color.notification_icon_default_color); } } return color; private void updateNotificationColor() { mNotificationColor = NotificationColorUtil.resolveContrastColor(mContext, getStatusBarNotification().getNotification().color); } } public HybridNotificationView getSingleLineView() { public HybridNotificationView getSingleLineView() { Loading
packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationChildrenContainer.java +5 −0 Original line number Original line Diff line number Diff line Loading @@ -663,6 +663,11 @@ public class NotificationChildrenContainer extends ViewGroup { addView(divider, index); addView(divider, index); mDividers.set(i, divider); mDividers.set(i, divider); } } removeView(mOverflowNumber); mOverflowNumber = null; mOverflowInvertHelper = null; mGroupOverFlowState = null; updateGroupOverflow(); } } public void setUserLocked(boolean userLocked) { public void setUserLocked(boolean userLocked) { Loading