apkfuckery/com.discord/smali/com/discord/utilities/billing/GooglePlayBillingManager$re...

113 lines
3.6 KiB
Smali

.class public final Lcom/discord/utilities/billing/GooglePlayBillingManager$reconnect$1;
.super Ljava/lang/Object;
.source "GooglePlayBillingManager.kt"
# interfaces
.implements Lrx/functions/Action1;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/discord/utilities/billing/GooglePlayBillingManager;->reconnect()V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lrx/functions/Action1<",
"Ljava/lang/Long;",
">;"
}
.end annotation
# instance fields
.field public final synthetic $currentBackoffTimeMs:J
# direct methods
.method public constructor <init>(J)V
.locals 0
iput-wide p1, p0, Lcom/discord/utilities/billing/GooglePlayBillingManager$reconnect$1;->$currentBackoffTimeMs:J
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final call(Ljava/lang/Long;)V
.locals 4
sget-object p1, Lcom/discord/utilities/billing/GooglePlayBillingManager;->INSTANCE:Lcom/discord/utilities/billing/GooglePlayBillingManager;
invoke-static {p1}, Lcom/discord/utilities/billing/GooglePlayBillingManager;->access$getBillingClient$p(Lcom/discord/utilities/billing/GooglePlayBillingManager;)Lcom/android/billingclient/api/BillingClient;
move-result-object p1
invoke-virtual {p1}, Lcom/android/billingclient/api/BillingClient;->a()Z
move-result p1
if-nez p1, :cond_0
sget-object p1, Lcom/discord/utilities/billing/GooglePlayBillingManager;->INSTANCE:Lcom/discord/utilities/billing/GooglePlayBillingManager;
invoke-static {p1}, Lcom/discord/utilities/billing/GooglePlayBillingManager;->access$getBillingClient$p(Lcom/discord/utilities/billing/GooglePlayBillingManager;)Lcom/android/billingclient/api/BillingClient;
move-result-object p1
sget-object v0, Lcom/discord/utilities/billing/GooglePlayBillingManager;->INSTANCE:Lcom/discord/utilities/billing/GooglePlayBillingManager;
invoke-virtual {p1, v0}, Lcom/android/billingclient/api/BillingClient;->b(Lf/e/a/a/b;)V
sget-object p1, Lcom/discord/utilities/billing/GooglePlayBillingManager;->INSTANCE:Lcom/discord/utilities/billing/GooglePlayBillingManager;
invoke-static {p1}, Lcom/discord/utilities/billing/GooglePlayBillingManager;->access$getBackoffTimeMs$p(Lcom/discord/utilities/billing/GooglePlayBillingManager;)Ljava/util/concurrent/atomic/AtomicLong;
move-result-object p1
iget-wide v0, p0, Lcom/discord/utilities/billing/GooglePlayBillingManager$reconnect$1;->$currentBackoffTimeMs:J
const/4 v2, 0x2
int-to-long v2, v2
mul-long v0, v0, v2
invoke-virtual {p1, v0, v1}, Ljava/util/concurrent/atomic/AtomicLong;->set(J)V
:cond_0
sget-object p1, Lcom/discord/utilities/billing/GooglePlayBillingManager;->INSTANCE:Lcom/discord/utilities/billing/GooglePlayBillingManager;
invoke-static {p1}, Lcom/discord/utilities/billing/GooglePlayBillingManager;->access$isReconnecting$p(Lcom/discord/utilities/billing/GooglePlayBillingManager;)Ljava/util/concurrent/atomic/AtomicBoolean;
move-result-object p1
const/4 v0, 0x0
invoke-virtual {p1, v0}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V
return-void
.end method
.method public bridge synthetic call(Ljava/lang/Object;)V
.locals 0
check-cast p1, Ljava/lang/Long;
invoke-virtual {p0, p1}, Lcom/discord/utilities/billing/GooglePlayBillingManager$reconnect$1;->call(Ljava/lang/Long;)V
return-void
.end method