title: setColorFilter is deprecated on API29
body: <p>I use the following line to change the color of a VectorDrawable:</p>
  
  <p><code>mydrawable.getBackground().setColorFilter(color, PorterDuff.Mode.SRC_ATOP)</code></p>
  
  <p>This works nice, though it is now deprecated. The documentation suggests that I use:</p>
  
  <p><code>mydrawable.getBackground().setColorFilter(new BlendModeColorFilter(color, PorterDuff.Mode.SRC_ATOP))</code></p>
  
  <p>Though, <code>BlendModeColorFilter</code> is only available on API29. After examining the source of the deprecated method, I have realized that it calls:</p>
  
  <p><code>new PorterDuffColorFilter()</code></p>
  
  <p>So, I went ahead and used:</p>
  
  <p><code>mydrawable.getBackground().setColorFilter(new PorterDuffColorFilter(color, PorterDuff.Mode.SRC_ATOP))</code></p>
  
  <p>The coloring worked. Is this the right replacement for the deprecated method or I must use BlendModeColorFilter on API29?</p>
  
  <p>Thank you.</p>