mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Add @Dimension annotation to SubtitleView size methods
PiperOrigin-RevId: 291943185
This commit is contained in:
parent
658e0e17b8
commit
e15989ffff
1 changed files with 2 additions and 1 deletions
|
|
@ -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 {
|
||||||
* @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) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue