Use -Float.MAX_VALUE for Cue#DIMEN_UNSET

Float.MIN_VALUE is very close to zero:

PiperOrigin-RevId: 276674142
This commit is contained in:
ibaker 2019-10-25 14:01:59 +01:00 committed by Oliver Woodman
parent 6aa792aad5
commit 6788a830da

View File

@ -32,7 +32,8 @@ public class Cue {
public static final Cue EMPTY = new Cue(""); public static final Cue EMPTY = new Cue("");
/** An unset position or width. */ /** 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}, * The type of anchor, which may be unset. One of {@link #TYPE_UNSET}, {@link #ANCHOR_TYPE_START},