b$b.smali

.class public final Lya/b$b;
.super Ljava/lang/Object;
.source "CookieManagerWrapper.kt"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lya/b;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x11
    name = "b"
.end annotation

.annotation runtime Lkotlin/Metadata;
    bv = {
        0x1,
        0x0,
        0x3
    }
    d1 = {
        "\u0000\u001a\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\u0008\u0002\u0008\u0086\u0004\u0018\u00002\u00020\u0001B\u0005\u00a2\u0006\u0002\u0010\u0002J\u0006\u0010\u0005\u001a\u00020\u0006J\u0006\u0010\u0007\u001a\u00020\u0006R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082\u0004\u00a2\u0006\u0002\n\u0000\u00a8\u0006\u0008"
    }
    d2 = {
        "Lcom/shopee/android/network/impl/cookie/CookieManagerWrapper$CookieSaver;",
        "",
        "(Lcom/shopee/android/network/impl/cookie/CookieManagerWrapper;)V",
        "mHandler",
        "Landroid/os/Handler;",
        "notifyCookiesChanged",
        "",
        "persistCookies",
        "impl_release"
    }
    k = 0x1
    mv = {
        0x1,
        0x1,
        0x10
    }
.end annotation


# instance fields
.field public final a:Landroid/os/Handler;

.field public final synthetic b:Lya/b;


# direct methods
.method static constructor <clinit>()V
    .registers 1

    return-void
.end method

.method public constructor <init>(Lya/b;)V
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()V"
        }
    .end annotation

    iput-object p1, p0, Lya/b$b;->b:Lya/b;

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

    new-instance p1, Lya/b$b$a;

    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v0

    invoke-direct {p1, p0, v0}, Lya/b$b$a;-><init>(Lya/b$b;Landroid/os/Looper;)V

    iput-object p1, p0, Lya/b$b;->a:Landroid/os/Handler;

    return-void
.end method


# virtual methods
.method public final a()V
    .registers 5

    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x15

    if-ge v0, v1, :cond_f

    iget-object v0, p0, Lya/b$b;->a:Landroid/os/Handler;

    const/4 v1, 0x1

    const-wide/16 v2, 0x7530

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->sendEmptyMessageDelayed(IJ)Z

    goto :goto_12

    :cond_f
    invoke-virtual {p0}, Lya/b$b;->b()V

    :goto_12
    return-void
.end method

.method public final b()V
    .registers 9

    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x15

    if-ge v0, v1, :cond_21

    iget-object v0, p0, Lya/b$b;->a:Landroid/os/Handler;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V

    sget-object v2, Lkotlinx/coroutines/GlobalScope;->INSTANCE:Lkotlinx/coroutines/GlobalScope;

    iget-object v0, p0, Lya/b$b;->b:Lya/b;

    invoke-virtual {v0}, Lya/b;->a()Lkotlinx/coroutines/CoroutineDispatcher;

    move-result-object v3

    const/4 v4, 0x0

    new-instance v5, Lya/b$b$b;

    const/4 v0, 0x0

    invoke-direct {v5, v0}, Lya/b$b$b;-><init>(Lkotlin/coroutines/Continuation;)V

    const/4 v6, 0x2

    const/4 v7, 0x0

    invoke-static/range {v2 .. v7}, Lkotlinx/coroutines/BuildersKt;->launch$default(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;Lkotlinx/coroutines/CoroutineStart;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/Job;

    goto :goto_2c

    :cond_21
    sget-object v0, Lya/a;->b:Lya/a;

    invoke-virtual {v0}, Lya/a;->b()Landroid/webkit/CookieManager;

    move-result-object v0

    if-eqz v0, :cond_2c

    invoke-virtual {v0}, Landroid/webkit/CookieManager;->flush()V

    :cond_2c
    :goto_2c
    return-void
.end method