Automated import from //branches/cupcake/...@142788,142788
This commit is contained in:
committed by
The Android Open Source Project
parent
2d548b56cd
commit
3661101005
@@ -1407,6 +1407,10 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
|
||||
}
|
||||
}
|
||||
|
||||
// Clear the flag as early as possible to allow draw() implementations
|
||||
// to call invalidate() successfully when doing animations
|
||||
child.mPrivateFlags |= DRAWN;
|
||||
|
||||
if (!concatMatrix && canvas.quickReject(cl, ct, cr, cb, Canvas.EdgeType.BW) &&
|
||||
(child.mPrivateFlags & DRAW_ANIMATION) == 0) {
|
||||
return more;
|
||||
@@ -1476,10 +1480,6 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
|
||||
}
|
||||
}
|
||||
|
||||
// Clear the flag as early as possible to allow draw() implementations
|
||||
// to call invalidate() successfully when doing animations
|
||||
child.mPrivateFlags |= DRAWN;
|
||||
|
||||
if (hasNoCache) {
|
||||
// Fast path for layouts with no backgrounds
|
||||
if ((child.mPrivateFlags & SKIP_DRAW) == SKIP_DRAW) {
|
||||
|
||||
@@ -1060,6 +1060,7 @@ public class ListView extends AbsListView {
|
||||
* UNSPECIFIED/AT_MOST modes, false otherwise.
|
||||
* @hide
|
||||
*/
|
||||
@ViewDebug.ExportedProperty
|
||||
protected boolean recycleOnMeasure() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -3359,12 +3359,16 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
|
||||
mPopup.update(this, getErrorX(), getErrorY(), -1, -1);
|
||||
}
|
||||
|
||||
restartMarqueeIfNeeded();
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
private void restartMarqueeIfNeeded() {
|
||||
if (mRestartMarquee && mEllipsize == TextUtils.TruncateAt.MARQUEE) {
|
||||
mRestartMarquee = false;
|
||||
startMarquee();
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -3674,6 +3678,8 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
|
||||
|
||||
@Override
|
||||
protected void onDraw(Canvas canvas) {
|
||||
restartMarqueeIfNeeded();
|
||||
|
||||
// Draw the background for this view
|
||||
super.onDraw(canvas);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user