mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
57 lines
2.2 KiB
Java
57 lines
2.2 KiB
Java
package androidx.appcompat.widget;
|
|
|
|
import android.content.res.TypedArray;
|
|
import android.text.InputFilter;
|
|
import android.text.method.TransformationMethod;
|
|
import android.util.AttributeSet;
|
|
import android.widget.TextView;
|
|
import androidx.appcompat.R;
|
|
import androidx.emoji2.viewsintegration.EmojiTextViewHelper;
|
|
|
|
/* loaded from: classes.dex */
|
|
class AppCompatEmojiTextHelper {
|
|
private final EmojiTextViewHelper mEmojiTextViewHelper;
|
|
private final TextView mView;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public AppCompatEmojiTextHelper(TextView textView) {
|
|
this.mView = textView;
|
|
this.mEmojiTextViewHelper = new EmojiTextViewHelper(textView, false);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public void loadFromAttributes(AttributeSet attributeSet, int i) {
|
|
TypedArray obtainStyledAttributes = this.mView.getContext().obtainStyledAttributes(attributeSet, R.styleable.AppCompatTextView, i, 0);
|
|
try {
|
|
boolean z = obtainStyledAttributes.hasValue(R.styleable.AppCompatTextView_emojiCompatEnabled) ? obtainStyledAttributes.getBoolean(R.styleable.AppCompatTextView_emojiCompatEnabled, true) : true;
|
|
obtainStyledAttributes.recycle();
|
|
setEnabled(z);
|
|
} catch (Throwable th) {
|
|
obtainStyledAttributes.recycle();
|
|
throw th;
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public void setEnabled(boolean z) {
|
|
this.mEmojiTextViewHelper.setEnabled(z);
|
|
}
|
|
|
|
public boolean isEnabled() {
|
|
return this.mEmojiTextViewHelper.isEnabled();
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public InputFilter[] getFilters(InputFilter[] inputFilterArr) {
|
|
return this.mEmojiTextViewHelper.getFilters(inputFilterArr);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public void setAllCaps(boolean z) {
|
|
this.mEmojiTextViewHelper.setAllCaps(z);
|
|
}
|
|
|
|
public TransformationMethod wrapTransformationMethod(TransformationMethod transformationMethod) {
|
|
return this.mEmojiTextViewHelper.wrapTransformationMethod(transformationMethod);
|
|
}
|
|
}
|