discord-jadx/app/src/main/java/com/discord/views/JoinVoiceChannelButton.java

41 lines
1.3 KiB
Java

package com.discord.views;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import androidx.annotation.StringRes;
import c.a.d.o;
import com.google.android.material.button.MaterialButton;
import d0.z.d.m;
/* compiled from: JoinVoiceChannelButton.kt */
public final class JoinVoiceChannelButton extends MaterialButton {
/* compiled from: JoinVoiceChannelButton.kt */
public static final class a implements View.OnClickListener {
public final /* synthetic */ MaterialButton i;
public final /* synthetic */ int j;
public a(MaterialButton materialButton, int i) {
this.i = materialButton;
this.j = i;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
o.g(this.i.getContext(), this.j, 0, null, 12);
}
}
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public JoinVoiceChannelButton(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
m.checkNotNullParameter(context, "context");
setText(2131887505);
}
public final void a(MaterialButton materialButton, @StringRes int i) {
materialButton.setAlpha(0.3f);
materialButton.setOnClickListener(new a(materialButton, i));
}
}