67 lines
2.9 KiB
Java
67 lines
2.9 KiB
Java
package com.discord.views.calls;
|
|
|
|
import android.content.Context;
|
|
import android.util.AttributeSet;
|
|
import android.view.LayoutInflater;
|
|
import android.widget.ImageView;
|
|
import android.widget.TextView;
|
|
import androidx.cardview.widget.CardView;
|
|
import c.a.i.m3;
|
|
import com.discord.views.VoiceUserView;
|
|
import d0.z.d.m;
|
|
import rx.Subscription;
|
|
/* compiled from: StageCallSpeakerView.kt */
|
|
public final class StageCallSpeakerView extends CardView {
|
|
public final m3 i;
|
|
public Subscription j;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public StageCallSpeakerView(Context context, AttributeSet attributeSet) {
|
|
super(context, attributeSet, 0);
|
|
m.checkNotNullParameter(context, "context");
|
|
LayoutInflater.from(context).inflate(2131558824, this);
|
|
int i = 2131365104;
|
|
VoiceUserView voiceUserView = (VoiceUserView) findViewById(2131365104);
|
|
if (voiceUserView != null) {
|
|
i = 2131365105;
|
|
ImageView imageView = (ImageView) findViewById(2131365105);
|
|
if (imageView != null) {
|
|
i = 2131365107;
|
|
ImageView imageView2 = (ImageView) findViewById(2131365107);
|
|
if (imageView2 != null) {
|
|
i = 2131365108;
|
|
ImageView imageView3 = (ImageView) findViewById(2131365108);
|
|
if (imageView3 != null) {
|
|
i = 2131365109;
|
|
ImageView imageView4 = (ImageView) findViewById(2131365109);
|
|
if (imageView4 != null) {
|
|
i = 2131365110;
|
|
TextView textView = (TextView) findViewById(2131365110);
|
|
if (textView != null) {
|
|
i = 2131365111;
|
|
SpeakerPulseView speakerPulseView = (SpeakerPulseView) findViewById(2131365111);
|
|
if (speakerPulseView != null) {
|
|
m3 m3Var = new m3(this, voiceUserView, imageView, imageView2, imageView3, imageView4, textView, speakerPulseView);
|
|
m.checkNotNullExpressionValue(m3Var, "ViewStageChannelSpeakerB…ater.from(context), this)");
|
|
this.i = m3Var;
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
throw new NullPointerException("Missing required view with ID: ".concat(getResources().getResourceName(i)));
|
|
}
|
|
|
|
@Override // android.view.View, android.view.ViewGroup
|
|
public void onDetachedFromWindow() {
|
|
super.onDetachedFromWindow();
|
|
Subscription subscription = this.j;
|
|
if (subscription != null) {
|
|
subscription.unsubscribe();
|
|
}
|
|
}
|
|
}
|