DO NOT MERGE. Make sure to invalidate after pulling on an edgeglow.
Fixes b/3111778 overscroll glitch in news & weather Change-Id: Ic255da1f7c4301ea3980acc4fa033c9f17a60dac
This commit is contained in:
@@ -551,6 +551,10 @@ public class HorizontalScrollView extends FrameLayout {
|
||||
mEdgeGlowLeft.onRelease();
|
||||
}
|
||||
}
|
||||
if (mEdgeGlowLeft != null
|
||||
&& (!mEdgeGlowLeft.isFinished() || !mEdgeGlowRight.isFinished())) {
|
||||
invalidate();
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -546,6 +546,10 @@ public class ScrollView extends FrameLayout {
|
||||
mEdgeGlowTop.onRelease();
|
||||
}
|
||||
}
|
||||
if (mEdgeGlowTop != null
|
||||
&& (!mEdgeGlowTop.isFinished() || !mEdgeGlowBottom.isFinished())) {
|
||||
invalidate();
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user