Files
vtosters/smali/smali_classes3/android/support/customtabs/CustomTabsIntent$a.smali
T
2022-03-24 19:37:43 +03:00

190 lines
5.5 KiB
Smali

.class public final Landroid/support/customtabs/CustomTabsIntent$a;
.super Ljava/lang/Object;
.source "CustomTabsIntent.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroid/support/customtabs/CustomTabsIntent;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "a"
.end annotation
# instance fields
.field private final a:Landroid/content/Intent;
.field private b:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Landroid/os/Bundle;",
">;"
}
.end annotation
.end field
.field private c:Landroid/os/Bundle;
.field private d:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Landroid/os/Bundle;",
">;"
}
.end annotation
.end field
.field private e:Z
# direct methods
.method public constructor <init>()V
.locals 1
const/4 v0, 0x0
.line 285
invoke-direct {p0, v0}, Landroid/support/customtabs/CustomTabsIntent$a;-><init>(Landroid/support/customtabs/CustomTabsSession;)V
return-void
.end method
.method public constructor <init>(Landroid/support/customtabs/CustomTabsSession;)V
.locals 3
.line 297
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 274
new-instance v0, Landroid/content/Intent;
const-string v1, "android.intent.action.VIEW"
invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
iput-object v0, p0, Landroid/support/customtabs/CustomTabsIntent$a;->a:Landroid/content/Intent;
const/4 v0, 0x0
.line 275
iput-object v0, p0, Landroid/support/customtabs/CustomTabsIntent$a;->b:Ljava/util/ArrayList;
.line 276
iput-object v0, p0, Landroid/support/customtabs/CustomTabsIntent$a;->c:Landroid/os/Bundle;
.line 277
iput-object v0, p0, Landroid/support/customtabs/CustomTabsIntent$a;->d:Ljava/util/ArrayList;
const/4 v1, 0x1
.line 278
iput-boolean v1, p0, Landroid/support/customtabs/CustomTabsIntent$a;->e:Z
if-eqz p1, :cond_0
.line 298
iget-object v1, p0, Landroid/support/customtabs/CustomTabsIntent$a;->a:Landroid/content/Intent;
invoke-virtual {p1}, Landroid/support/customtabs/CustomTabsSession;->b()Landroid/content/ComponentName;
move-result-object v2
invoke-virtual {v2}, Landroid/content/ComponentName;->getPackageName()Ljava/lang/String;
move-result-object v2
invoke-virtual {v1, v2}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
.line 299
:cond_0
new-instance v1, Landroid/os/Bundle;
invoke-direct {v1}, Landroid/os/Bundle;-><init>()V
const-string v2, "android.support.customtabs.extra.SESSION"
if-nez p1, :cond_1
goto :goto_0
.line 301
:cond_1
invoke-virtual {p1}, Landroid/support/customtabs/CustomTabsSession;->a()Landroid/os/IBinder;
move-result-object v0
.line 300
:goto_0
invoke-static {v1, v2, v0}, Landroid/support/v4/app/BundleCompat;->a(Landroid/os/Bundle;Ljava/lang/String;Landroid/os/IBinder;)V
.line 302
iget-object p1, p0, Landroid/support/customtabs/CustomTabsIntent$a;->a:Landroid/content/Intent;
invoke-virtual {p1, v1}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;
return-void
.end method
# virtual methods
.method public a()Landroid/support/customtabs/CustomTabsIntent;
.locals 4
.line 517
iget-object v0, p0, Landroid/support/customtabs/CustomTabsIntent$a;->b:Ljava/util/ArrayList;
if-eqz v0, :cond_0
.line 518
iget-object v0, p0, Landroid/support/customtabs/CustomTabsIntent$a;->a:Landroid/content/Intent;
const-string v1, "android.support.customtabs.extra.MENU_ITEMS"
iget-object v2, p0, Landroid/support/customtabs/CustomTabsIntent$a;->b:Ljava/util/ArrayList;
invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putParcelableArrayListExtra(Ljava/lang/String;Ljava/util/ArrayList;)Landroid/content/Intent;
.line 520
:cond_0
iget-object v0, p0, Landroid/support/customtabs/CustomTabsIntent$a;->d:Ljava/util/ArrayList;
if-eqz v0, :cond_1
.line 521
iget-object v0, p0, Landroid/support/customtabs/CustomTabsIntent$a;->a:Landroid/content/Intent;
const-string v1, "android.support.customtabs.extra.TOOLBAR_ITEMS"
iget-object v2, p0, Landroid/support/customtabs/CustomTabsIntent$a;->d:Ljava/util/ArrayList;
invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putParcelableArrayListExtra(Ljava/lang/String;Ljava/util/ArrayList;)Landroid/content/Intent;
.line 523
:cond_1
iget-object v0, p0, Landroid/support/customtabs/CustomTabsIntent$a;->a:Landroid/content/Intent;
const-string v1, "android.support.customtabs.extra.EXTRA_ENABLE_INSTANT_APPS"
iget-boolean v2, p0, Landroid/support/customtabs/CustomTabsIntent$a;->e:Z
invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;
.line 524
new-instance v0, Landroid/support/customtabs/CustomTabsIntent;
iget-object v1, p0, Landroid/support/customtabs/CustomTabsIntent$a;->a:Landroid/content/Intent;
iget-object v2, p0, Landroid/support/customtabs/CustomTabsIntent$a;->c:Landroid/os/Bundle;
const/4 v3, 0x0
invoke-direct {v0, v1, v2, v3}, Landroid/support/customtabs/CustomTabsIntent;-><init>(Landroid/content/Intent;Landroid/os/Bundle;Landroid/support/customtabs/CustomTabsIntent$1;)V
return-object v0
.end method