36 lines
1.8 KiB
Java
36 lines
1.8 KiB
Java
package com.discord.widgets.home;
|
|
|
|
import com.discord.panels.OverlappingPanelsLayout;
|
|
import com.discord.stores.StoreChannelsSelected;
|
|
import com.discord.stores.StoreGuildSelected;
|
|
import com.discord.stores.StoreStream;
|
|
import d0.z.d.m;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import rx.Observable;
|
|
/* compiled from: LeftPanelManager.kt */
|
|
public final class LeftPanelManager {
|
|
private final StoreChannelsSelected storeChannelsSelected;
|
|
private final StoreGuildSelected storeGuildSelected;
|
|
|
|
public LeftPanelManager() {
|
|
this(null, null, 3, null);
|
|
}
|
|
|
|
public LeftPanelManager(StoreChannelsSelected storeChannelsSelected, StoreGuildSelected storeGuildSelected) {
|
|
m.checkNotNullParameter(storeChannelsSelected, "storeChannelsSelected");
|
|
m.checkNotNullParameter(storeGuildSelected, "storeGuildSelected");
|
|
this.storeChannelsSelected = storeChannelsSelected;
|
|
this.storeGuildSelected = storeGuildSelected;
|
|
}
|
|
|
|
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
|
|
public /* synthetic */ LeftPanelManager(StoreChannelsSelected storeChannelsSelected, StoreGuildSelected storeGuildSelected, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this((i & 1) != 0 ? StoreStream.Companion.getChannelsSelected() : storeChannelsSelected, (i & 2) != 0 ? StoreStream.Companion.getGuildSelected() : storeGuildSelected);
|
|
}
|
|
|
|
public final Observable<OverlappingPanelsLayout.LockState> observeLockState() {
|
|
Observable<OverlappingPanelsLayout.LockState> r = Observable.j(this.storeChannelsSelected.observeResolvedSelectedChannel(), this.storeGuildSelected.observeSelectedGuildId(), LeftPanelManager$observeLockState$1.INSTANCE).r();
|
|
m.checkNotNullExpressionValue(r, "Observable.combineLatest… }.distinctUntilChanged()");
|
|
return r;
|
|
}
|
|
}
|