.class Lcom/ea/eadp/pushnotification/services/AndroidPushService$2$1; .super Ljava/lang/Object; .source "SourceFile" # interfaces .implements Lcom/google/android/gms/tasks/OnCompleteListener; # annotations .annotation system Ldalvik/annotation/EnclosingMethod; value = Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;->run()V .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x1 name = null .end annotation .annotation system Ldalvik/annotation/Signature; value = { "Ljava/lang/Object;", "Lcom/google/android/gms/tasks/OnCompleteListener<", "Ljava/lang/String;", ">;" } .end annotation # instance fields .field final synthetic this$1:Lcom/ea/eadp/pushnotification/services/AndroidPushService$2; # direct methods .method public constructor (Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;)V .locals 0 iput-object p1, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2$1;->this$1:Lcom/ea/eadp/pushnotification/services/AndroidPushService$2; .line 166 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method # virtual methods .method public onComplete(Lcom/google/android/gms/tasks/Task;)V .locals 4 .param p1 # Lcom/google/android/gms/tasks/Task; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/google/android/gms/tasks/Task<", "Ljava/lang/String;", ">;)V" } .end annotation .line 170 invoke-virtual {p1}, Lcom/google/android/gms/tasks/Task;->isSuccessful()Z move-result v0 const-string v1, "PushManager" if-nez v0, :cond_0 .line 172 invoke-virtual {p1}, Lcom/google/android/gms/tasks/Task;->getException()Ljava/lang/Exception; move-result-object p1 invoke-virtual {p1}, Ljava/lang/Throwable;->getLocalizedMessage()Ljava/lang/String; move-result-object p1 filled-new-array {p1}, [Ljava/lang/Object; move-result-object p1 const-string v0, "Failed to get firebase instance id: %s" invoke-static {v1, v0, p1}, Lcom/ea/nimble/Log$Helper;->LOGES(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V iget-object p1, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2$1;->this$1:Lcom/ea/eadp/pushnotification/services/AndroidPushService$2; .line 173 iget-object p1, p1, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;->val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig; const/4 v0, 0x1 invoke-virtual {p1, v0}, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->setDisabled(Z)V iget-object p1, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2$1;->this$1:Lcom/ea/eadp/pushnotification/services/AndroidPushService$2; .line 174 iget-object p1, p1, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;->val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig; const-string v0, "client_register_failure" invoke-virtual {p1, v0}, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->setDisabledReason(Ljava/lang/String;)V goto :goto_0 .line 178 :cond_0 invoke-virtual {p1}, Lcom/google/android/gms/tasks/Task;->getResult()Ljava/lang/Object; move-result-object p1 check-cast p1, Ljava/lang/String; iget-object v0, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2$1;->this$1:Lcom/ea/eadp/pushnotification/services/AndroidPushService$2; .line 179 iget-object v0, v0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;->val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig; invoke-virtual {v0, p1}, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->setRegistrationIdentifier(Ljava/lang/String;)V iget-object v0, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2$1;->this$1:Lcom/ea/eadp/pushnotification/services/AndroidPushService$2; .line 180 iget-object v0, v0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;->val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig; const/4 v2, 0x0 invoke-virtual {v0, v2}, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->setDisabled(Z)V iget-object v0, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2$1;->this$1:Lcom/ea/eadp/pushnotification/services/AndroidPushService$2; .line 181 iget-object v0, v0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;->val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig; const/4 v3, 0x0 invoke-virtual {v0, v3}, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->setDisabledReason(Ljava/lang/String;)V const-string v0, "Device registered on FCM. Registration id: %s" filled-new-array {p1}, [Ljava/lang/Object; move-result-object p1 .line 182 invoke-static {v0, p1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; move-result-object p1 new-array v0, v2, [Ljava/lang/Object; invoke-static {v1, p1, v0}, Lcom/ea/nimble/Log$Helper;->LOGIS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V :try_start_0 iget-object p1, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2$1;->this$1:Lcom/ea/eadp/pushnotification/services/AndroidPushService$2; .line 186 iget-object p1, p1, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService; invoke-static {p1}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->access$100(Lcom/ea/eadp/pushnotification/services/AndroidPushService;)Landroid/content/Context; move-result-object p1 invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context; move-result-object p1 check-cast p1, Landroid/app/Application; .line 187 new-instance v0, Lcom/ea/eadp/pushnotification/lifecycles/PushLifecycleCallbacks; invoke-direct {v0}, Lcom/ea/eadp/pushnotification/lifecycles/PushLifecycleCallbacks;->()V invoke-virtual {p1, v0}, Landroid/app/Application;->registerActivityLifecycleCallbacks(Landroid/app/Application$ActivityLifecycleCallbacks;)V :try_end_0 .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 goto :goto_0 :catch_0 move-exception p1 .line 191 invoke-virtual {p1}, Ljava/lang/Throwable;->getLocalizedMessage()Ljava/lang/String; move-result-object p1 filled-new-array {p1}, [Ljava/lang/Object; move-result-object p1 const-string v0, "Failed to register activity lifecycle callbacks: %s" invoke-static {v1, v0, p1}, Lcom/ea/nimble/Log$Helper;->LOGES(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V :goto_0 iget-object p1, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2$1;->this$1:Lcom/ea/eadp/pushnotification/services/AndroidPushService$2; .line 194 iget-object v0, p1, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService; iget-object p1, p1, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;->val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig; invoke-virtual {v0, p1}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->registerDevice(Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;)V return-void .end method