package defpackage;

import android.graphics.drawable.Drawable;
import android.text.TextUtils;
import java.util.ArrayList;

/* JADX INFO: loaded from: classes.dex */
public class j7 {
    public final long a;
    public Drawable b;
    public CharSequence c;
    public CharSequence d;
    public final ArrayList e;

    public j7(long j) {
        this(j, "", null);
    }

    public final void a(int i) {
        this.e.add(Integer.valueOf(i));
    }

    public final String toString() {
        StringBuilder sb = new StringBuilder();
        if (!TextUtils.isEmpty(this.c)) {
            sb.append(this.c);
        }
        if (!TextUtils.isEmpty(this.d)) {
            if (!TextUtils.isEmpty(this.c)) {
                sb.append(" ");
            }
            sb.append(this.d);
        }
        if (this.b != null && sb.length() == 0) {
            sb.append("(action icon)");
        }
        return sb.toString();
    }

    public j7(long j, String str, String str2) {
        this.a = -1L;
        this.e = new ArrayList();
        this.a = j;
        this.c = str;
        this.d = str2;
        this.b = null;
    }
}
