package w1;

import android.text.Layout;

/* JADX INFO: loaded from: classes.dex */
public final class g {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public String f18273a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public int f18274b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public boolean f18275c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public int f18276d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public boolean f18277e;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public float f18282k;

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    public String f18283l;

    /* JADX INFO: renamed from: o, reason: collision with root package name */
    public Layout.Alignment f18286o;

    /* JADX INFO: renamed from: p, reason: collision with root package name */
    public Layout.Alignment f18287p;

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    public C1696b f18289r;

    /* JADX INFO: renamed from: t, reason: collision with root package name */
    public String f18291t;

    /* JADX INFO: renamed from: u, reason: collision with root package name */
    public String f18292u;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public int f18278f = -1;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public int f18279g = -1;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public int f18280h = -1;
    public int i = -1;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public int f18281j = -1;

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public int f18284m = -1;

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public int f18285n = -1;

    /* JADX INFO: renamed from: q, reason: collision with root package name */
    public int f18288q = -1;

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public float f18290s = Float.MAX_VALUE;

    public final void a(g gVar) {
        int i;
        Layout.Alignment alignment;
        Layout.Alignment alignment2;
        String str;
        if (gVar != null) {
            if (!this.f18275c && gVar.f18275c) {
                this.f18274b = gVar.f18274b;
                this.f18275c = true;
            }
            if (this.f18280h == -1) {
                this.f18280h = gVar.f18280h;
            }
            if (this.i == -1) {
                this.i = gVar.i;
            }
            if (this.f18273a == null && (str = gVar.f18273a) != null) {
                this.f18273a = str;
            }
            if (this.f18278f == -1) {
                this.f18278f = gVar.f18278f;
            }
            if (this.f18279g == -1) {
                this.f18279g = gVar.f18279g;
            }
            if (this.f18285n == -1) {
                this.f18285n = gVar.f18285n;
            }
            if (this.f18286o == null && (alignment2 = gVar.f18286o) != null) {
                this.f18286o = alignment2;
            }
            if (this.f18287p == null && (alignment = gVar.f18287p) != null) {
                this.f18287p = alignment;
            }
            if (this.f18288q == -1) {
                this.f18288q = gVar.f18288q;
            }
            if (this.f18281j == -1) {
                this.f18281j = gVar.f18281j;
                this.f18282k = gVar.f18282k;
            }
            if (this.f18289r == null) {
                this.f18289r = gVar.f18289r;
            }
            if (this.f18290s == Float.MAX_VALUE) {
                this.f18290s = gVar.f18290s;
            }
            if (this.f18291t == null) {
                this.f18291t = gVar.f18291t;
            }
            if (this.f18292u == null) {
                this.f18292u = gVar.f18292u;
            }
            if (!this.f18277e && gVar.f18277e) {
                this.f18276d = gVar.f18276d;
                this.f18277e = true;
            }
            if (this.f18284m != -1 || (i = gVar.f18284m) == -1) {
                return;
            }
            this.f18284m = i;
        }
    }
}
