b.smali

.class public final Lph/b;
.super Ljava/lang/Object;
.source "AdvertisingIdHelper.kt"


# annotations
.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\u0010\u000e\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\u0008\u00c6\u0002\u0018\u00002\u00020\u0001B\u0007\u0008\u0002\u00a2\u0006\u0002\u0010\u0002J\u0010\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0006\u001a\u00020\u0007H\u0007R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082T\u00a2\u0006\u0002\n\u0000\u00a8\u0006\u0008"
    }
    d2 = {
        "Lcom/shopee/foody/driver/login/AdvertisingIdHelper;",
        "",
        "()V",
        "TAG",
        "",
        "getAdvertisingId",
        "context",
        "Landroid/content/Context;",
        "driver_indonesiaRelease"
    }
    k = 0x1
    mv = {
        0x1,
        0x1,
        0x10
    }
.end annotation


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

    new-instance v0, Lph/b;

    invoke-direct {v0}, Lph/b;-><init>()V

    return-void
.end method

.method public constructor <init>()V
    .registers 1

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

    return-void
.end method

.method public static final a(Landroid/content/Context;)Ljava/lang/String;
    .registers 4
    .annotation runtime Lkotlin/jvm/JvmStatic;
    .end annotation

    const-string v0, "AdvertisingIdHelper"

    :try_start_2
    invoke-static {p0}, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->getAdvertisingIdInfo(Landroid/content/Context;)Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$Info;

    move-result-object p0

    const-string v1, "info"

    invoke-static {p0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-virtual {p0}, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$Info;->getId()Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_12

    goto :goto_14

    :cond_12
    const-string v1, ""

    :goto_14
    invoke-interface {v1}, Ljava/lang/CharSequence;->length()I

    move-result v2

    if-nez v2, :cond_1c

    const/4 v2, 0x1

    goto :goto_1d

    :cond_1c
    const/4 v2, 0x0

    :goto_1d
    if-eqz v2, :cond_61

    invoke-virtual {p0}, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$Info;->isLimitAdTrackingEnabled()Z

    move-result p0

    if-eqz p0, :cond_61

    sget-object p0, Lcom/shopee/foody/driver/login/AdvertisingIdError;->LAT:Lcom/shopee/foody/driver/login/AdvertisingIdError;

    invoke-virtual {p0}, Ljava/lang/Enum;->name()Ljava/lang/String;

    move-result-object v1
    :try_end_2b
    .catch Lcom/google/android/gms/common/GooglePlayServicesNotAvailableException; {:try_start_2 .. :try_end_2b} :catch_50
    .catch Lcom/google/android/gms/common/GooglePlayServicesRepairableException; {:try_start_2 .. :try_end_2b} :catch_3e
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2b} :catch_2c

    goto :goto_61

    :catch_2c
    move-exception p0

    sget-object v1, Lqa/d;->e:Lqa/d$a;

    new-instance v2, Lph/b$c;

    invoke-direct {v2, p0}, Lph/b$c;-><init>(Ljava/lang/Exception;)V

    invoke-virtual {v1, v0, v2}, Lqa/d$a;->b(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V

    sget-object p0, Lcom/shopee/foody/driver/login/AdvertisingIdError;->Exception:Lcom/shopee/foody/driver/login/AdvertisingIdError;

    invoke-virtual {p0}, Ljava/lang/Enum;->name()Ljava/lang/String;

    move-result-object v1

    goto :goto_61

    :catch_3e
    move-exception p0

    sget-object v1, Lqa/d;->e:Lqa/d$a;

    new-instance v2, Lph/b$b;

    invoke-direct {v2, p0}, Lph/b$b;-><init>(Lcom/google/android/gms/common/GooglePlayServicesRepairableException;)V

    invoke-virtual {v1, v0, v2}, Lqa/d$a;->b(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V

    sget-object p0, Lcom/shopee/foody/driver/login/AdvertisingIdError;->NoGoogleServiceRepairable:Lcom/shopee/foody/driver/login/AdvertisingIdError;

    invoke-virtual {p0}, Ljava/lang/Enum;->name()Ljava/lang/String;

    move-result-object v1

    goto :goto_61

    :catch_50
    move-exception p0

    sget-object v1, Lqa/d;->e:Lqa/d$a;

    new-instance v2, Lph/b$a;

    invoke-direct {v2, p0}, Lph/b$a;-><init>(Lcom/google/android/gms/common/GooglePlayServicesNotAvailableException;)V

    invoke-virtual {v1, v0, v2}, Lqa/d$a;->b(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V

    sget-object p0, Lcom/shopee/foody/driver/login/AdvertisingIdError;->NoGoogleService:Lcom/shopee/foody/driver/login/AdvertisingIdError;

    invoke-virtual {p0}, Ljava/lang/Enum;->name()Ljava/lang/String;

    move-result-object v1

    :cond_61
    :goto_61
    return-object v1
.end method