apkfuckery/com.discord/smali/androidx/browser/customtabs/CustomTabsServiceConnection.smali

109 lines
3.6 KiB
Smali
Raw Normal View History

2020-05-17 12:40:10 +00:00
.class public abstract Landroidx/browser/customtabs/CustomTabsServiceConnection;
.super Ljava/lang/Object;
.source "CustomTabsServiceConnection.java"
# interfaces
.implements Landroid/content/ServiceConnection;
2020-07-08 16:44:49 +00:00
# instance fields
.field public mApplicationContext:Landroid/content/Context;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
2020-05-17 12:40:10 +00:00
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
2020-07-08 16:44:49 +00:00
.method public getApplicationContext()Landroid/content/Context;
.locals 1
.annotation build Landroidx/annotation/Nullable;
.end annotation
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsServiceConnection;->mApplicationContext:Landroid/content/Context;
return-object v0
.end method
2020-05-17 12:40:10 +00:00
.method public abstract onCustomTabsServiceConnected(Landroid/content/ComponentName;Landroidx/browser/customtabs/CustomTabsClient;)V
2020-07-08 16:44:49 +00:00
.param p1 # Landroid/content/ComponentName;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroidx/browser/customtabs/CustomTabsClient;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
2020-05-17 12:40:10 +00:00
.end method
.method public final onServiceConnected(Landroid/content/ComponentName;Landroid/os/IBinder;)V
2020-07-08 16:44:49 +00:00
.locals 2
.param p1 # Landroid/content/ComponentName;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/os/IBinder;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsServiceConnection;->mApplicationContext:Landroid/content/Context;
if-eqz v0, :cond_0
2020-05-17 12:40:10 +00:00
new-instance v0, Landroidx/browser/customtabs/CustomTabsServiceConnection$1;
2020-07-23 01:06:17 +00:00
invoke-static {p2}, Ld0/a/a/b$a;->asInterface(Landroid/os/IBinder;)Ld0/a/a/b;
2020-05-17 12:40:10 +00:00
move-result-object p2
2020-07-08 16:44:49 +00:00
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabsServiceConnection;->mApplicationContext:Landroid/content/Context;
2020-07-23 01:06:17 +00:00
invoke-direct {v0, p0, p2, p1, v1}, Landroidx/browser/customtabs/CustomTabsServiceConnection$1;-><init>(Landroidx/browser/customtabs/CustomTabsServiceConnection;Ld0/a/a/b;Landroid/content/ComponentName;Landroid/content/Context;)V
2020-05-17 12:40:10 +00:00
invoke-virtual {p0, p1, v0}, Landroidx/browser/customtabs/CustomTabsServiceConnection;->onCustomTabsServiceConnected(Landroid/content/ComponentName;Landroidx/browser/customtabs/CustomTabsClient;)V
return-void
2020-07-08 16:44:49 +00:00
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "Custom Tabs Service connected before an applicationcontext has been provided."
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public setApplicationContext(Landroid/content/Context;)V
.locals 0
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
iput-object p1, p0, Landroidx/browser/customtabs/CustomTabsServiceConnection;->mApplicationContext:Landroid/content/Context;
return-void
2020-05-17 12:40:10 +00:00
.end method