title: Android RatingBar: getProgressDrawable doesn't cast to right Class
body: <p>I am using </p>
  
  <p><a href="https://stackoverflow.com/questions/2446270/android-ratingbar-change-star-colors">Android RatingBar change star colors</a></p>
  
  <p>This line of code</p>
  
  <pre><code>    LayerDrawable stars = (LayerDrawable) rating_bar.getProgressDrawable();
  </code></pre>
  
  <p>works fine on my Nexus 4 emulator API v21.
  When trying the same code on my Galaxy S4 API v19, I get the following error message:</p>
  
  <pre><code> Caused by: java.lang.ClassCastException: android.support.v7.internal.widget.TintDrawableWrapper cannot be cast to android.graphics.drawable.LayerDrawable
  </code></pre>
  
  <p>What is happening?</p>
  
  <p>I am building with the latest build tools 22, my target API is 22 is as well. </p>