2021-06-27 20:44:35 +00:00
|
|
|
package com.discord.utilities.persister;
|
|
|
|
|
|
|
|
import android.content.Context;
|
|
|
|
import com.discord.utilities.rx.ObservableExtensionsKt;
|
|
|
|
import d0.z.d.m;
|
|
|
|
import d0.z.d.o;
|
|
|
|
import j0.l.e.j;
|
|
|
|
import kotlin.Unit;
|
|
|
|
import kotlin.jvm.functions.Function0;
|
|
|
|
import kotlin.jvm.functions.Function1;
|
|
|
|
import rx.subjects.BehaviorSubject;
|
|
|
|
import rx.subjects.SerializedSubject;
|
|
|
|
import rx.subjects.Subject;
|
|
|
|
/* compiled from: Persister.kt */
|
|
|
|
public final class Persister$getObservable$1 extends o implements Function0<Subject<T, T>> {
|
|
|
|
public final /* synthetic */ Persister this$0;
|
|
|
|
|
|
|
|
/* compiled from: Persister.kt */
|
|
|
|
/* renamed from: com.discord.utilities.persister.Persister$getObservable$1$1 reason: invalid class name */
|
|
|
|
public static final class AnonymousClass1 extends o implements Function1 {
|
|
|
|
public final /* synthetic */ SerializedSubject $subject;
|
|
|
|
public final /* synthetic */ Persister$getObservable$1 this$0;
|
|
|
|
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
|
|
public AnonymousClass1(Persister$getObservable$1 persister$getObservable$1, SerializedSubject serializedSubject) {
|
|
|
|
super(1);
|
|
|
|
this.this$0 = persister$getObservable$1;
|
|
|
|
this.$subject = serializedSubject;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // kotlin.jvm.functions.Function1
|
|
|
|
public /* bridge */ /* synthetic */ Object invoke(Object obj) {
|
|
|
|
invoke((Void) obj);
|
|
|
|
return Unit.a;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final void invoke(Void r2) {
|
|
|
|
SerializedSubject serializedSubject = this.$subject;
|
|
|
|
serializedSubject.j.onNext(this.this$0.this$0.get());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
|
|
public Persister$getObservable$1(Persister persister) {
|
|
|
|
super(0);
|
|
|
|
this.this$0 = persister;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
|
|
/* renamed from: invoke */
|
|
|
|
public final Subject<T, T> mo1invoke() {
|
2021-07-03 23:36:06 +00:00
|
|
|
SerializedSubject serializedSubject = new SerializedSubject(BehaviorSubject.k0());
|
2021-06-27 20:44:35 +00:00
|
|
|
j jVar = new j(null);
|
|
|
|
m.checkNotNullExpressionValue(jVar, "Observable\n .just(null)");
|
|
|
|
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.computationBuffered(jVar), this.this$0.getClass(), (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new AnonymousClass1(this, serializedSubject), 62, (Object) null);
|
|
|
|
return serializedSubject;
|
|
|
|
}
|
|
|
|
}
|