89 lines
2.1 KiB
Smali
89 lines
2.1 KiB
Smali
.class public Lcom/vk/common/links/OpenCallbackImpl;
|
|
.super Ljava/lang/Object;
|
|
.source "OpenCallbackImpl.kt"
|
|
|
|
# interfaces
|
|
.implements Lcom/vk/common/links/OpenCallback;
|
|
|
|
|
|
# instance fields
|
|
.field private final a:Ljava/lang/ref/WeakReference;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/ref/WeakReference<",
|
|
"Landroid/content/Context;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 2
|
|
new-instance v0, Ljava/lang/ref/WeakReference;
|
|
|
|
invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
|
|
|
|
iput-object v0, p0, Lcom/vk/common/links/OpenCallbackImpl;->a:Ljava/lang/ref/WeakReference;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()V
|
|
.locals 0
|
|
|
|
.line 2
|
|
invoke-static {p0}, Lcom/vk/common/links/OpenCallback$a;->b(Lcom/vk/common/links/OpenCallback;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Ljava/lang/Throwable;)V
|
|
.locals 2
|
|
|
|
.line 3
|
|
iget-object v0, p0, Lcom/vk/common/links/OpenCallbackImpl;->a:Ljava/lang/ref/WeakReference;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/content/Context;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string v1, "contextRef.get() ?: return"
|
|
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->a(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
instance-of v1, p1, Lcom/vk/api/sdk/exceptions/VKApiExecutionException;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 5
|
|
check-cast p1, Lcom/vk/api/sdk/exceptions/VKApiExecutionException;
|
|
|
|
invoke-static {v0, p1}, Lcom/vk/api/base/ApiUtils;->b(Landroid/content/Context;Lcom/vk/api/sdk/exceptions/VKApiExecutionException;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Z)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-static {p0, p1}, Lcom/vk/common/links/OpenCallback$a;->a(Lcom/vk/common/links/OpenCallback;Z)V
|
|
|
|
return-void
|
|
.end method
|