package androidx.appcompat.widget; import android.annotation.SuppressLint; import android.content.Context; import android.content.res.ColorStateList; import android.graphics.PorterDuff; import android.graphics.Typeface; import android.graphics.drawable.Drawable; import android.os.Build; import android.text.InputFilter; import android.util.AttributeSet; import android.view.ActionMode; import android.view.inputmethod.EditorInfo; import android.view.inputmethod.InputConnection; import android.view.inputmethod.InputMethodManager; import android.view.inspector.PropertyMapper; import android.view.inspector.PropertyReader; import android.view.textclassifier.TextClassifier; import android.widget.TextView; import androidx.annotation.DrawableRes; import androidx.annotation.FloatRange; import androidx.annotation.IntRange; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.annotation.Px; import androidx.annotation.RequiresApi; import androidx.annotation.RestrictTo; import androidx.annotation.UiThread; import androidx.appcompat.R; import androidx.appcompat.content.res.AppCompatResources; import androidx.core.graphics.TypefaceCompat; import androidx.core.text.PrecomputedTextCompat; import androidx.core.view.TintableBackgroundView; import androidx.core.widget.AutoSizeableTextView; import androidx.core.widget.TextViewCompat; import androidx.core.widget.TintableCompoundDrawablesView; import java.util.concurrent.ExecutionException; import java.util.concurrent.Future; import java.util.function.IntFunction; /* loaded from: classes.dex */ public class AppCompatTextView extends TextView implements TintableBackgroundView, TintableCompoundDrawablesView, AutoSizeableTextView, EmojiCompatConfigurationView { private final AppCompatBackgroundHelper mBackgroundTintHelper; @NonNull private AppCompatEmojiTextHelper mEmojiTextViewHelper; private boolean mIsSetTypefaceProcessing; @Nullable private Future mPrecomputedTextFuture; @Nullable private SuperCaller mSuperCaller; private final AppCompatTextClassifierHelper mTextClassifierHelper; private final AppCompatTextHelper mTextHelper; public interface SuperCaller { int getAutoSizeMaxTextSize(); int getAutoSizeMinTextSize(); int getAutoSizeStepGranularity(); int[] getAutoSizeTextAvailableSizes(); int getAutoSizeTextType(); TextClassifier getTextClassifier(); void setAutoSizeTextTypeUniformWithConfiguration(int i, int i2, int i3, int i4); void setAutoSizeTextTypeUniformWithPresetSizes(int[] iArr, int i); void setAutoSizeTextTypeWithDefaults(int i); void setFirstBaselineToTopHeight(@Px int i); void setLastBaselineToBottomHeight(@Px int i); void setLineHeight(int i, @FloatRange(from = 0.0d) float f); void setTextClassifier(@Nullable TextClassifier textClassifier); } @RequiresApi(29) @RestrictTo({RestrictTo.Scope.LIBRARY}) public final class InspectionCompanion implements android.view.inspector.InspectionCompanion { private int mAutoSizeMaxTextSizeId; private int mAutoSizeMinTextSizeId; private int mAutoSizeStepGranularityId; private int mAutoSizeTextTypeId; private int mBackgroundTintId; private int mBackgroundTintModeId; private int mDrawableTintId; private int mDrawableTintModeId; private boolean mPropertiesMapped = false; public void mapProperties(@NonNull PropertyMapper propertyMapper) { int mapInt; int mapInt2; int mapInt3; int mapIntEnum; int mapObject; int mapObject2; int mapObject3; int mapObject4; mapInt = propertyMapper.mapInt("autoSizeMaxTextSize", R.attr.autoSizeMaxTextSize); this.mAutoSizeMaxTextSizeId = mapInt; mapInt2 = propertyMapper.mapInt("autoSizeMinTextSize", R.attr.autoSizeMinTextSize); this.mAutoSizeMinTextSizeId = mapInt2; mapInt3 = propertyMapper.mapInt("autoSizeStepGranularity", R.attr.autoSizeStepGranularity); this.mAutoSizeStepGranularityId = mapInt3; mapIntEnum = propertyMapper.mapIntEnum("autoSizeTextType", R.attr.autoSizeTextType, new IntFunction() { // from class: androidx.appcompat.widget.AppCompatTextView.InspectionCompanion.1 @Override // java.util.function.IntFunction public String apply(int i) { return i != 0 ? i != 1 ? String.valueOf(i) : "uniform" : "none"; } }); this.mAutoSizeTextTypeId = mapIntEnum; mapObject = propertyMapper.mapObject("backgroundTint", R.attr.backgroundTint); this.mBackgroundTintId = mapObject; mapObject2 = propertyMapper.mapObject("backgroundTintMode", R.attr.backgroundTintMode); this.mBackgroundTintModeId = mapObject2; mapObject3 = propertyMapper.mapObject("drawableTint", R.attr.drawableTint); this.mDrawableTintId = mapObject3; mapObject4 = propertyMapper.mapObject("drawableTintMode", R.attr.drawableTintMode); this.mDrawableTintModeId = mapObject4; this.mPropertiesMapped = true; } public void readProperties(@NonNull AppCompatTextView appCompatTextView, @NonNull PropertyReader propertyReader) { if (!this.mPropertiesMapped) { throw AppCompatAutoCompleteTextView$InspectionCompanion$$ExternalSyntheticApiModelOutline2.m(); } propertyReader.readInt(this.mAutoSizeMaxTextSizeId, appCompatTextView.getAutoSizeMaxTextSize()); propertyReader.readInt(this.mAutoSizeMinTextSizeId, appCompatTextView.getAutoSizeMinTextSize()); propertyReader.readInt(this.mAutoSizeStepGranularityId, appCompatTextView.getAutoSizeStepGranularity()); propertyReader.readIntEnum(this.mAutoSizeTextTypeId, appCompatTextView.getAutoSizeTextType()); propertyReader.readObject(this.mBackgroundTintId, appCompatTextView.getBackgroundTintList()); propertyReader.readObject(this.mBackgroundTintModeId, appCompatTextView.getBackgroundTintMode()); propertyReader.readObject(this.mDrawableTintId, appCompatTextView.getCompoundDrawableTintList()); propertyReader.readObject(this.mDrawableTintModeId, appCompatTextView.getCompoundDrawableTintMode()); } } public AppCompatTextView(@NonNull Context context) { this(context, null); } public AppCompatTextView(@NonNull Context context, @Nullable AttributeSet attributeSet) { this(context, attributeSet, android.R.attr.textViewStyle); } public AppCompatTextView(@NonNull Context context, @Nullable AttributeSet attributeSet, int i) { super(TintContextWrapper.wrap(context), attributeSet, i); this.mIsSetTypefaceProcessing = false; this.mSuperCaller = null; ThemeUtils.checkAppCompatTheme(this, getContext()); AppCompatBackgroundHelper appCompatBackgroundHelper = new AppCompatBackgroundHelper(this); this.mBackgroundTintHelper = appCompatBackgroundHelper; appCompatBackgroundHelper.loadFromAttributes(attributeSet, i); AppCompatTextHelper appCompatTextHelper = new AppCompatTextHelper(this); this.mTextHelper = appCompatTextHelper; appCompatTextHelper.loadFromAttributes(attributeSet, i); appCompatTextHelper.applyCompoundDrawablesTints(); this.mTextClassifierHelper = new AppCompatTextClassifierHelper(this); getEmojiTextViewHelper().loadFromAttributes(attributeSet, i); } @NonNull private AppCompatEmojiTextHelper getEmojiTextViewHelper() { if (this.mEmojiTextViewHelper == null) { this.mEmojiTextViewHelper = new AppCompatEmojiTextHelper(this); } return this.mEmojiTextViewHelper; } @Override // android.view.View public void setBackgroundResource(@DrawableRes int i) { super.setBackgroundResource(i); AppCompatBackgroundHelper appCompatBackgroundHelper = this.mBackgroundTintHelper; if (appCompatBackgroundHelper != null) { appCompatBackgroundHelper.onSetBackgroundResource(i); } } @Override // android.view.View public void setBackgroundDrawable(@Nullable Drawable drawable) { super.setBackgroundDrawable(drawable); AppCompatBackgroundHelper appCompatBackgroundHelper = this.mBackgroundTintHelper; if (appCompatBackgroundHelper != null) { appCompatBackgroundHelper.onSetBackgroundDrawable(drawable); } } @Override // androidx.core.view.TintableBackgroundView @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX}) public void setSupportBackgroundTintList(@Nullable ColorStateList colorStateList) { AppCompatBackgroundHelper appCompatBackgroundHelper = this.mBackgroundTintHelper; if (appCompatBackgroundHelper != null) { appCompatBackgroundHelper.setSupportBackgroundTintList(colorStateList); } } @Override // androidx.core.view.TintableBackgroundView @Nullable @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX}) public ColorStateList getSupportBackgroundTintList() { AppCompatBackgroundHelper appCompatBackgroundHelper = this.mBackgroundTintHelper; if (appCompatBackgroundHelper != null) { return appCompatBackgroundHelper.getSupportBackgroundTintList(); } return null; } @Override // androidx.core.view.TintableBackgroundView @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX}) public void setSupportBackgroundTintMode(@Nullable PorterDuff.Mode mode) { AppCompatBackgroundHelper appCompatBackgroundHelper = this.mBackgroundTintHelper; if (appCompatBackgroundHelper != null) { appCompatBackgroundHelper.setSupportBackgroundTintMode(mode); } } @Override // androidx.core.view.TintableBackgroundView @Nullable @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX}) public PorterDuff.Mode getSupportBackgroundTintMode() { AppCompatBackgroundHelper appCompatBackgroundHelper = this.mBackgroundTintHelper; if (appCompatBackgroundHelper != null) { return appCompatBackgroundHelper.getSupportBackgroundTintMode(); } return null; } @Override // android.widget.TextView public void setTextAppearance(Context context, int i) { super.setTextAppearance(context, i); AppCompatTextHelper appCompatTextHelper = this.mTextHelper; if (appCompatTextHelper != null) { appCompatTextHelper.onSetTextAppearance(context, i); } } @Override // android.widget.TextView public void setFilters(@NonNull InputFilter[] inputFilterArr) { super.setFilters(getEmojiTextViewHelper().getFilters(inputFilterArr)); } @Override // android.widget.TextView public void setAllCaps(boolean z) { super.setAllCaps(z); getEmojiTextViewHelper().setAllCaps(z); } @Override // androidx.appcompat.widget.EmojiCompatConfigurationView public void setEmojiCompatEnabled(boolean z) { getEmojiTextViewHelper().setEnabled(z); } @Override // androidx.appcompat.widget.EmojiCompatConfigurationView public boolean isEmojiCompatEnabled() { return getEmojiTextViewHelper().isEnabled(); } @Override // android.widget.TextView, android.view.View public void drawableStateChanged() { super.drawableStateChanged(); AppCompatBackgroundHelper appCompatBackgroundHelper = this.mBackgroundTintHelper; if (appCompatBackgroundHelper != null) { appCompatBackgroundHelper.applySupportBackgroundTint(); } AppCompatTextHelper appCompatTextHelper = this.mTextHelper; if (appCompatTextHelper != null) { appCompatTextHelper.applyCompoundDrawablesTints(); } } @Override // android.widget.TextView, android.view.View public void onLayout(boolean z, int i, int i2, int i3, int i4) { super.onLayout(z, i, i2, i3, i4); AppCompatTextHelper appCompatTextHelper = this.mTextHelper; if (appCompatTextHelper != null) { appCompatTextHelper.onLayout(z, i, i2, i3, i4); } } @Override // android.widget.TextView public void setTextSize(int i, float f) { if (ViewUtils.SDK_LEVEL_SUPPORTS_AUTOSIZE) { super.setTextSize(i, f); return; } AppCompatTextHelper appCompatTextHelper = this.mTextHelper; if (appCompatTextHelper != null) { appCompatTextHelper.setTextSize(i, f); } } @Override // android.widget.TextView public void onTextChanged(CharSequence charSequence, int i, int i2, int i3) { super.onTextChanged(charSequence, i, i2, i3); AppCompatTextHelper appCompatTextHelper = this.mTextHelper; if (appCompatTextHelper == null || ViewUtils.SDK_LEVEL_SUPPORTS_AUTOSIZE || !appCompatTextHelper.isAutoSizeEnabled()) { return; } this.mTextHelper.autoSizeText(); } @Override // android.widget.TextView, androidx.core.widget.AutoSizeableTextView @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX}) public void setAutoSizeTextTypeWithDefaults(int i) { if (ViewUtils.SDK_LEVEL_SUPPORTS_AUTOSIZE) { getSuperCaller().setAutoSizeTextTypeWithDefaults(i); return; } AppCompatTextHelper appCompatTextHelper = this.mTextHelper; if (appCompatTextHelper != null) { appCompatTextHelper.setAutoSizeTextTypeWithDefaults(i); } } @Override // android.widget.TextView, androidx.core.widget.AutoSizeableTextView @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX}) public void setAutoSizeTextTypeUniformWithConfiguration(int i, int i2, int i3, int i4) throws IllegalArgumentException { if (ViewUtils.SDK_LEVEL_SUPPORTS_AUTOSIZE) { getSuperCaller().setAutoSizeTextTypeUniformWithConfiguration(i, i2, i3, i4); return; } AppCompatTextHelper appCompatTextHelper = this.mTextHelper; if (appCompatTextHelper != null) { appCompatTextHelper.setAutoSizeTextTypeUniformWithConfiguration(i, i2, i3, i4); } } @Override // android.widget.TextView, androidx.core.widget.AutoSizeableTextView @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX}) public void setAutoSizeTextTypeUniformWithPresetSizes(@NonNull int[] iArr, int i) throws IllegalArgumentException { if (ViewUtils.SDK_LEVEL_SUPPORTS_AUTOSIZE) { getSuperCaller().setAutoSizeTextTypeUniformWithPresetSizes(iArr, i); return; } AppCompatTextHelper appCompatTextHelper = this.mTextHelper; if (appCompatTextHelper != null) { appCompatTextHelper.setAutoSizeTextTypeUniformWithPresetSizes(iArr, i); } } @Override // android.widget.TextView, androidx.core.widget.AutoSizeableTextView @SuppressLint({"WrongConstant"}) @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX}) public int getAutoSizeTextType() { if (ViewUtils.SDK_LEVEL_SUPPORTS_AUTOSIZE) { return getSuperCaller().getAutoSizeTextType() == 1 ? 1 : 0; } AppCompatTextHelper appCompatTextHelper = this.mTextHelper; if (appCompatTextHelper != null) { return appCompatTextHelper.getAutoSizeTextType(); } return 0; } @Override // android.widget.TextView, androidx.core.widget.AutoSizeableTextView @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX}) public int getAutoSizeStepGranularity() { if (ViewUtils.SDK_LEVEL_SUPPORTS_AUTOSIZE) { return getSuperCaller().getAutoSizeStepGranularity(); } AppCompatTextHelper appCompatTextHelper = this.mTextHelper; if (appCompatTextHelper != null) { return appCompatTextHelper.getAutoSizeStepGranularity(); } return -1; } @Override // android.widget.TextView, androidx.core.widget.AutoSizeableTextView @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX}) public int getAutoSizeMinTextSize() { if (ViewUtils.SDK_LEVEL_SUPPORTS_AUTOSIZE) { return getSuperCaller().getAutoSizeMinTextSize(); } AppCompatTextHelper appCompatTextHelper = this.mTextHelper; if (appCompatTextHelper != null) { return appCompatTextHelper.getAutoSizeMinTextSize(); } return -1; } @Override // android.widget.TextView, androidx.core.widget.AutoSizeableTextView @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX}) public int getAutoSizeMaxTextSize() { if (ViewUtils.SDK_LEVEL_SUPPORTS_AUTOSIZE) { return getSuperCaller().getAutoSizeMaxTextSize(); } AppCompatTextHelper appCompatTextHelper = this.mTextHelper; if (appCompatTextHelper != null) { return appCompatTextHelper.getAutoSizeMaxTextSize(); } return -1; } @Override // android.widget.TextView, androidx.core.widget.AutoSizeableTextView @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX}) public int[] getAutoSizeTextAvailableSizes() { if (ViewUtils.SDK_LEVEL_SUPPORTS_AUTOSIZE) { return getSuperCaller().getAutoSizeTextAvailableSizes(); } AppCompatTextHelper appCompatTextHelper = this.mTextHelper; return appCompatTextHelper != null ? appCompatTextHelper.getAutoSizeTextAvailableSizes() : new int[0]; } @Override // android.widget.TextView, android.view.View public InputConnection onCreateInputConnection(EditorInfo editorInfo) { InputConnection onCreateInputConnection = super.onCreateInputConnection(editorInfo); this.mTextHelper.populateSurroundingTextIfNeeded(this, onCreateInputConnection, editorInfo); return AppCompatHintHelper.onCreateInputConnection(onCreateInputConnection, editorInfo, this); } @Override // android.widget.TextView public void setFirstBaselineToTopHeight(@IntRange(from = 0) @Px int i) { if (Build.VERSION.SDK_INT >= 28) { getSuperCaller().setFirstBaselineToTopHeight(i); } else { TextViewCompat.setFirstBaselineToTopHeight(this, i); } } @Override // android.widget.TextView public void setLastBaselineToBottomHeight(@IntRange(from = 0) @Px int i) { if (Build.VERSION.SDK_INT >= 28) { getSuperCaller().setLastBaselineToBottomHeight(i); } else { TextViewCompat.setLastBaselineToBottomHeight(this, i); } } @Override // android.widget.TextView public int getFirstBaselineToTopHeight() { return TextViewCompat.getFirstBaselineToTopHeight(this); } @Override // android.widget.TextView public int getLastBaselineToBottomHeight() { return TextViewCompat.getLastBaselineToBottomHeight(this); } @Override // android.widget.TextView public void setLineHeight(@IntRange(from = 0) @Px int i) { TextViewCompat.setLineHeight(this, i); } @Override // android.widget.TextView public void setLineHeight(int i, @FloatRange(from = 0.0d) float f) { if (Build.VERSION.SDK_INT >= 34) { getSuperCaller().setLineHeight(i, f); } else { TextViewCompat.setLineHeight(this, i, f); } } @Override // android.widget.TextView public void setCustomSelectionActionModeCallback(@Nullable ActionMode.Callback callback) { super.setCustomSelectionActionModeCallback(TextViewCompat.wrapCustomSelectionActionModeCallback(this, callback)); } @Override // android.widget.TextView @Nullable public ActionMode.Callback getCustomSelectionActionModeCallback() { return TextViewCompat.unwrapCustomSelectionActionModeCallback(super.getCustomSelectionActionModeCallback()); } @NonNull public PrecomputedTextCompat.Params getTextMetricsParamsCompat() { return TextViewCompat.getTextMetricsParams(this); } public void setTextMetricsParamsCompat(@NonNull PrecomputedTextCompat.Params params) { TextViewCompat.setTextMetricsParams(this, params); } public void setPrecomputedText(@NonNull PrecomputedTextCompat precomputedTextCompat) { TextViewCompat.setPrecomputedText(this, precomputedTextCompat); } private void consumeTextFutureAndSetBlocking() { Future future = this.mPrecomputedTextFuture; if (future != null) { try { this.mPrecomputedTextFuture = null; TextViewCompat.setPrecomputedText(this, future.get()); } catch (InterruptedException | ExecutionException unused) { } } } @Override // android.widget.TextView public CharSequence getText() { consumeTextFutureAndSetBlocking(); return super.getText(); } @Override // android.widget.TextView @RequiresApi(api = 26) public void setTextClassifier(@Nullable TextClassifier textClassifier) { AppCompatTextClassifierHelper appCompatTextClassifierHelper; if (Build.VERSION.SDK_INT >= 28 || (appCompatTextClassifierHelper = this.mTextClassifierHelper) == null) { getSuperCaller().setTextClassifier(textClassifier); } else { appCompatTextClassifierHelper.setTextClassifier(textClassifier); } } @Override // android.widget.TextView @NonNull @RequiresApi(api = 26) public TextClassifier getTextClassifier() { AppCompatTextClassifierHelper appCompatTextClassifierHelper; if (Build.VERSION.SDK_INT >= 28 || (appCompatTextClassifierHelper = this.mTextClassifierHelper) == null) { return getSuperCaller().getTextClassifier(); } return appCompatTextClassifierHelper.getTextClassifier(); } public void setTextFuture(@Nullable Future future) { this.mPrecomputedTextFuture = future; if (future != null) { requestLayout(); } } @Override // android.widget.TextView, android.view.View public void onMeasure(int i, int i2) { consumeTextFutureAndSetBlocking(); super.onMeasure(i, i2); } @Override // android.widget.TextView public void setCompoundDrawables(@Nullable Drawable drawable, @Nullable Drawable drawable2, @Nullable Drawable drawable3, @Nullable Drawable drawable4) { super.setCompoundDrawables(drawable, drawable2, drawable3, drawable4); AppCompatTextHelper appCompatTextHelper = this.mTextHelper; if (appCompatTextHelper != null) { appCompatTextHelper.onSetCompoundDrawables(); } } @Override // android.widget.TextView public void setCompoundDrawablesRelative(@Nullable Drawable drawable, @Nullable Drawable drawable2, @Nullable Drawable drawable3, @Nullable Drawable drawable4) { super.setCompoundDrawablesRelative(drawable, drawable2, drawable3, drawable4); AppCompatTextHelper appCompatTextHelper = this.mTextHelper; if (appCompatTextHelper != null) { appCompatTextHelper.onSetCompoundDrawables(); } } @Override // android.widget.TextView public void setCompoundDrawablesWithIntrinsicBounds(@Nullable Drawable drawable, @Nullable Drawable drawable2, @Nullable Drawable drawable3, @Nullable Drawable drawable4) { super.setCompoundDrawablesWithIntrinsicBounds(drawable, drawable2, drawable3, drawable4); AppCompatTextHelper appCompatTextHelper = this.mTextHelper; if (appCompatTextHelper != null) { appCompatTextHelper.onSetCompoundDrawables(); } } @Override // android.widget.TextView public void setCompoundDrawablesWithIntrinsicBounds(int i, int i2, int i3, int i4) { Context context = getContext(); setCompoundDrawablesWithIntrinsicBounds(i != 0 ? AppCompatResources.getDrawable(context, i) : null, i2 != 0 ? AppCompatResources.getDrawable(context, i2) : null, i3 != 0 ? AppCompatResources.getDrawable(context, i3) : null, i4 != 0 ? AppCompatResources.getDrawable(context, i4) : null); AppCompatTextHelper appCompatTextHelper = this.mTextHelper; if (appCompatTextHelper != null) { appCompatTextHelper.onSetCompoundDrawables(); } } @Override // android.widget.TextView public void setCompoundDrawablesRelativeWithIntrinsicBounds(@Nullable Drawable drawable, @Nullable Drawable drawable2, @Nullable Drawable drawable3, @Nullable Drawable drawable4) { super.setCompoundDrawablesRelativeWithIntrinsicBounds(drawable, drawable2, drawable3, drawable4); AppCompatTextHelper appCompatTextHelper = this.mTextHelper; if (appCompatTextHelper != null) { appCompatTextHelper.onSetCompoundDrawables(); } } @Override // android.widget.TextView public void setCompoundDrawablesRelativeWithIntrinsicBounds(int i, int i2, int i3, int i4) { Context context = getContext(); setCompoundDrawablesRelativeWithIntrinsicBounds(i != 0 ? AppCompatResources.getDrawable(context, i) : null, i2 != 0 ? AppCompatResources.getDrawable(context, i2) : null, i3 != 0 ? AppCompatResources.getDrawable(context, i3) : null, i4 != 0 ? AppCompatResources.getDrawable(context, i4) : null); AppCompatTextHelper appCompatTextHelper = this.mTextHelper; if (appCompatTextHelper != null) { appCompatTextHelper.onSetCompoundDrawables(); } } @Override // androidx.core.widget.TintableCompoundDrawablesView @Nullable @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX}) public ColorStateList getSupportCompoundDrawablesTintList() { return this.mTextHelper.getCompoundDrawableTintList(); } @Override // androidx.core.widget.TintableCompoundDrawablesView @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX}) public void setSupportCompoundDrawablesTintList(@Nullable ColorStateList colorStateList) { this.mTextHelper.setCompoundDrawableTintList(colorStateList); this.mTextHelper.applyCompoundDrawablesTints(); } @Override // androidx.core.widget.TintableCompoundDrawablesView @Nullable @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX}) public PorterDuff.Mode getSupportCompoundDrawablesTintMode() { return this.mTextHelper.getCompoundDrawableTintMode(); } @Override // androidx.core.widget.TintableCompoundDrawablesView @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX}) public void setSupportCompoundDrawablesTintMode(@Nullable PorterDuff.Mode mode) { this.mTextHelper.setCompoundDrawableTintMode(mode); this.mTextHelper.applyCompoundDrawablesTints(); } @Override // android.widget.TextView public void setTypeface(@Nullable Typeface typeface, int i) { if (this.mIsSetTypefaceProcessing) { return; } Typeface create = (typeface == null || i <= 0) ? null : TypefaceCompat.create(getContext(), typeface, i); this.mIsSetTypefaceProcessing = true; if (create != null) { typeface = create; } try { super.setTypeface(typeface, i); } finally { this.mIsSetTypefaceProcessing = false; } } @Override // android.view.View public void onDetachedFromWindow() { super.onDetachedFromWindow(); int i = Build.VERSION.SDK_INT; if (i < 30 || i >= 33 || !onCheckIsTextEditor()) { return; } ((InputMethodManager) getContext().getSystemService("input_method")).isActive(this); } @RequiresApi(api = 26) @UiThread public SuperCaller getSuperCaller() { if (this.mSuperCaller == null) { int i = Build.VERSION.SDK_INT; if (i >= 34) { this.mSuperCaller = new SuperCallerApi34(); } else if (i >= 28) { this.mSuperCaller = new SuperCallerApi28(); } else { this.mSuperCaller = new SuperCallerApi26(); } } return this.mSuperCaller; } @RequiresApi(api = 26) public class SuperCallerApi26 implements SuperCaller { @Override // androidx.appcompat.widget.AppCompatTextView.SuperCaller public void setFirstBaselineToTopHeight(int i) { } @Override // androidx.appcompat.widget.AppCompatTextView.SuperCaller public void setLastBaselineToBottomHeight(int i) { } @Override // androidx.appcompat.widget.AppCompatTextView.SuperCaller public void setLineHeight(int i, float f) { } public SuperCallerApi26() { } @Override // androidx.appcompat.widget.AppCompatTextView.SuperCaller public int getAutoSizeMaxTextSize() { return AppCompatTextView.super.getAutoSizeMaxTextSize(); } @Override // androidx.appcompat.widget.AppCompatTextView.SuperCaller public int getAutoSizeMinTextSize() { return AppCompatTextView.super.getAutoSizeMinTextSize(); } @Override // androidx.appcompat.widget.AppCompatTextView.SuperCaller public int getAutoSizeStepGranularity() { return AppCompatTextView.super.getAutoSizeStepGranularity(); } @Override // androidx.appcompat.widget.AppCompatTextView.SuperCaller public int[] getAutoSizeTextAvailableSizes() { return AppCompatTextView.super.getAutoSizeTextAvailableSizes(); } @Override // androidx.appcompat.widget.AppCompatTextView.SuperCaller public int getAutoSizeTextType() { return AppCompatTextView.super.getAutoSizeTextType(); } @Override // androidx.appcompat.widget.AppCompatTextView.SuperCaller public TextClassifier getTextClassifier() { return AppCompatTextView.super.getTextClassifier(); } @Override // androidx.appcompat.widget.AppCompatTextView.SuperCaller public void setAutoSizeTextTypeUniformWithConfiguration(int i, int i2, int i3, int i4) { AppCompatTextView.super.setAutoSizeTextTypeUniformWithConfiguration(i, i2, i3, i4); } @Override // androidx.appcompat.widget.AppCompatTextView.SuperCaller public void setAutoSizeTextTypeUniformWithPresetSizes(int[] iArr, int i) { AppCompatTextView.super.setAutoSizeTextTypeUniformWithPresetSizes(iArr, i); } @Override // androidx.appcompat.widget.AppCompatTextView.SuperCaller public void setAutoSizeTextTypeWithDefaults(int i) { AppCompatTextView.super.setAutoSizeTextTypeWithDefaults(i); } @Override // androidx.appcompat.widget.AppCompatTextView.SuperCaller public void setTextClassifier(@Nullable TextClassifier textClassifier) { AppCompatTextView.super.setTextClassifier(textClassifier); } } @RequiresApi(api = 28) public class SuperCallerApi28 extends SuperCallerApi26 { public SuperCallerApi28() { super(); } @Override // androidx.appcompat.widget.AppCompatTextView.SuperCallerApi26, androidx.appcompat.widget.AppCompatTextView.SuperCaller public void setFirstBaselineToTopHeight(@Px int i) { AppCompatTextView.super.setFirstBaselineToTopHeight(i); } @Override // androidx.appcompat.widget.AppCompatTextView.SuperCallerApi26, androidx.appcompat.widget.AppCompatTextView.SuperCaller public void setLastBaselineToBottomHeight(@Px int i) { AppCompatTextView.super.setLastBaselineToBottomHeight(i); } } @RequiresApi(api = 34) public class SuperCallerApi34 extends SuperCallerApi28 { public SuperCallerApi34() { super(); } @Override // androidx.appcompat.widget.AppCompatTextView.SuperCallerApi26, androidx.appcompat.widget.AppCompatTextView.SuperCaller public void setLineHeight(int i, float f) { AppCompatTextView.super.setLineHeight(i, f); } } }