package c.b.f;

import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.widget.TextView;

/* JADX INFO: compiled from: AppCompatEmojiTextHelper.java */
/* JADX INFO: loaded from: classes.dex */
public class p {
    public final TextView a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final c.j.b.f f928b;

    public p(TextView textView) {
        this.a = textView;
        this.f928b = new c.j.b.f(textView, false);
    }

    public void a(AttributeSet attributeSet, int i2) {
        TypedArray typedArrayObtainStyledAttributes = this.a.getContext().obtainStyledAttributes(attributeSet, c.b.b.f540i, i2, 0);
        try {
            boolean z = typedArrayObtainStyledAttributes.hasValue(14) ? typedArrayObtainStyledAttributes.getBoolean(14, true) : true;
            typedArrayObtainStyledAttributes.recycle();
            b(z);
        } catch (Throwable th) {
            typedArrayObtainStyledAttributes.recycle();
            throw th;
        }
    }

    public void b(boolean z) {
        this.f928b.a.c(z);
    }
}
