57 lines
2.8 KiB
Java
57 lines
2.8 KiB
Java
package com.discord.stores;
|
|
|
|
import android.content.Context;
|
|
import com.discord.stores.StoreGooglePlayPurchases;
|
|
import com.discord.utilities.billing.BillingUtils;
|
|
import com.discord.utilities.rx.ObservableExtensionsKt;
|
|
import d0.z.d.o;
|
|
import java.util.List;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function0;
|
|
import kotlin.jvm.functions.Function1;
|
|
/* compiled from: StoreGooglePlayPurchases.kt */
|
|
public final class StoreGooglePlayPurchases$processPurchases$1 extends o implements Function0<Unit> {
|
|
public final /* synthetic */ List $purchases;
|
|
public final /* synthetic */ StoreGooglePlayPurchases this$0;
|
|
|
|
/* compiled from: StoreGooglePlayPurchases.kt */
|
|
/* renamed from: com.discord.stores.StoreGooglePlayPurchases$processPurchases$1$1 reason: invalid class name */
|
|
public static final class AnonymousClass1 extends o implements Function1<StoreGooglePlayPurchases.QueryState, Unit> {
|
|
public final /* synthetic */ StoreGooglePlayPurchases$processPurchases$1 this$0;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public AnonymousClass1(StoreGooglePlayPurchases$processPurchases$1 storeGooglePlayPurchases$processPurchases$1) {
|
|
super(1);
|
|
this.this$0 = storeGooglePlayPurchases$processPurchases$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(StoreGooglePlayPurchases.QueryState queryState) {
|
|
invoke(queryState);
|
|
return Unit.a;
|
|
}
|
|
|
|
public final void invoke(StoreGooglePlayPurchases.QueryState queryState) {
|
|
if (queryState instanceof StoreGooglePlayPurchases.QueryState.NotInProgress) {
|
|
BillingUtils.INSTANCE.verifyPurchases(this.this$0.$purchases);
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public StoreGooglePlayPurchases$processPurchases$1(StoreGooglePlayPurchases storeGooglePlayPurchases, List list) {
|
|
super(0);
|
|
this.this$0 = storeGooglePlayPurchases;
|
|
this.$purchases = list;
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
/* renamed from: invoke */
|
|
public final void mo1invoke() {
|
|
StoreGooglePlayPurchases.access$handlePurchases(this.this$0, this.$purchases);
|
|
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.takeSingleUntilTimeout$default(this.this$0.observeQueryState(), 0, false, 3, null), this.this$0.getClass(), (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new AnonymousClass1(this), 62, (Object) null);
|
|
}
|
|
}
|