147 lines
3.2 KiB
Smali
147 lines
3.2 KiB
Smali
.class Lcom/google/firebase/messaging/FcmLifecycleCallbacks;
|
|
.super Ljava/lang/Object;
|
|
.source "com.google.firebase:firebase-messaging@@23.0.0"
|
|
|
|
# interfaces
|
|
.implements Landroid/app/Application$ActivityLifecycleCallbacks;
|
|
|
|
|
|
# instance fields
|
|
.field private final seenIntents:Ljava/util/Set;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Set<",
|
|
"Landroid/content/Intent;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
new-instance v0, Ljava/util/WeakHashMap;
|
|
|
|
invoke-direct {v0}, Ljava/util/WeakHashMap;-><init>()V
|
|
|
|
.line 2
|
|
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
|
|
|
|
|
|
# virtual methods
|
|
.method public onActivityCreated(Landroid/app/Activity;Landroid/os/Bundle;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
iget-object p2, p0, Lcom/google/firebase/messaging/FcmLifecycleCallbacks;->seenIntents:Ljava/util/Set;
|
|
|
|
.line 2
|
|
invoke-interface {p2, p1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
|
|
|
|
move-result p2
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 3
|
|
:cond_0
|
|
invoke-virtual {p1}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
const-string p2, "gcm.n.analytics_data"
|
|
|
|
.line 4
|
|
invoke-virtual {p1, p2}, Landroid/os/Bundle;->getBundle(Ljava/lang/String;)Landroid/os/Bundle;
|
|
|
|
move-result-object p1
|
|
|
|
.line 5
|
|
invoke-static {p1}, Lcom/google/firebase/messaging/MessagingAnalytics;->shouldUploadScionMetrics(Landroid/os/Bundle;)Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
.line 6
|
|
invoke-static {p1}, Lcom/google/firebase/messaging/MessagingAnalytics;->logNotificationOpen(Landroid/os/Bundle;)V
|
|
|
|
:cond_1
|
|
: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
|
|
|
|
.line 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;
|
|
|
|
.line 2
|
|
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
|