63 lines
2.6 KiB
Java
63 lines
2.6 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.i3;
|
||
|
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 i3 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(2131558814, this);
|
||
|
int i = 2131364987;
|
||
|
VoiceUserView voiceUserView = (VoiceUserView) findViewById(2131364987);
|
||
|
if (voiceUserView != null) {
|
||
|
i = 2131364988;
|
||
|
ImageView imageView = (ImageView) findViewById(2131364988);
|
||
|
if (imageView != null) {
|
||
|
i = 2131364990;
|
||
|
ImageView imageView2 = (ImageView) findViewById(2131364990);
|
||
|
if (imageView2 != null) {
|
||
|
i = 2131364991;
|
||
|
ImageView imageView3 = (ImageView) findViewById(2131364991);
|
||
|
if (imageView3 != null) {
|
||
|
i = 2131364992;
|
||
|
TextView textView = (TextView) findViewById(2131364992);
|
||
|
if (textView != null) {
|
||
|
i = 2131364993;
|
||
|
SpeakerPulseView speakerPulseView = (SpeakerPulseView) findViewById(2131364993);
|
||
|
if (speakerPulseView != null) {
|
||
|
i3 i3Var = new i3(this, voiceUserView, imageView, imageView2, imageView3, textView, speakerPulseView);
|
||
|
m.checkNotNullExpressionValue(i3Var, "ViewStageChannelSpeakerB…ater.from(context), this)");
|
||
|
this.i = i3Var;
|
||
|
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();
|
||
|
}
|
||
|
}
|
||
|
}
|