ServiceConnection.smali
.class public Lim/tpelyyftgw/messenger/support/customtabsclient/shared/ServiceConnection;
.super Lim/tpelyyftgw/messenger/support/customtabs/CustomTabsServiceConnection;
.source "ServiceConnection.java"
# instance fields
.field private mConnectionCallback:Ljava/lang/ref/WeakReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/ref/WeakReference<",
"Lim/tpelyyftgw/messenger/support/customtabsclient/shared/ServiceConnectionCallback;",
">;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>(Lim/tpelyyftgw/messenger/support/customtabsclient/shared/ServiceConnectionCallback;)V
.registers 3
.param p1, "connectionCallback" # Lim/tpelyyftgw/messenger/support/customtabsclient/shared/ServiceConnectionCallback;
.line 32
invoke-direct {p0}, Lim/tpelyyftgw/messenger/support/customtabs/CustomTabsServiceConnection;-><init>()V
.line 33
new-instance v0, Ljava/lang/ref/WeakReference;
invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
iput-object v0, p0, Lim/tpelyyftgw/messenger/support/customtabsclient/shared/ServiceConnection;->mConnectionCallback:Ljava/lang/ref/WeakReference;
.line 34
return-void
.end method
# virtual methods
.method public onCustomTabsServiceConnected(Landroid/content/ComponentName;Lim/tpelyyftgw/messenger/support/customtabs/CustomTabsClient;)V
.registers 4
.param p1, "name" # Landroid/content/ComponentName;
.param p2, "client" # Lim/tpelyyftgw/messenger/support/customtabs/CustomTabsClient;
.line 38
iget-object v0, p0, Lim/tpelyyftgw/messenger/support/customtabsclient/shared/ServiceConnection;->mConnectionCallback:Ljava/lang/ref/WeakReference;
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lim/tpelyyftgw/messenger/support/customtabsclient/shared/ServiceConnectionCallback;
.line 39
.local v0, "connectionCallback":Lim/tpelyyftgw/messenger/support/customtabsclient/shared/ServiceConnectionCallback;
if-eqz v0, :cond_d
invoke-interface {v0, p2}, Lim/tpelyyftgw/messenger/support/customtabsclient/shared/ServiceConnectionCallback;->onServiceConnected(Lim/tpelyyftgw/messenger/support/customtabs/CustomTabsClient;)V
.line 40
:cond_d
return-void
.end method
.method public onServiceDisconnected(Landroid/content/ComponentName;)V
.registers 3
.param p1, "name" # Landroid/content/ComponentName;
.line 44
iget-object v0, p0, Lim/tpelyyftgw/messenger/support/customtabsclient/shared/ServiceConnection;->mConnectionCallback:Ljava/lang/ref/WeakReference;
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lim/tpelyyftgw/messenger/support/customtabsclient/shared/ServiceConnectionCallback;
.line 45
.local v0, "connectionCallback":Lim/tpelyyftgw/messenger/support/customtabsclient/shared/ServiceConnectionCallback;
if-eqz v0, :cond_d
invoke-interface {v0}, Lim/tpelyyftgw/messenger/support/customtabsclient/shared/ServiceConnectionCallback;->onServiceDisconnected()V
.line 46
:cond_d
return-void
.end method