package com.discord.stores; import android.content.Context; import com.discord.rtcconnection.audio.DiscordAudioManager; import com.discord.utilities.rx.ObservableExtensionsKt; import d0.z.d.m; import d0.z.d.o; import java.util.List; import kotlin.Unit; import kotlin.jvm.functions.Function0; import kotlin.jvm.functions.Function1; import rx.Observable; /* compiled from: StoreAudioManagerV2.kt */ public final class StoreAudioManagerV2$init$1 implements Runnable { public final /* synthetic */ StoreAudioManagerV2 this$0; /* compiled from: StoreAudioManagerV2.kt */ /* renamed from: com.discord.stores.StoreAudioManagerV2$init$1$1 reason: invalid class name */ public static final class AnonymousClass1 extends o implements Function1, Unit> { public final /* synthetic */ StoreAudioManagerV2$init$1 this$0; /* compiled from: StoreAudioManagerV2.kt */ /* renamed from: com.discord.stores.StoreAudioManagerV2$init$1$1$1 reason: invalid class name */ public static final class AnonymousClass1 extends o implements Function0 { public final /* synthetic */ List $it; public final /* synthetic */ AnonymousClass1 this$0; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public AnonymousClass1(AnonymousClass1 r1, List list) { super(0); this.this$0 = r1; this.$it = list; } @Override // kotlin.jvm.functions.Function0 /* renamed from: invoke */ public final void mo1invoke() { StoreAudioManagerV2.access$updateAudioDevices(this.this$0.this$0.this$0, this.$it); } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public AnonymousClass1(StoreAudioManagerV2$init$1 storeAudioManagerV2$init$1) { super(1); this.this$0 = storeAudioManagerV2$init$1; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(List list) { invoke((List) list); return Unit.a; } public final void invoke(List list) { m.checkNotNullParameter(list, "it"); StoreAudioManagerV2.access$getDispatcher$p(this.this$0.this$0).schedule(new AnonymousClass1(this, list)); } } /* compiled from: StoreAudioManagerV2.kt */ /* renamed from: com.discord.stores.StoreAudioManagerV2$init$1$2 reason: invalid class name */ public static final class AnonymousClass2 extends o implements Function1 { public final /* synthetic */ StoreAudioManagerV2$init$1 this$0; /* compiled from: StoreAudioManagerV2.kt */ /* renamed from: com.discord.stores.StoreAudioManagerV2$init$1$2$1 reason: invalid class name */ public static final class AnonymousClass1 extends o implements Function0 { public final /* synthetic */ DiscordAudioManager.DeviceTypes $it; public final /* synthetic */ AnonymousClass2 this$0; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public AnonymousClass1(AnonymousClass2 r1, DiscordAudioManager.DeviceTypes deviceTypes) { super(0); this.this$0 = r1; this.$it = deviceTypes; } @Override // kotlin.jvm.functions.Function0 /* renamed from: invoke */ public final void mo1invoke() { StoreAudioManagerV2.access$updateActiveAudioDevice(this.this$0.this$0.this$0, this.$it); } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public AnonymousClass2(StoreAudioManagerV2$init$1 storeAudioManagerV2$init$1) { super(1); this.this$0 = storeAudioManagerV2$init$1; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(DiscordAudioManager.DeviceTypes deviceTypes) { invoke(deviceTypes); return Unit.a; } public final void invoke(DiscordAudioManager.DeviceTypes deviceTypes) { m.checkNotNullParameter(deviceTypes, "it"); StoreAudioManagerV2.access$getDispatcher$p(this.this$0.this$0).schedule(new AnonymousClass1(this, deviceTypes)); } } public StoreAudioManagerV2$init$1(StoreAudioManagerV2 storeAudioManagerV2) { this.this$0 = storeAudioManagerV2; } @Override // java.lang.Runnable public final void run() { DiscordAudioManager discordAudioManager = DiscordAudioManager.d; Observable> r = DiscordAudioManager.d().r.r(); m.checkNotNullExpressionValue(r, "audioDevicesSubject.distinctUntilChanged()"); ObservableExtensionsKt.appSubscribe$default(r, this.this$0.getClass(), (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new AnonymousClass1(this), 62, (Object) null); Observable r2 = DiscordAudioManager.d().t.r(); m.checkNotNullExpressionValue(r2, "activeAudioDeviceSubject.distinctUntilChanged()"); ObservableExtensionsKt.appSubscribe$default(r2, this.this$0.getClass(), (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new AnonymousClass2(this), 62, (Object) null); } }