Loading core/java/android/view/View.java +10 −11 Original line number Diff line number Diff line Loading @@ -21142,6 +21142,11 @@ public class View implements Drawable.Callback, KeyEvent.Callback, if (isHorizontalScrollBarEnabled() || isVerticalScrollBarEnabled()) { if (invalidate) { // Invalidate to show the scrollbars postInvalidateOnAnimation(); } if (scrollCache.state == ScrollabilityCache.OFF) { // FIXME: this is copied from WindowManagerService. // We should get this value from the system when it Loading @@ -21157,18 +21162,12 @@ public class View implements Drawable.Callback, KeyEvent.Callback, scrollCache.state = ScrollabilityCache.ON; // Schedule our fader to run if it's not already scheduled if (!scrollCache.fadeScrollBarsScheduled) { if (invalidate) { // Invalidate to show the scrollbars postInvalidateOnAnimation(); } if (mAttachInfo != null) { if (!scrollCache.fadeScrollBarsScheduled && mAttachInfo != null) { final Handler handler = mAttachInfo.mHandler; scrollCache.handler = handler; scrollCache.fadeScrollBarsScheduled = true; handler.postAtTime(scrollCache, fadeStartTime); } } return true; } Loading
core/java/android/view/View.java +10 −11 Original line number Diff line number Diff line Loading @@ -21142,6 +21142,11 @@ public class View implements Drawable.Callback, KeyEvent.Callback, if (isHorizontalScrollBarEnabled() || isVerticalScrollBarEnabled()) { if (invalidate) { // Invalidate to show the scrollbars postInvalidateOnAnimation(); } if (scrollCache.state == ScrollabilityCache.OFF) { // FIXME: this is copied from WindowManagerService. // We should get this value from the system when it Loading @@ -21157,18 +21162,12 @@ public class View implements Drawable.Callback, KeyEvent.Callback, scrollCache.state = ScrollabilityCache.ON; // Schedule our fader to run if it's not already scheduled if (!scrollCache.fadeScrollBarsScheduled) { if (invalidate) { // Invalidate to show the scrollbars postInvalidateOnAnimation(); } if (mAttachInfo != null) { if (!scrollCache.fadeScrollBarsScheduled && mAttachInfo != null) { final Handler handler = mAttachInfo.mHandler; scrollCache.handler = handler; scrollCache.fadeScrollBarsScheduled = true; handler.postAtTime(scrollCache, fadeStartTime); } } return true; }