discord-jadx/app/src/main/java/b/a/a/f/a/d.java

148 lines
5.6 KiB
Java
Raw Normal View History

2021-12-21 23:37:30 +00:00
package b.a.a.f.a;
2021-08-10 21:50:53 +00:00
import android.content.Context;
2022-04-04 20:51:55 +00:00
import b.a.d.d0;
2021-08-10 21:50:53 +00:00
import com.discord.rtcconnection.audio.DiscordAudioManager;
import com.discord.stores.StoreAudioManagerV2;
import com.discord.stores.StoreStream;
import com.discord.utilities.rx.ObservableExtensionsKt;
2021-11-08 18:25:28 +00:00
import d0.z.d.m;
2021-08-10 21:50:53 +00:00
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import rx.Observable;
/* compiled from: AudioOutputSelectionDialogViewModel.kt */
2022-03-02 20:59:20 +00:00
/* loaded from: classes.dex */
2022-04-04 20:51:55 +00:00
public final class d extends d0<a> {
2021-12-17 22:03:14 +00:00
public final StoreAudioManagerV2 j;
2021-08-10 21:50:53 +00:00
/* compiled from: AudioOutputSelectionDialogViewModel.kt */
2022-03-02 20:59:20 +00:00
/* loaded from: classes.dex */
2021-08-10 21:50:53 +00:00
public static abstract class a {
/* compiled from: AudioOutputSelectionDialogViewModel.kt */
2021-12-21 23:37:30 +00:00
/* renamed from: b.a.a.f.a.d$a$a reason: collision with other inner class name */
2022-03-02 20:59:20 +00:00
/* loaded from: classes.dex */
2022-03-15 17:00:47 +00:00
public static final class C0024a extends a {
2021-08-10 21:50:53 +00:00
public final DiscordAudioManager.DeviceTypes a;
2021-12-21 23:37:30 +00:00
/* renamed from: b reason: collision with root package name */
2022-03-15 17:00:47 +00:00
public final boolean f48b;
2021-12-21 23:37:30 +00:00
public final String c;
2021-08-10 21:50:53 +00:00
public final boolean d;
public final boolean e;
public final boolean f;
2022-03-02 20:59:20 +00:00
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
2022-03-15 17:00:47 +00:00
public C0024a(DiscordAudioManager.DeviceTypes deviceTypes, boolean z2, String str, boolean z3, boolean z4, boolean z5) {
2021-08-10 21:50:53 +00:00
super(null);
m.checkNotNullParameter(deviceTypes, "selectedAudioOutput");
this.a = deviceTypes;
2022-03-15 17:00:47 +00:00
this.f48b = z2;
2021-12-21 23:37:30 +00:00
this.c = str;
2021-08-10 21:50:53 +00:00
this.d = z3;
this.e = z4;
this.f = z5;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
2022-03-15 17:00:47 +00:00
if (!(obj instanceof C0024a)) {
2021-08-10 21:50:53 +00:00
return false;
}
2022-03-15 17:00:47 +00:00
C0024a aVar = (C0024a) obj;
return m.areEqual(this.a, aVar.a) && this.f48b == aVar.f48b && m.areEqual(this.c, aVar.c) && this.d == aVar.d && this.e == aVar.e && this.f == aVar.f;
2021-08-10 21:50:53 +00:00
}
public int hashCode() {
DiscordAudioManager.DeviceTypes deviceTypes = this.a;
int i = 0;
int hashCode = (deviceTypes != null ? deviceTypes.hashCode() : 0) * 31;
2022-03-15 17:00:47 +00:00
boolean z2 = this.f48b;
2021-08-10 21:50:53 +00:00
int i2 = 1;
if (z2) {
z2 = true;
}
int i3 = z2 ? 1 : 0;
int i4 = z2 ? 1 : 0;
int i5 = z2 ? 1 : 0;
int i6 = (hashCode + i3) * 31;
2021-12-21 23:37:30 +00:00
String str = this.c;
2021-08-10 21:50:53 +00:00
if (str != null) {
i = str.hashCode();
}
int i7 = (i6 + i) * 31;
boolean z3 = this.d;
if (z3) {
z3 = true;
}
int i8 = z3 ? 1 : 0;
int i9 = z3 ? 1 : 0;
int i10 = z3 ? 1 : 0;
int i11 = (i7 + i8) * 31;
boolean z4 = this.e;
if (z4) {
z4 = true;
}
int i12 = z4 ? 1 : 0;
int i13 = z4 ? 1 : 0;
int i14 = z4 ? 1 : 0;
int i15 = (i11 + i12) * 31;
boolean z5 = this.f;
if (!z5) {
i2 = z5 ? 1 : 0;
}
return i15 + i2;
}
public String toString() {
2022-03-30 16:43:10 +00:00
StringBuilder R = b.d.b.a.a.R("Loaded(selectedAudioOutput=");
R.append(this.a);
R.append(", showBluetoothItem=");
R.append(this.f48b);
R.append(", bluetoothDeviceName=");
R.append(this.c);
R.append(", showSpeakerItem=");
R.append(this.d);
R.append(", showWiredItem=");
R.append(this.e);
R.append(", showEarpieceItem=");
return b.d.b.a.a.M(R, this.f, ")");
2021-08-10 21:50:53 +00:00
}
}
/* compiled from: AudioOutputSelectionDialogViewModel.kt */
2022-03-02 20:59:20 +00:00
/* loaded from: classes.dex */
2021-08-10 21:50:53 +00:00
public static final class b extends a {
public static final b a = new b();
public b() {
super(null);
}
}
public a() {
}
public a(DefaultConstructorMarker defaultConstructorMarker) {
}
}
public d() {
this(null, null, 3);
}
2022-03-02 20:59:20 +00:00
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
2021-08-10 21:50:53 +00:00
public d(StoreAudioManagerV2 storeAudioManagerV2, Observable observable, int i) {
super(a.b.a);
StoreAudioManagerV2 audioManagerV2 = (i & 1) != 0 ? StoreStream.Companion.getAudioManagerV2() : null;
Observable<StoreAudioManagerV2.State> observeAudioManagerState = (i & 2) != 0 ? audioManagerV2.observeAudioManagerState() : null;
m.checkNotNullParameter(audioManagerV2, "storeAudioManager");
m.checkNotNullParameter(observeAudioManagerState, "storeStateObservable");
2021-12-17 22:03:14 +00:00
this.j = audioManagerV2;
2021-08-10 21:50:53 +00:00
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(ObservableExtensionsKt.computationLatest(observeAudioManagerState), this, null, 2, null), d.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new c(this), 62, (Object) null);
}
}