granularity level: instruction
.class Lcom/google/firebase/installations/GetIdListener;
.super Ljava/lang/Object;
.source "GetIdListener.java"
.implements Lcom/google/firebase/installations/StateListener;
.field final taskCompletionSource:Lcom/google/android/gms/tasks/TaskCompletionSource;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/android/gms/tasks/TaskCompletionSource<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.method public constructor <init>(Lcom/google/android/gms/tasks/TaskCompletionSource;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/android/gms/tasks/TaskCompletionSource<",
"Ljava/lang/String;",
">;)V"
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/installations/GetIdListener;->taskCompletionSource:Lcom/google/android/gms/tasks/TaskCompletionSource;
return-void
.end method
.method public onException(Ljava/lang/Exception;)Z
.locals 0
const/4 p1, 0x0
return p1
.end method
.method public onStateReached(Lcom/google/firebase/installations/local/PersistedInstallationEntry;)Z
.locals 1
invoke-virtual {p1}, Lcom/google/firebase/installations/local/PersistedInstallationEntry;->isUnregistered()Z
move-result v0
if-nez v0, :cond_1
invoke-virtual {p1}, Lcom/google/firebase/installations/local/PersistedInstallationEntry;->isRegistered()Z
move-result v0
if-nez v0, :cond_1
invoke-virtual {p1}, Lcom/google/firebase/installations/local/PersistedInstallationEntry;->isErrored()Z
move-result v0
if-eqz v0, :cond_0
goto :goto_0
:cond_0
const/4 p1, 0x0
return p1
:cond_1
:goto_0
iget-object v0, p0, Lcom/google/firebase/installations/GetIdListener;->taskCompletionSource:Lcom/google/android/gms/tasks/TaskCompletionSource;
invoke-virtual {p1}, Lcom/google/firebase/installations/local/PersistedInstallationEntry;->getFirebaseInstallationId()Ljava/lang/String;
move-result-object p1
invoke-virtual {v0, p1}, Lcom/google/android/gms/tasks/TaskCompletionSource;->trySetResult(Ljava/lang/Object;)Z
const/4 p1, 0x1
return p1
.end method