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:
Mindy Pereira
2010-10-19 17:36:01 -07:00
parent 218bf88446
commit 6fbc5d9c19
2 changed files with 8 additions and 0 deletions

View File

@@ -551,6 +551,10 @@ public class HorizontalScrollView extends FrameLayout {
mEdgeGlowLeft.onRelease();
}
}
if (mEdgeGlowLeft != null
&& (!mEdgeGlowLeft.isFinished() || !mEdgeGlowRight.isFinished())) {
invalidate();
}
}
}
break;

View File

@@ -546,6 +546,10 @@ public class ScrollView extends FrameLayout {
mEdgeGlowTop.onRelease();
}
}
if (mEdgeGlowTop != null
&& (!mEdgeGlowTop.isFinished() || !mEdgeGlowBottom.isFinished())) {
invalidate();
}
}
}
break;