e0.smali

.class public final Lcom/google/firebase/messaging/e0;
.super Ljava/lang/Object;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/google/firebase/messaging/e0$a;
    }
.end annotation


# instance fields
.field public final a:Landroid/content/SharedPreferences;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .registers 5

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

    const-string v0, "com.google.android.gms.appid"

    const/4 v1, 0x0

    .line 2
    invoke-virtual {p1, v0, v1}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v0

    iput-object v0, p0, Lcom/google/firebase/messaging/e0;->a:Landroid/content/SharedPreferences;

    const-string v1, "com.google.android.gms.appid-no-backup"

    .line 3
    sget-object v2, Landroidx/core/content/b;->a:Ljava/lang/Object;

    .line 4
    invoke-static {p1}, Landroidx/core/content/b$c;->c(Landroid/content/Context;)Ljava/io/File;

    move-result-object p1

    .line 5
    new-instance v2, Ljava/io/File;

    invoke-direct {v2, p1, v1}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V

    .line 6
    invoke-virtual {v2}, Ljava/io/File;->exists()Z

    move-result p1

    if-eqz p1, :cond_20

    goto :goto_53

    .line 7
    :cond_20
    :try_start_20
    invoke-virtual {v2}, Ljava/io/File;->createNewFile()Z

    move-result p1

    if-eqz p1, :cond_53

    .line 8
    monitor-enter p0
    :try_end_27
    .catch Ljava/io/IOException; {:try_start_20 .. :try_end_27} :catch_46

    .line 9
    :try_start_27
    invoke-interface {v0}, Landroid/content/SharedPreferences;->getAll()Ljava/util/Map;

    move-result-object p1

    invoke-interface {p1}, Ljava/util/Map;->isEmpty()Z

    move-result p1
    :try_end_2f
    .catchall {:try_start_27 .. :try_end_2f} :catchall_43

    :try_start_2f
    monitor-exit p0

    if-nez p1, :cond_53

    .line 10
    monitor-enter p0
    :try_end_33
    .catch Ljava/io/IOException; {:try_start_2f .. :try_end_33} :catch_46

    .line 11
    :try_start_33
    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object p1

    invoke-interface {p1}, Landroid/content/SharedPreferences$Editor;->clear()Landroid/content/SharedPreferences$Editor;

    move-result-object p1

    invoke-interface {p1}, Landroid/content/SharedPreferences$Editor;->commit()Z
    :try_end_3e
    .catchall {:try_start_33 .. :try_end_3e} :catchall_40

    .line 12
    :try_start_3e
    monitor-exit p0

    goto :goto_53

    :catchall_40
    move-exception p1

    monitor-exit p0

    throw p1

    :catchall_43
    move-exception p1

    .line 13
    monitor-exit p0

    throw p1
    :try_end_46
    .catch Ljava/io/IOException; {:try_start_3e .. :try_end_46} :catch_46

    :catch_46
    move-exception p1

    const-string v0, "FirebaseMessaging"

    const/4 v1, 0x3

    .line 14
    invoke-static {v0, v1}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z

    move-result v0

    if-eqz v0, :cond_53

    .line 15
    invoke-virtual {p1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;

    :cond_53
    :goto_53
    return-void
.end method


# virtual methods
.method public final a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    .registers 6

    const-string v0, "|T|"

    const-string v1, "|"

    const-string v2, "*"

    .line 1
    invoke-static {p1, v0, p2, v1, v2}, Landroidx/appcompat/a;->c(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method