granularity level: instruction
.class public final Lh1/m;
.super Ljava/lang/Object;
.source "SourceFile"
.implements Landroid/app/Application$ActivityLifecycleCallbacks;
.field public final a:Ljava/util/Set;
.method public constructor <init>()V
.locals 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance v0, Ljava/util/WeakHashMap;
invoke-direct {v0}, Ljava/util/WeakHashMap;-><init>()V
invoke-static {v0}, Ljava/util/Collections;->newSetFromMap(Ljava/util/Map;)Ljava/util/Set;
move-result-object v0
iput-object v0, p0, Lh1/m;->a:Ljava/util/Set;
return-void
.end method
.method public static a(Landroid/content/Intent;)V
.locals 5
const-string v0, "FirebaseMessaging"
:try_start_0
invoke-virtual {p0}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
move-result-object p0
if-eqz p0, :cond_0
const-string v1, "gcm.n.analytics_data"
invoke-virtual {p0, v1}, Landroid/os/Bundle;->getBundle(Ljava/lang/String;)Landroid/os/Bundle;
move-result-object p0
:try_end_0
.catch Ljava/lang/RuntimeException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception p0
const-string v1, "Failed trying to get analytics data from Intent extras."
invoke-static {v0, v1, p0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
:cond_0
const/4 p0, 0x0
:goto_0
const-string v1, "1"
if-nez p0, :cond_1
const/4 v2, 0x0
goto :goto_1
:cond_1
const-string v2, "google.c.a.e"
invoke-virtual {p0, v2}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v2
:goto_1
if-eqz v2, :cond_7
if-nez p0, :cond_2
goto :goto_2
:cond_2
const-string v2, "google.c.a.tc"
invoke-virtual {p0, v2}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
const/4 v2, 0x3
if-eqz v1, :cond_5
invoke-static {}, Lp0/g;->b()Lp0/g;
move-result-object v1
const-class v3, Lq0/a;
invoke-virtual {v1}, Lp0/g;->a()V
iget-object v1, v1, Lp0/g;->d:Lr0/h;
invoke-virtual {v1, v3}, Lp0/a;->a(Ljava/lang/Class;)Ljava/lang/Object;
move-result-object v1
check-cast v1, Lq0/a;
invoke-static {v0, v2}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
move-result v2
if-eqz v2, :cond_3
const-string v2, "Received event with track-conversion=true. Setting user property and reengagement event"
invoke-static {v0, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
:cond_3
if-eqz v1, :cond_4
const-string v0, "google.c.a.c_id"
invoke-virtual {p0, v0}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-interface {v1}, Lq0/a;->a()V
new-instance v2, Landroid/os/Bundle;
invoke-direct {v2}, Landroid/os/Bundle;-><init>()V
const-string v3, "source"
const-string v4, "Firebase"
invoke-virtual {v2, v3, v4}, Landroid/os/BaseBundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
const-string v3, "medium"
const-string v4, "notification"
invoke-virtual {v2, v3, v4}, Landroid/os/BaseBundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
const-string v3, "campaign"
invoke-virtual {v2, v3, v0}, Landroid/os/BaseBundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
invoke-interface {v1}, Lq0/a;->b()V
goto :goto_2
:cond_4
const-string v1, "Unable to set user property for conversion tracking: analytics library is missing"
invoke-static {v0, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
goto :goto_2
:cond_5
invoke-static {v0, v2}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
move-result v1
if-eqz v1, :cond_6
const-string v1, "Received event with track-conversion=false. Do not set user property"
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
:goto_2
:cond_6
const-string v0, "_no"
invoke-static {v0, p0}, Lp0/a;->x(Ljava/lang/String;Landroid/os/Bundle;)V
:cond_7
return-void
.end method
.method public final onActivityCreated(Landroid/app/Activity;Landroid/os/Bundle;)V
.locals 2
invoke-virtual {p1}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;
move-result-object p1
if-eqz p1, :cond_2
iget-object p2, p0, Lh1/m;->a:Ljava/util/Set;
invoke-interface {p2, p1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
move-result p2
if-nez p2, :cond_0
goto :goto_0
:cond_0
sget p2, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v0, 0x19
if-gt p2, v0, :cond_1
new-instance p2, Landroid/os/Handler;
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
move-result-object v0
invoke-direct {p2, v0}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V
new-instance v0, Lq/e;
const/4 v1, 0x4
invoke-direct {v0, p0, p1, v1}, Lq/e;-><init>(Ljava/lang/Object;Ljava/lang/Object;I)V
invoke-virtual {p2, v0}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
goto :goto_0
:cond_1
invoke-static {p1}, Lh1/m;->a(Landroid/content/Intent;)V
:cond_2
:goto_0
return-void
.end method
.method public final onActivityDestroyed(Landroid/app/Activity;)V
.locals 0
return-void
.end method
.method public final onActivityPaused(Landroid/app/Activity;)V
.locals 1
invoke-virtual {p1}, Landroid/app/Activity;->isFinishing()Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lh1/m;->a:Ljava/util/Set;
invoke-virtual {p1}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;
move-result-object p1
invoke-interface {v0, p1}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
:cond_0
return-void
.end method
.method public final onActivityResumed(Landroid/app/Activity;)V
.locals 0
return-void
.end method
.method public final onActivitySaveInstanceState(Landroid/app/Activity;Landroid/os/Bundle;)V
.locals 0
return-void
.end method
.method public final onActivityStarted(Landroid/app/Activity;)V
.locals 0
return-void
.end method
.method public final onActivityStopped(Landroid/app/Activity;)V
.locals 0
return-void
.end method