granularity level: instruction
.class Lcom/google/firebase/messaging/FcmLifecycleCallbacks;
.super Ljava/lang/Object;
.source "FcmLifecycleCallbacks.java"
.implements Landroid/app/Application$ActivityLifecycleCallbacks;
.field private final seenIntents:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Landroid/content/Intent;",
">;"
}
.end annotation
.end field
.method 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, Lcom/google/firebase/messaging/FcmLifecycleCallbacks;->seenIntents:Ljava/util/Set;
return-void
.end method
.method private logNotificationOpen(Landroid/content/Intent;)V
.locals 3
const/4 v0, 0x0
invoke-virtual {p1}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
move-result-object p1
if-eqz p1, :cond_0
const-string v1, "gcm.n.analytics_data"
invoke-virtual {p1, v1}, Landroid/os/Bundle;->getBundle(Ljava/lang/String;)Landroid/os/Bundle;
move-result-object p1
move-object v0, p1
:cond_0
invoke-static {v0}, Lcom/google/firebase/messaging/MessagingAnalytics;->shouldUploadScionMetrics(Landroid/os/Bundle;)Z
move-result p1
if-eqz p1, :cond_1
invoke-static {v0}, Lcom/google/firebase/messaging/MessagingAnalytics;->logNotificationOpen(Landroid/os/Bundle;)V
:cond_1
return-void
.end method
.method synthetic lambda$onActivityCreated$0$com-google-firebase-messaging-FcmLifecycleCallbacks(Landroid/content/Intent;)V
.locals 0
return-void
.end method
.method public onActivityCreated(Landroid/app/Activity;Landroid/os/Bundle;)V
.locals 1
invoke-virtual {p1}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;
move-result-object p1
if-eqz p1, :cond_2
iget-object p2, p0, Lcom/google/firebase/messaging/FcmLifecycleCallbacks;->seenIntents: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
invoke-direct {p0, p1}, Lcom/google/firebase/messaging/FcmLifecycleCallbacks;->logNotificationOpen(Landroid/content/Intent;)V
:cond_2
:goto_0
return-void
.end method
.method public onActivityDestroyed(Landroid/app/Activity;)V
.locals 0
return-void
.end method
.method public 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, Lcom/google/firebase/messaging/FcmLifecycleCallbacks;->seenIntents: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 onActivityResumed(Landroid/app/Activity;)V
.locals 0
return-void
.end method
.method public onActivitySaveInstanceState(Landroid/app/Activity;Landroid/os/Bundle;)V
.locals 0
return-void
.end method
.method public onActivityStarted(Landroid/app/Activity;)V
.locals 0
return-void
.end method
.method public onActivityStopped(Landroid/app/Activity;)V
.locals 0
return-void
.end method