am c37db9c0: Merge "Fix layout and invalidate in SubtitleView" into klp-dev
* commit 'c37db9c0de1038d043051401c2c55a8d0a57f373': Fix layout and invalidate in SubtitleView
This commit is contained in:
@@ -180,7 +180,9 @@ public class SubtitleView extends View {
|
||||
mInnerPaddingX = (int) (size * INNER_PADDING_RATIO + 0.5f);
|
||||
|
||||
mHasMeasurements = false;
|
||||
forceLayout();
|
||||
|
||||
requestLayout();
|
||||
invalidate();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -189,7 +191,9 @@ public class SubtitleView extends View {
|
||||
mTextPaint.setTypeface(typeface);
|
||||
|
||||
mHasMeasurements = false;
|
||||
forceLayout();
|
||||
|
||||
requestLayout();
|
||||
invalidate();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -198,7 +202,9 @@ public class SubtitleView extends View {
|
||||
mAlignment = textAlignment;
|
||||
|
||||
mHasMeasurements = false;
|
||||
forceLayout();
|
||||
|
||||
requestLayout();
|
||||
invalidate();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user