BasePayService$5.smali

.class Lcom/sandboxol/googlepay/billing/BasePayService$5;
.super Ljava/lang/Object;
.source "BasePayService.java"

# interfaces
.implements Lcom/android/billingclient/api/BillingClientStateListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/sandboxol/googlepay/billing/BasePayService;->startBillingServiceConnection(Ljava/lang/Runnable;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/sandboxol/googlepay/billing/BasePayService;

.field final synthetic val$runnable:Ljava/lang/Runnable;


# direct methods
.method constructor <init>(Lcom/sandboxol/googlepay/billing/BasePayService;Ljava/lang/Runnable;)V
    .registers 3

    .line 1
    iput-object p1, p0, Lcom/sandboxol/googlepay/billing/BasePayService$5;->this$0:Lcom/sandboxol/googlepay/billing/BasePayService;

    iput-object p2, p0, Lcom/sandboxol/googlepay/billing/BasePayService$5;->val$runnable:Ljava/lang/Runnable;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onBillingServiceDisconnected()V
    .registers 3

    .line 1
    iget-object v0, p0, Lcom/sandboxol/googlepay/billing/BasePayService$5;->this$0:Lcom/sandboxol/googlepay/billing/BasePayService;

    const/4 v1, 0x0

    # setter for: Lcom/sandboxol/googlepay/billing/BasePayService;->isServiceConnected:Z
    invoke-static {v0, v1}, Lcom/sandboxol/googlepay/billing/BasePayService;->access$202(Lcom/sandboxol/googlepay/billing/BasePayService;Z)Z

    return-void
.end method

.method public onBillingSetupFinished(Lcom/android/billingclient/api/BillingResult;)V
    .registers 5

    const-string v0, "onBillingSetupFinished"

    .line 1
    invoke-static {v0, p1}, Lcom/sandboxol/googlepay/billing/PayLogger;->d(Ljava/lang/String;Lcom/android/billingclient/api/BillingResult;)V

    const-string v0, "Billing"

    .line 2
    invoke-static {v0}, Lcom/apkfuns/logutils/c;->a(Ljava/lang/String;)Lcom/apkfuns/logutils/e;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Setup finished. Response code: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Lcom/android/billingclient/api/BillingResult;->getResponseCode()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-interface {v0, v1}, Lcom/apkfuns/logutils/e;->d(Ljava/lang/Object;)V

    .line 3
    invoke-virtual {p1}, Lcom/android/billingclient/api/BillingResult;->getResponseCode()I

    move-result p1

    if-nez p1, :cond_3d

    .line 4
    iget-object p1, p0, Lcom/sandboxol/googlepay/billing/BasePayService$5;->this$0:Lcom/sandboxol/googlepay/billing/BasePayService;

    const/4 v0, 0x1

    # setter for: Lcom/sandboxol/googlepay/billing/BasePayService;->isServiceConnected:Z
    invoke-static {p1, v0}, Lcom/sandboxol/googlepay/billing/BasePayService;->access$202(Lcom/sandboxol/googlepay/billing/BasePayService;Z)Z

    .line 5
    iget-object p1, p0, Lcom/sandboxol/googlepay/billing/BasePayService$5;->val$runnable:Ljava/lang/Runnable;

    if-eqz p1, :cond_37

    .line 6
    invoke-interface {p1}, Ljava/lang/Runnable;->run()V

    goto :goto_4d

    .line 7
    :cond_37
    iget-object p1, p0, Lcom/sandboxol/googlepay/billing/BasePayService$5;->this$0:Lcom/sandboxol/googlepay/billing/BasePayService;

    # invokes: Lcom/sandboxol/googlepay/billing/BasePayService;->queryPurchases()V
    invoke-static {p1}, Lcom/sandboxol/googlepay/billing/BasePayService;->access$100(Lcom/sandboxol/googlepay/billing/BasePayService;)V

    goto :goto_4d

    .line 8
    :cond_3d
    invoke-static {}, Lcom/sandboxol/common/base/app/BaseApplication;->getContext()Landroid/content/Context;

    move-result-object p1

    sget v0, Lcom/sandboxol/googlepay/R$string;->googleplay_billing_setup_error:I

    invoke-static {p1, v0}, Lcom/sandboxol/common/utils/AppToastUtils;->showShortNegativeTipToast(Landroid/content/Context;I)V

    .line 9
    invoke-static {}, Lcom/sandboxol/center/utils/DialogUtilsWrap;->newsInstant()Lcom/sandboxol/center/utils/DialogUtilsWrap;

    move-result-object p1

    invoke-virtual {p1}, Lcom/sandboxol/center/utils/DialogUtilsWrap;->hideLoadingDialog()V

    :goto_4d
    return-void
.end method