You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
260 lines
6.1 KiB
260 lines
6.1 KiB
2 years ago
|
.class public final Lcom/facebook/internal/CallbackManagerImpl;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "CallbackManagerImpl.java"
|
||
|
|
||
|
# interfaces
|
||
|
.implements Lcom/facebook/CallbackManager;
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/MemberClasses;
|
||
|
value = {
|
||
|
Lcom/facebook/internal/CallbackManagerImpl$RequestCodeOffset;,
|
||
|
Lcom/facebook/internal/CallbackManagerImpl$Callback;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# static fields
|
||
|
.field private static staticCallbacks:Ljava/util/Map;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Ljava/util/Map",
|
||
|
"<",
|
||
|
"Ljava/lang/Integer;",
|
||
|
"Lcom/facebook/internal/CallbackManagerImpl$Callback;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field private callbacks:Ljava/util/Map;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Ljava/util/Map",
|
||
|
"<",
|
||
|
"Ljava/lang/Integer;",
|
||
|
"Lcom/facebook/internal/CallbackManagerImpl$Callback;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method static constructor <clinit>()V
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 37
|
||
|
new-instance v0, Ljava/util/HashMap;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
|
||
|
|
||
|
sput-object v0, Lcom/facebook/internal/CallbackManagerImpl;->staticCallbacks:Ljava/util/Map;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public constructor <init>()V
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 36
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
.line 71
|
||
|
new-instance v0, Ljava/util/HashMap;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
|
||
|
|
||
|
iput-object v0, p0, Lcom/facebook/internal/CallbackManagerImpl;->callbacks:Ljava/util/Map;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method private static declared-synchronized getStaticCallback(Ljava/lang/Integer;)Lcom/facebook/internal/CallbackManagerImpl$Callback;
|
||
|
.locals 2
|
||
|
|
||
|
.prologue
|
||
|
.line 57
|
||
|
const-class v1, Lcom/facebook/internal/CallbackManagerImpl;
|
||
|
|
||
|
monitor-enter v1
|
||
|
|
||
|
:try_start_0
|
||
|
sget-object v0, Lcom/facebook/internal/CallbackManagerImpl;->staticCallbacks:Ljava/util/Map;
|
||
|
|
||
|
invoke-interface {v0, p0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Lcom/facebook/internal/CallbackManagerImpl$Callback;
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
monitor-exit v1
|
||
|
|
||
|
return-object v0
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception v0
|
||
|
|
||
|
monitor-exit v1
|
||
|
|
||
|
throw v0
|
||
|
.end method
|
||
|
|
||
|
.method public static declared-synchronized registerStaticCallback(ILcom/facebook/internal/CallbackManagerImpl$Callback;)V
|
||
|
.locals 3
|
||
|
|
||
|
.prologue
|
||
|
.line 49
|
||
|
const-class v1, Lcom/facebook/internal/CallbackManagerImpl;
|
||
|
|
||
|
monitor-enter v1
|
||
|
|
||
|
:try_start_0
|
||
|
const-string v0, "callback"
|
||
|
|
||
|
invoke-static {p1, v0}, Lcom/facebook/internal/Validate;->notNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
.line 50
|
||
|
sget-object v0, Lcom/facebook/internal/CallbackManagerImpl;->staticCallbacks:Ljava/util/Map;
|
||
|
|
||
|
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-interface {v0, v2}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
.line 54
|
||
|
:goto_0
|
||
|
monitor-exit v1
|
||
|
|
||
|
return-void
|
||
|
|
||
|
.line 53
|
||
|
:cond_0
|
||
|
:try_start_1
|
||
|
sget-object v0, Lcom/facebook/internal/CallbackManagerImpl;->staticCallbacks:Ljava/util/Map;
|
||
|
|
||
|
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-interface {v0, v2, p1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 49
|
||
|
:catchall_0
|
||
|
move-exception v0
|
||
|
|
||
|
monitor-exit v1
|
||
|
|
||
|
throw v0
|
||
|
.end method
|
||
|
|
||
|
.method private static runStaticCallback(IILandroid/content/Intent;)Z
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 64
|
||
|
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-static {v0}, Lcom/facebook/internal/CallbackManagerImpl;->getStaticCallback(Ljava/lang/Integer;)Lcom/facebook/internal/CallbackManagerImpl$Callback;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
.line 65
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
.line 66
|
||
|
invoke-interface {v0, p1, p2}, Lcom/facebook/internal/CallbackManagerImpl$Callback;->onActivityResult(ILandroid/content/Intent;)Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
.line 68
|
||
|
:goto_0
|
||
|
return v0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
goto :goto_0
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public onActivityResult(IILandroid/content/Intent;)Z
|
||
|
.locals 2
|
||
|
|
||
|
.prologue
|
||
|
.line 80
|
||
|
iget-object v0, p0, Lcom/facebook/internal/CallbackManagerImpl;->callbacks:Ljava/util/Map;
|
||
|
|
||
|
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Lcom/facebook/internal/CallbackManagerImpl$Callback;
|
||
|
|
||
|
.line 81
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
.line 82
|
||
|
invoke-interface {v0, p2, p3}, Lcom/facebook/internal/CallbackManagerImpl$Callback;->onActivityResult(ILandroid/content/Intent;)Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
.line 84
|
||
|
:goto_0
|
||
|
return v0
|
||
|
|
||
|
:cond_0
|
||
|
invoke-static {p1, p2, p3}, Lcom/facebook/internal/CallbackManagerImpl;->runStaticCallback(IILandroid/content/Intent;)Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
goto :goto_0
|
||
|
.end method
|
||
|
|
||
|
.method public registerCallback(ILcom/facebook/internal/CallbackManagerImpl$Callback;)V
|
||
|
.locals 2
|
||
|
|
||
|
.prologue
|
||
|
.line 74
|
||
|
const-string v0, "callback"
|
||
|
|
||
|
invoke-static {p2, v0}, Lcom/facebook/internal/Validate;->notNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
.line 75
|
||
|
iget-object v0, p0, Lcom/facebook/internal/CallbackManagerImpl;->callbacks:Ljava/util/Map;
|
||
|
|
||
|
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-interface {v0, v1, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
.line 76
|
||
|
return-void
|
||
|
.end method
|