38 lines
2 KiB
Java
38 lines
2 KiB
Java
|
package com.discord.stores;
|
||
|
|
||
|
import com.discord.models.domain.ModelApplicationStream;
|
||
|
import com.discord.stores.StoreApplicationStreaming;
|
||
|
import d0.z.d.m;
|
||
|
import d0.z.d.o;
|
||
|
import kotlin.Unit;
|
||
|
import kotlin.jvm.functions.Function0;
|
||
|
/* compiled from: StoreApplicationStreaming.kt */
|
||
|
public final class StoreApplicationStreaming$targetStream$1 extends o implements Function0<Unit> {
|
||
|
public final /* synthetic */ boolean $force;
|
||
|
public final /* synthetic */ String $streamKey;
|
||
|
public final /* synthetic */ StoreApplicationStreaming this$0;
|
||
|
|
||
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||
|
public StoreApplicationStreaming$targetStream$1(StoreApplicationStreaming storeApplicationStreaming, String str, boolean z2) {
|
||
|
super(0);
|
||
|
this.this$0 = storeApplicationStreaming;
|
||
|
this.$streamKey = str;
|
||
|
this.$force = z2;
|
||
|
}
|
||
|
|
||
|
@Override // kotlin.jvm.functions.Function0
|
||
|
/* renamed from: invoke */
|
||
|
public final void mo1invoke() {
|
||
|
StoreApplicationStreaming.ActiveApplicationStream.State state;
|
||
|
ModelApplicationStream stream;
|
||
|
StoreApplicationStreaming.ActiveApplicationStream access$getActiveApplicationStream$p = StoreApplicationStreaming.access$getActiveApplicationStream$p(this.this$0);
|
||
|
boolean z2 = m.areEqual((access$getActiveApplicationStream$p == null || (stream = access$getActiveApplicationStream$p.getStream()) == null) ? null : stream.getEncodedStreamKey(), this.$streamKey) && access$getActiveApplicationStream$p.getState().isStreamActive();
|
||
|
if (this.$force || !z2) {
|
||
|
if (!(access$getActiveApplicationStream$p == null || (state = access$getActiveApplicationStream$p.getState()) == null || !state.isStreamActive())) {
|
||
|
StoreApplicationStreaming.access$stopStreamInternal(this.this$0, access$getActiveApplicationStream$p.getStream().getEncodedStreamKey());
|
||
|
}
|
||
|
StoreApplicationStreaming.access$getStoreStream$p(this.this$0).handleStreamTargeted(this.$streamKey);
|
||
|
}
|
||
|
}
|
||
|
}
|