Merge "Correctly handle opaque fading views Bug #3475554" into honeycomb-mr1

This commit is contained in:
Romain Guy
2011-03-08 14:49:54 -08:00
committed by Android (Google) Code Review
2 changed files with 3 additions and 3 deletions

View File

@@ -3680,7 +3680,7 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
// flag coming from the child that initiated the invalidate
if (view != null) {
if ((view.mViewFlags & FADING_EDGE_MASK) != 0 &&
view.getSolidColor() == 0 && !view.isOpaque()) {
view.getSolidColor() == 0) {
opaqueFlag = DIRTY;
}
if ((view.mPrivateFlags & DIRTY_MASK) != DIRTY) {

View File

@@ -477,8 +477,7 @@ public class HorizontalScrollView extends FrameLayout {
break;
case MotionEvent.ACTION_POINTER_DOWN: {
final int index = ev.getActionIndex();
final float x = ev.getX(index);
mLastMotionX = x;
mLastMotionX = ev.getX(index);
mActivePointerId = ev.getPointerId(index);
break;
}
@@ -1446,6 +1445,7 @@ public class HorizontalScrollView extends FrameLayout {
super.setOverScrollMode(mode);
}
@SuppressWarnings({"SuspiciousNameCombination"})
@Override
public void draw(Canvas canvas) {
super.draw(canvas);