47 lines
1.7 KiB
Java
47 lines
1.7 KiB
Java
package com.discord.widgets.tabs;
|
|
|
|
import com.discord.widgets.tabs.TabsHostBottomNavigationView;
|
|
import d0.g;
|
|
import d0.z.d.m;
|
|
import kotlin.Lazy;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import rx.Observable;
|
|
import rx.subjects.BehaviorSubject;
|
|
/* compiled from: BottomNavViewObserver.kt */
|
|
public final class BottomNavViewObserver implements TabsHostBottomNavigationView.HeightChangedListener {
|
|
public static final Companion Companion = new Companion(null);
|
|
private static final Lazy INSTANCE$delegate = g.lazy(BottomNavViewObserver$Companion$INSTANCE$2.INSTANCE);
|
|
private final BehaviorSubject<Integer> heightSubject = BehaviorSubject.l0(0);
|
|
|
|
/* compiled from: BottomNavViewObserver.kt */
|
|
public static final class Companion {
|
|
private Companion() {
|
|
}
|
|
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
public final BottomNavViewObserver getINSTANCE() {
|
|
Lazy access$getINSTANCE$cp = BottomNavViewObserver.access$getINSTANCE$cp();
|
|
Companion companion = BottomNavViewObserver.Companion;
|
|
return (BottomNavViewObserver) access$getINSTANCE$cp.getValue();
|
|
}
|
|
}
|
|
|
|
public static final /* synthetic */ Lazy access$getINSTANCE$cp() {
|
|
return INSTANCE$delegate;
|
|
}
|
|
|
|
public final Observable<Integer> observeHeight() {
|
|
BehaviorSubject<Integer> behaviorSubject = this.heightSubject;
|
|
m.checkNotNullExpressionValue(behaviorSubject, "heightSubject");
|
|
return behaviorSubject;
|
|
}
|
|
|
|
@Override // com.discord.widgets.tabs.TabsHostBottomNavigationView.HeightChangedListener
|
|
public void onHeightChanged(int i) {
|
|
this.heightSubject.onNext(Integer.valueOf(i));
|
|
}
|
|
}
|