Merge "Doze: Better handling for non-default templates." into lmp-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
03ada9901e
@@ -211,6 +211,7 @@ public class NotificationContentView extends FrameLayout {
|
||||
private void setImageViewDark(boolean dark, boolean fade, int imageViewId) {
|
||||
// TODO: implement fade
|
||||
final ImageView v = (ImageView) mContractedChild.findViewById(imageViewId);
|
||||
if (v == null) return;
|
||||
final Drawable d = v.getBackground();
|
||||
if (dark) {
|
||||
v.setLayerType(LAYER_TYPE_HARDWARE, INVERT_PAINT);
|
||||
|
||||
Reference in New Issue
Block a user