Commit 871a5e68 by ibaker Committed by Marc Baechinger

Fix the position of IntDef annotations on fields in the UI module

PiperOrigin-RevId: 481150758
parent 026699ba
......@@ -95,7 +95,7 @@ public final class AspectRatioFrameLayout extends FrameLayout {
@Nullable private AspectRatioListener aspectRatioListener;
private float videoAspectRatio;
@ResizeMode private int resizeMode;
private @ResizeMode int resizeMode;
public AspectRatioFrameLayout(Context context) {
this(context, /* attrs= */ null);
......
......@@ -37,7 +37,7 @@ import java.util.List;
private final List<SubtitlePainter> painters;
private List<Cue> cues;
@Cue.TextSizeType private int textSizeType;
private @Cue.TextSizeType int textSizeType;
private float textSize;
private CaptionStyleCompat style;
private float bottomPaddingFraction;
......
......@@ -93,7 +93,7 @@ public final class CaptionStyleCompat {
* <li>{@link #EDGE_TYPE_DEPRESSED}
* </ul>
*/
@EdgeType public final int edgeType;
public final @EdgeType int edgeType;
/** The preferred edge color, if using an edge type other than {@link #EDGE_TYPE_NONE}. */
public final int edgeColor;
......
......@@ -705,7 +705,7 @@ public class PlayerNotificationManager {
private int color;
@DrawableRes private int smallIconResourceId;
private int visibility;
@Priority private int priority;
private @Priority int priority;
private boolean useChronometer;
@Nullable private String groupKey;
......
......@@ -67,17 +67,17 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
@Nullable private Alignment cueTextAlignment;
@Nullable private Bitmap cueBitmap;
private float cueLine;
@Cue.LineType private int cueLineType;
@Cue.AnchorType private int cueLineAnchor;
private @Cue.LineType int cueLineType;
private @Cue.AnchorType int cueLineAnchor;
private float cuePosition;
@Cue.AnchorType private int cuePositionAnchor;
private @Cue.AnchorType int cuePositionAnchor;
private float cueSize;
private float cueBitmapHeight;
private int foregroundColor;
private int backgroundColor;
private int windowColor;
private int edgeColor;
@CaptionStyleCompat.EdgeType private int edgeType;
private @CaptionStyleCompat.EdgeType int edgeType;
private float defaultTextSizePx;
private float cueTextSizePx;
private float bottomPaddingFraction;
......
......@@ -118,7 +118,7 @@ public final class SubtitleView extends FrameLayout {
private List<Cue> cues;
private CaptionStyleCompat style;
@Cue.TextSizeType private int defaultTextSizeType;
private @Cue.TextSizeType int defaultTextSizeType;
private float defaultTextSize;
private float bottomPaddingFraction;
private boolean applyEmbeddedStyles;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment