Loading packages/SystemUI/src/com/android/systemui/statusbar/NotificationContentView.java +3 −0 Original line number Diff line number Diff line Loading @@ -244,6 +244,9 @@ public class NotificationContentView extends FrameLayout { public void notifyContentUpdated() { selectLayout(false /* animate */, true /* force */); if (mContractedChild != null) { mContractedWrapper.setDark(mDark, false /* animate */, 0 /* delay */); } } public boolean isContentExpandable() { Loading packages/SystemUI/src/com/android/systemui/statusbar/NotificationCustomViewWrapper.java +4 −8 Original line number Diff line number Diff line Loading @@ -27,7 +27,6 @@ import com.android.systemui.statusbar.phone.NotificationPanelView; public class NotificationCustomViewWrapper extends NotificationViewWrapper { private final ViewInvertHelper mInvertHelper; private boolean mDark; protected NotificationCustomViewWrapper(View view) { super(view); Loading @@ -36,8 +35,6 @@ public class NotificationCustomViewWrapper extends NotificationViewWrapper { @Override public void setDark(boolean dark, boolean fade, long delay) { if (mDark != dark) { mDark = dark; if (fade) { mInvertHelper.fade(dark, delay); } else { Loading @@ -45,4 +42,3 @@ public class NotificationCustomViewWrapper extends NotificationViewWrapper { } } } } packages/SystemUI/src/com/android/systemui/statusbar/NotificationMediaViewWrapper.java +2 −7 Original line number Diff line number Diff line Loading @@ -24,19 +24,14 @@ import android.view.View; */ public class NotificationMediaViewWrapper extends NotificationTemplateViewWrapper { private boolean mDark; protected NotificationMediaViewWrapper(Context ctx, View view) { super(ctx, view); } @Override public void setDark(boolean dark, boolean fade, long delay) { if (mDark != dark) { mDark = dark; // Only update the large icon, because the rest is already inverted. setPictureGrayscale(dark, fade, delay); } } } packages/SystemUI/src/com/android/systemui/statusbar/NotificationTemplateViewWrapper.java +14 −19 Original line number Diff line number Diff line Loading @@ -51,8 +51,6 @@ public class NotificationTemplateViewWrapper extends NotificationViewWrapper { private final int mIconBackgroundDarkColor; private final Interpolator mLinearOutSlowInInterpolator; private boolean mDark; protected NotificationTemplateViewWrapper(Context ctx, View view) { super(view); mIconDarkAlpha = ctx.getResources().getInteger(R.integer.doze_small_icon_alpha); Loading Loading @@ -95,8 +93,6 @@ public class NotificationTemplateViewWrapper extends NotificationViewWrapper { @Override public void setDark(boolean dark, boolean fade, long delay) { if (mDark != dark) { mDark = dark; if (mInvertHelper != null) { if (fade) { mInvertHelper.fade(dark, delay); Loading @@ -115,7 +111,6 @@ public class NotificationTemplateViewWrapper extends NotificationViewWrapper { } setPictureGrayscale(dark, fade, delay); } } protected void setPictureGrayscale(boolean grayscale, boolean fade, long delay) { if (mPicture != null) { Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/NotificationContentView.java +3 −0 Original line number Diff line number Diff line Loading @@ -244,6 +244,9 @@ public class NotificationContentView extends FrameLayout { public void notifyContentUpdated() { selectLayout(false /* animate */, true /* force */); if (mContractedChild != null) { mContractedWrapper.setDark(mDark, false /* animate */, 0 /* delay */); } } public boolean isContentExpandable() { Loading
packages/SystemUI/src/com/android/systemui/statusbar/NotificationCustomViewWrapper.java +4 −8 Original line number Diff line number Diff line Loading @@ -27,7 +27,6 @@ import com.android.systemui.statusbar.phone.NotificationPanelView; public class NotificationCustomViewWrapper extends NotificationViewWrapper { private final ViewInvertHelper mInvertHelper; private boolean mDark; protected NotificationCustomViewWrapper(View view) { super(view); Loading @@ -36,8 +35,6 @@ public class NotificationCustomViewWrapper extends NotificationViewWrapper { @Override public void setDark(boolean dark, boolean fade, long delay) { if (mDark != dark) { mDark = dark; if (fade) { mInvertHelper.fade(dark, delay); } else { Loading @@ -45,4 +42,3 @@ public class NotificationCustomViewWrapper extends NotificationViewWrapper { } } } }
packages/SystemUI/src/com/android/systemui/statusbar/NotificationMediaViewWrapper.java +2 −7 Original line number Diff line number Diff line Loading @@ -24,19 +24,14 @@ import android.view.View; */ public class NotificationMediaViewWrapper extends NotificationTemplateViewWrapper { private boolean mDark; protected NotificationMediaViewWrapper(Context ctx, View view) { super(ctx, view); } @Override public void setDark(boolean dark, boolean fade, long delay) { if (mDark != dark) { mDark = dark; // Only update the large icon, because the rest is already inverted. setPictureGrayscale(dark, fade, delay); } } }
packages/SystemUI/src/com/android/systemui/statusbar/NotificationTemplateViewWrapper.java +14 −19 Original line number Diff line number Diff line Loading @@ -51,8 +51,6 @@ public class NotificationTemplateViewWrapper extends NotificationViewWrapper { private final int mIconBackgroundDarkColor; private final Interpolator mLinearOutSlowInInterpolator; private boolean mDark; protected NotificationTemplateViewWrapper(Context ctx, View view) { super(view); mIconDarkAlpha = ctx.getResources().getInteger(R.integer.doze_small_icon_alpha); Loading Loading @@ -95,8 +93,6 @@ public class NotificationTemplateViewWrapper extends NotificationViewWrapper { @Override public void setDark(boolean dark, boolean fade, long delay) { if (mDark != dark) { mDark = dark; if (mInvertHelper != null) { if (fade) { mInvertHelper.fade(dark, delay); Loading @@ -115,7 +111,6 @@ public class NotificationTemplateViewWrapper extends NotificationViewWrapper { } setPictureGrayscale(dark, fade, delay); } } protected void setPictureGrayscale(boolean grayscale, boolean fade, long delay) { if (mPicture != null) { Loading