Commit e15989ff by ibaker Committed by Oliver Woodman

Add @Dimension annotation to SubtitleView size methods

PiperOrigin-RevId: 291943185
parent 658e0e17
...@@ -26,6 +26,7 @@ import android.util.TypedValue; ...@@ -26,6 +26,7 @@ import android.util.TypedValue;
import android.view.View; import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
import android.view.accessibility.CaptioningManager; import android.view.accessibility.CaptioningManager;
import androidx.annotation.Dimension;
import androidx.annotation.IntDef; import androidx.annotation.IntDef;
import androidx.annotation.Nullable; import androidx.annotation.Nullable;
import com.google.android.exoplayer2.text.CaptionStyleCompat; import com.google.android.exoplayer2.text.CaptionStyleCompat;
...@@ -157,7 +158,7 @@ public final class SubtitleView extends ViewGroup implements TextOutput { ...@@ -157,7 +158,7 @@ public final class SubtitleView extends ViewGroup implements TextOutput {
* @param unit The desired dimension unit. * @param unit The desired dimension unit.
* @param size The desired size in the given units. * @param size The desired size in the given units.
*/ */
public void setFixedTextSize(int unit, float size) { public void setFixedTextSize(@Dimension int unit, float size) {
Context context = getContext(); Context context = getContext();
Resources resources; Resources resources;
if (context == null) { if (context == null) {
......
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