Don\'t verify the scrollbar drawable
am: a53c3b2197
* commit 'a53c3b2197b73d5b6a697ae2077e04065df84d9e':
Don't verify the scrollbar drawable
This commit is contained in:
@@ -16937,8 +16937,10 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
|
|||||||
*/
|
*/
|
||||||
@CallSuper
|
@CallSuper
|
||||||
protected boolean verifyDrawable(Drawable who) {
|
protected boolean verifyDrawable(Drawable who) {
|
||||||
return who == mBackground || (mScrollCache != null && mScrollCache.scrollBar == who)
|
// Avoid verifying the scroll bar drawable so that we don't end up in
|
||||||
|| (mForegroundInfo != null && mForegroundInfo.mDrawable == who);
|
// an invalidation loop. This effectively prevents the scroll bar
|
||||||
|
// drawable from triggering invalidations and scheduling runnables.
|
||||||
|
return who == mBackground || (mForegroundInfo != null && mForegroundInfo.mDrawable == who);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user