package com.discord.views; import android.content.Context; import android.view.LayoutInflater; import android.widget.ImageView; import android.widget.TextView; import androidx.annotation.ColorInt; import androidx.constraintlayout.widget.ConstraintLayout; import c.a.i.r3; import com.discord.utilities.view.extensions.ViewExtensions; import d0.z.d.m; /* compiled from: ToolbarTitleLayout.kt */ public final class ToolbarTitleLayout extends ConstraintLayout { public final r3 i; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public ToolbarTitleLayout(Context context) { super(context); m.checkNotNullParameter(context, "context"); LayoutInflater.from(getContext()).inflate(2131558829, this); int i = 2131365436; ImageView imageView = (ImageView) findViewById(2131365436); if (imageView != null) { i = 2131365437; StatusView statusView = (StatusView) findViewById(2131365437); if (statusView != null) { i = 2131365438; TextView textView = (TextView) findViewById(2131365438); if (textView != null) { i = 2131365439; TextView textView2 = (TextView) findViewById(2131365439); if (textView2 != null) { r3 r3Var = new r3(this, imageView, statusView, textView, textView2); m.checkNotNullExpressionValue(r3Var, "ViewToolbarTitleBinding.…ater.from(context), this)"); this.i = r3Var; return; } } } } throw new NullPointerException("Missing required view with ID: ".concat(getResources().getResourceName(i))); } public final TextView getTitle() { TextView textView = this.i.d; m.checkNotNullExpressionValue(textView, "binding.toolbarTitle"); return textView; } public final void setSubtitle(CharSequence charSequence) { TextView textView = this.i.e; m.checkNotNullExpressionValue(textView, "binding.toolbarTitleSubtext"); ViewExtensions.setTextAndVisibilityBy(textView, charSequence); } public final void setTitleColor(@ColorInt int i) { this.i.d.setTextColor(i); } }