granularity level: instruction
.class public final Lh1/r;
.super Ljava/lang/Object;
.source "SourceFile"
.field public final a:Ly0/b;
.field public b:Z
.field public c:Ljava/lang/Boolean;
.field public final synthetic d:Lcom/google/firebase/messaging/FirebaseMessaging;
.method public constructor <init>(Lcom/google/firebase/messaging/FirebaseMessaging;Ly0/b;)V
.locals 0
iput-object p1, p0, Lh1/r;->d:Lcom/google/firebase/messaging/FirebaseMessaging;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p2, p0, Lh1/r;->a:Ly0/b;
return-void
.end method
.method public final declared-synchronized a()V
.locals 2
monitor-enter p0
:try_start_0
iget-boolean v0, p0, Lh1/r;->b:Z
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v0, :cond_0
monitor-exit p0
return-void
:try_start_1
:cond_0
invoke-virtual {p0}, Lh1/r;->b()Ljava/lang/Boolean;
move-result-object v0
iput-object v0, p0, Lh1/r;->c:Ljava/lang/Boolean;
if-nez v0, :cond_1
new-instance v0, Lh1/q;
invoke-direct {v0, p0}, Lh1/q;-><init>(Lh1/r;)V
iget-object v1, p0, Lh1/r;->a:Ly0/b;
check-cast v1, Lr0/m;
invoke-virtual {v1, v0}, Lr0/m;->a(Lh1/q;)V
:cond_1
const/4 v0, 0x1
iput-boolean v0, p0, Lh1/r;->b:Z
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
monitor-exit p0
return-void
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
.method public final b()Ljava/lang/Boolean;
.locals 6
const-string v0, "firebase_messaging_auto_init_enabled"
iget-object v1, p0, Lh1/r;->d:Lcom/google/firebase/messaging/FirebaseMessaging;
iget-object v1, v1, Lcom/google/firebase/messaging/FirebaseMessaging;->a:Lp0/g;
invoke-virtual {v1}, Lp0/g;->a()V
iget-object v1, v1, Lp0/g;->a:Landroid/content/Context;
const-string v2, "com.google.firebase.messaging"
const/4 v3, 0x0
invoke-virtual {v1, v2, v3}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
move-result-object v2
const-string v4, "auto_init"
invoke-interface {v2, v4}, Landroid/content/SharedPreferences;->contains(Ljava/lang/String;)Z
move-result v5
:try_start_0
invoke-virtual {v1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v2
if-eqz v2, :cond_1
invoke-virtual {v1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v1
const/16 v3, 0x80
invoke-virtual {v2, v1, v3}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;
move-result-object v1
if-eqz v1, :cond_1
iget-object v2, v1, Landroid/content/pm/ApplicationInfo;->metaData:Landroid/os/Bundle;
if-eqz v2, :cond_1
invoke-virtual {v2, v0}, Landroid/os/BaseBundle;->containsKey(Ljava/lang/String;)Z
move-result v2
goto/32 :cond_1
:try_end_0
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
return-object v0
:cond_1
:catch_0
const/4 v0, 0x0
return-object v0
.end method