31 lines
1.4 KiB
Java
31 lines
1.4 KiB
Java
|
package com.discord.stores;
|
||
|
|
||
|
import com.discord.stores.StoreGooglePlayPurchases;
|
||
|
import d0.z.d.o;
|
||
|
import kotlin.Unit;
|
||
|
import kotlin.jvm.functions.Function0;
|
||
|
/* compiled from: StoreGooglePlayPurchases.kt */
|
||
|
public final class StoreGooglePlayPurchases$downgradePurchase$1 extends o implements Function0<Unit> {
|
||
|
public final /* synthetic */ StoreGooglePlayPurchases this$0;
|
||
|
|
||
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||
|
public StoreGooglePlayPurchases$downgradePurchase$1(StoreGooglePlayPurchases storeGooglePlayPurchases) {
|
||
|
super(0);
|
||
|
this.this$0 = storeGooglePlayPurchases;
|
||
|
}
|
||
|
|
||
|
@Override // kotlin.jvm.functions.Function0
|
||
|
/* renamed from: invoke */
|
||
|
public final void mo1invoke() {
|
||
|
StoreGooglePlayPurchases.State access$getStoreState$p = StoreGooglePlayPurchases.access$getStoreState$p(this.this$0);
|
||
|
if (access$getStoreState$p instanceof StoreGooglePlayPurchases.State.Loaded) {
|
||
|
StoreGooglePlayPurchases.State.Loaded loaded = (StoreGooglePlayPurchases.State.Loaded) access$getStoreState$p;
|
||
|
if (loaded.getPendingDowngrade() != null) {
|
||
|
StoreGooglePlayPurchases.access$setQueryState$p(this.this$0, StoreGooglePlayPurchases.QueryState.InProgress.INSTANCE);
|
||
|
this.this$0.markChanged();
|
||
|
StoreGooglePlayPurchases.access$doDowngrade(this.this$0, loaded.getPendingDowngrade());
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|