title: Vector drawable crashing on recycler view but working fine on activity
body: <p>I have added vector drawable in  my app, and its working fine in activity. </p>
  
  <pre><code>ivTeam.setImageDrawable(ContextCompat.getDrawable(this,R.drawable.ic_home_team))
  </code></pre>
  
  <p>but when i execute the same code from recycler adapter which is in a fragment, it crashes and gives following error message.</p>
  
  <blockquote>
    <p>android.content.res.Resources$NotFoundException: File
    res/drawable/test.xml from drawable resource ID #0x7f122e</p>
  </blockquote>
  
  <p>I am passing activity reference to adapter, and also tried following static block.  </p>
  
  <pre><code>static {
      AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);
  }
  </code></pre>
  
  <p>but nothing seems to be working here, i am on androidX, and added following in my my gradle file.</p>
  
  <pre><code>    vectorDrawables.useSupportLibrary = true
  </code></pre>
  
  <p><strong>Gradle Version:</strong></p>
  
  <pre><code>    classpath 'com.android.tools.build:gradle:3.4.1'        
  </code></pre>