Commit 6788a830 by ibaker Committed by Oliver Woodman

Use -Float.MAX_VALUE for Cue#DIMEN_UNSET

Float.MIN_VALUE is very close to zero:

PiperOrigin-RevId: 276674142
parent 6aa792aa
......@@ -32,7 +32,8 @@ public class Cue {
public static final Cue EMPTY = new Cue("");
/** An unset position or width. */
public static final float DIMEN_UNSET = Float.MIN_VALUE;
// Note: We deliberately don't use Float.MIN_VALUE because it's positive & very close to zero.
public static final float DIMEN_UNSET = -Float.MAX_VALUE;
/**
* The type of anchor, which may be unset. One of {@link #TYPE_UNSET}, {@link #ANCHOR_TYPE_START},
......
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