@Test public void setColorFilter() { ColorFilter colorFilter = new ColorFilter(); badgeDrawable.setColorFilter(colorFilter); assertThat(badgeDrawable.getColorFilter(), is(colorFilter)); badgeDrawable.assertInvalidated(); badgeDrawable.setColorFilter(colorFilter); assertThat(badgeDrawable.getColorFilter(), is(colorFilter)); badgeDrawable.assertNotInvalidated(); badgeDrawable.setColorFilter(new ColorFilter()); assertThat(badgeDrawable.getColorFilter(), not(colorFilter)); badgeDrawable.assertInvalidated(); badgeDrawable.setColorFilter(null); assertThat(badgeDrawable.getColorFilter(), nullValue()); badgeDrawable.assertInvalidated(); }
@Override public void setColorFilter(@Nullable ColorFilter colorFilter) { if (this.colorFilter != colorFilter) { this.colorFilter = colorFilter; invalidateSelf(); } }
BadgeDrawable extends Drawable { @Override public void setColorFilter(@Nullable ColorFilter colorFilter) { if (this.colorFilter != colorFilter) { this.colorFilter = colorFilter; invalidateSelf(); } } }
BadgeDrawable extends Drawable { @Override public void setColorFilter(@Nullable ColorFilter colorFilter) { if (this.colorFilter != colorFilter) { this.colorFilter = colorFilter; invalidateSelf(); } }  }
BadgeDrawable extends Drawable { @Override public void setColorFilter(@Nullable ColorFilter colorFilter) { if (this.colorFilter != colorFilter) { this.colorFilter = colorFilter; invalidateSelf(); } }  @Override void setAlpha(@IntRange(from = 0, to = 255) int alpha); @Override int getAlpha(); @Override void setColorFilter(@Nullable ColorFilter colorFilter); @Override @Nullable ColorFilter getColorFilter(); @Override int getOpacity(); @Nullable @Override ConstantState getConstantState(); }
BadgeDrawable extends Drawable { @Override public void setColorFilter(@Nullable ColorFilter colorFilter) { if (this.colorFilter != colorFilter) { this.colorFilter = colorFilter; invalidateSelf(); } }  @Override void setAlpha(@IntRange(from = 0, to = 255) int alpha); @Override int getAlpha(); @Override void setColorFilter(@Nullable ColorFilter colorFilter); @Override @Nullable ColorFilter getColorFilter(); @Override int getOpacity(); @Nullable @Override ConstantState getConstantState();  }