Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b8a0057d authored by Alan Viverette's avatar Alan Viverette
Browse files

Fix layout and invalidate in SubtitleView

BUG: 11138745
Change-Id: If216dc1c68b6aaef3ad41ae30f488b140d4676d6
parent 888022cf
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -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();
        }
    }