Skip to content

Commit

Permalink
Fix the position of IntDef annotations on fields in the UI module
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 481150758
  • Loading branch information
icbaker authored and marcbaechinger committed Oct 20, 2022
1 parent 026699b commit 871a5e6
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ void onAspectRatioUpdated(
@Nullable private AspectRatioListener aspectRatioListener;

private float videoAspectRatio;
@ResizeMode private int resizeMode;
private @ResizeMode int resizeMode;

public AspectRatioFrameLayout(Context context) {
this(context, /* attrs= */ null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ public void onBitmap(final Bitmap bitmap) {
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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,17 @@
@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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ void update(

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;
Expand Down

0 comments on commit 871a5e6

Please sign in to comment.