Don\'t verify the scrollbar drawable am: a53c3b2197 am: ca6b87fea6

am: c8ef3f8730

* commit 'c8ef3f8730d20541e8f01f500c380fa09aa3853c':
  Don't verify the scrollbar drawable
This commit is contained in:
Alan Viverette
2016-01-15 00:21:22 +00:00
committed by android-build-merger

View File

@@ -17259,8 +17259,10 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
*/
@CallSuper
protected boolean verifyDrawable(Drawable who) {
return who == mBackground || (mScrollCache != null && mScrollCache.scrollBar == who)
|| (mForegroundInfo != null && mForegroundInfo.mDrawable == who);
// Avoid verifying the scroll bar drawable so that we don't end up in
// an invalidation loop. This effectively prevents the scroll bar
// drawable from triggering invalidations and scheduling runnables.
return who == mBackground || (mForegroundInfo != null && mForegroundInfo.mDrawable == who);
}
/**