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.
656 lines
21 KiB
656 lines
21 KiB
2 years ago
|
.class public final Landroid/support/customtabs/CustomTabsIntent$Builder;
|
||
|
.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 = "Builder"
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field private mActionButtons:Ljava/util/ArrayList;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Ljava/util/ArrayList",
|
||
|
"<",
|
||
|
"Landroid/os/Bundle;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field private mInstantAppsEnabled:Z
|
||
|
|
||
|
.field private final mIntent:Landroid/content/Intent;
|
||
|
|
||
|
.field private mMenuItems:Ljava/util/ArrayList;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Ljava/util/ArrayList",
|
||
|
"<",
|
||
|
"Landroid/os/Bundle;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field private mStartAnimationBundle:Landroid/os/Bundle;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>()V
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 285
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
invoke-direct {p0, v0}, Landroid/support/customtabs/CustomTabsIntent$Builder;-><init>(Landroid/support/customtabs/CustomTabsSession;)V
|
||
|
|
||
|
.line 286
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public constructor <init>(Landroid/support/customtabs/CustomTabsSession;)V
|
||
|
.locals 3
|
||
|
.param p1 # Landroid/support/customtabs/CustomTabsSession;
|
||
|
.annotation build Landroid/support/annotation/Nullable;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
.prologue
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
.line 297
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
.line 274
|
||
|
new-instance v1, Landroid/content/Intent;
|
||
|
|
||
|
const-string v2, "android.intent.action.VIEW"
|
||
|
|
||
|
invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
iput-object v1, p0, Landroid/support/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
|
||
|
|
||
|
.line 275
|
||
|
iput-object v0, p0, Landroid/support/customtabs/CustomTabsIntent$Builder;->mMenuItems:Ljava/util/ArrayList;
|
||
|
|
||
|
.line 276
|
||
|
iput-object v0, p0, Landroid/support/customtabs/CustomTabsIntent$Builder;->mStartAnimationBundle:Landroid/os/Bundle;
|
||
|
|
||
|
.line 277
|
||
|
iput-object v0, p0, Landroid/support/customtabs/CustomTabsIntent$Builder;->mActionButtons:Ljava/util/ArrayList;
|
||
|
|
||
|
.line 278
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
iput-boolean v1, p0, Landroid/support/customtabs/CustomTabsIntent$Builder;->mInstantAppsEnabled:Z
|
||
|
|
||
|
.line 298
|
||
|
if-eqz p1, :cond_0
|
||
|
|
||
|
iget-object v1, p0, Landroid/support/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
|
||
|
|
||
|
invoke-virtual {p1}, Landroid/support/customtabs/CustomTabsSession;->getComponentName()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
|
||
|
|
||
|
.line 300
|
||
|
const-string v2, "android.support.customtabs.extra.SESSION"
|
||
|
|
||
|
if-nez p1, :cond_1
|
||
|
|
||
|
:goto_0
|
||
|
invoke-static {v1, v2, v0}, Landroid/support/v4/app/BundleCompat;->putBinder(Landroid/os/Bundle;Ljava/lang/String;Landroid/os/IBinder;)V
|
||
|
|
||
|
.line 302
|
||
|
iget-object v0, p0, Landroid/support/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;
|
||
|
|
||
|
.line 303
|
||
|
return-void
|
||
|
|
||
|
.line 301
|
||
|
:cond_1
|
||
|
invoke-virtual {p1}, Landroid/support/customtabs/CustomTabsSession;->getBinder()Landroid/os/IBinder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
goto :goto_0
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public addDefaultShareMenuItem()Landroid/support/customtabs/CustomTabsIntent$Builder;
|
||
|
.locals 3
|
||
|
|
||
|
.prologue
|
||
|
.line 363
|
||
|
iget-object v0, p0, Landroid/support/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
|
||
|
|
||
|
const-string v1, "android.support.customtabs.extra.SHARE_MENU_ITEM"
|
||
|
|
||
|
const/4 v2, 0x1
|
||
|
|
||
|
invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;
|
||
|
|
||
|
.line 364
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public addMenuItem(Ljava/lang/String;Landroid/app/PendingIntent;)Landroid/support/customtabs/CustomTabsIntent$Builder;
|
||
|
.locals 2
|
||
|
.param p1 # Ljava/lang/String;
|
||
|
.annotation build Landroid/support/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.param p2 # Landroid/app/PendingIntent;
|
||
|
.annotation build Landroid/support/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
.prologue
|
||
|
.line 351
|
||
|
iget-object v0, p0, Landroid/support/customtabs/CustomTabsIntent$Builder;->mMenuItems:Ljava/util/ArrayList;
|
||
|
|
||
|
if-nez v0, :cond_0
|
||
|
|
||
|
new-instance v0, Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
||
|
|
||
|
iput-object v0, p0, Landroid/support/customtabs/CustomTabsIntent$Builder;->mMenuItems:Ljava/util/ArrayList;
|
||
|
|
||
|
.line 352
|
||
|
:cond_0
|
||
|
new-instance v0, Landroid/os/Bundle;
|
||
|
|
||
|
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
|
||
|
|
||
|
.line 353
|
||
|
const-string v1, "android.support.customtabs.customaction.MENU_ITEM_TITLE"
|
||
|
|
||
|
invoke-virtual {v0, v1, p1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
.line 354
|
||
|
const-string v1, "android.support.customtabs.customaction.PENDING_INTENT"
|
||
|
|
||
|
invoke-virtual {v0, v1, p2}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V
|
||
|
|
||
|
.line 355
|
||
|
iget-object v1, p0, Landroid/support/customtabs/CustomTabsIntent$Builder;->mMenuItems:Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
||
|
|
||
|
.line 356
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public addToolbarItem(ILandroid/graphics/Bitmap;Ljava/lang/String;Landroid/app/PendingIntent;)Landroid/support/customtabs/CustomTabsIntent$Builder;
|
||
|
.locals 2
|
||
|
.param p2 # Landroid/graphics/Bitmap;
|
||
|
.annotation build Landroid/support/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.param p3 # Ljava/lang/String;
|
||
|
.annotation build Landroid/support/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.annotation runtime Ljava/lang/Deprecated;
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
.line 425
|
||
|
iget-object v0, p0, Landroid/support/customtabs/CustomTabsIntent$Builder;->mActionButtons:Ljava/util/ArrayList;
|
||
|
|
||
|
if-nez v0, :cond_0
|
||
|
|
||
|
.line 426
|
||
|
new-instance v0, Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
||
|
|
||
|
iput-object v0, p0, Landroid/support/customtabs/CustomTabsIntent$Builder;->mActionButtons:Ljava/util/ArrayList;
|
||
|
|
||
|
.line 428
|
||
|
:cond_0
|
||
|
iget-object v0, p0, Landroid/support/customtabs/CustomTabsIntent$Builder;->mActionButtons:Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
const/4 v1, 0x5
|
||
|
|
||
|
if-lt v0, v1, :cond_1
|
||
|
|
||
|
.line 429
|
||
|
new-instance v0, Ljava/lang/IllegalStateException;
|
||
|
|
||
|
const-string v1, "Exceeded maximum toolbar item count of 5"
|
||
|
|
||
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
throw v0
|
||
|
|
||
|
.line 432
|
||
|
:cond_1
|
||
|
new-instance v0, Landroid/os/Bundle;
|
||
|
|
||
|
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
|
||
|
|
||
|
.line 433
|
||
|
const-string v1, "android.support.customtabs.customaction.ID"
|
||
|
|
||
|
invoke-virtual {v0, v1, p1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
|
||
|
|
||
|
.line 434
|
||
|
const-string v1, "android.support.customtabs.customaction.ICON"
|
||
|
|
||
|
invoke-virtual {v0, v1, p2}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V
|
||
|
|
||
|
.line 435
|
||
|
const-string v1, "android.support.customtabs.customaction.DESCRIPTION"
|
||
|
|
||
|
invoke-virtual {v0, v1, p3}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
.line 436
|
||
|
const-string v1, "android.support.customtabs.customaction.PENDING_INTENT"
|
||
|
|
||
|
invoke-virtual {v0, v1, p4}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V
|
||
|
|
||
|
.line 437
|
||
|
iget-object v1, p0, Landroid/support/customtabs/CustomTabsIntent$Builder;->mActionButtons:Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
||
|
|
||
|
.line 438
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public build()Landroid/support/customtabs/CustomTabsIntent;
|
||
|
.locals 4
|
||
|
|
||
|
.prologue
|
||
|
.line 517
|
||
|
iget-object v0, p0, Landroid/support/customtabs/CustomTabsIntent$Builder;->mMenuItems:Ljava/util/ArrayList;
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
.line 518
|
||
|
iget-object v0, p0, Landroid/support/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
|
||
|
|
||
|
const-string v1, "android.support.customtabs.extra.MENU_ITEMS"
|
||
|
|
||
|
iget-object v2, p0, Landroid/support/customtabs/CustomTabsIntent$Builder;->mMenuItems: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$Builder;->mActionButtons:Ljava/util/ArrayList;
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
.line 521
|
||
|
iget-object v0, p0, Landroid/support/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
|
||
|
|
||
|
const-string v1, "android.support.customtabs.extra.TOOLBAR_ITEMS"
|
||
|
|
||
|
iget-object v2, p0, Landroid/support/customtabs/CustomTabsIntent$Builder;->mActionButtons: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$Builder;->mIntent:Landroid/content/Intent;
|
||
|
|
||
|
const-string v1, "android.support.customtabs.extra.EXTRA_ENABLE_INSTANT_APPS"
|
||
|
|
||
|
iget-boolean v2, p0, Landroid/support/customtabs/CustomTabsIntent$Builder;->mInstantAppsEnabled: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$Builder;->mIntent:Landroid/content/Intent;
|
||
|
|
||
|
iget-object v2, p0, Landroid/support/customtabs/CustomTabsIntent$Builder;->mStartAnimationBundle: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
|
||
|
|
||
|
.method public enableUrlBarHiding()Landroid/support/customtabs/CustomTabsIntent$Builder;
|
||
|
.locals 3
|
||
|
|
||
|
.prologue
|
||
|
.line 319
|
||
|
iget-object v0, p0, Landroid/support/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
|
||
|
|
||
|
const-string v1, "android.support.customtabs.extra.ENABLE_URLBAR_HIDING"
|
||
|
|
||
|
const/4 v2, 0x1
|
||
|
|
||
|
invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;
|
||
|
|
||
|
.line 320
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public setActionButton(Landroid/graphics/Bitmap;Ljava/lang/String;Landroid/app/PendingIntent;)Landroid/support/customtabs/CustomTabsIntent$Builder;
|
||
|
.locals 1
|
||
|
.param p1 # Landroid/graphics/Bitmap;
|
||
|
.annotation build Landroid/support/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.param p2 # Ljava/lang/String;
|
||
|
.annotation build Landroid/support/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.param p3 # Landroid/app/PendingIntent;
|
||
|
.annotation build Landroid/support/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
.prologue
|
||
|
.line 401
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
invoke-virtual {p0, p1, p2, p3, v0}, Landroid/support/customtabs/CustomTabsIntent$Builder;->setActionButton(Landroid/graphics/Bitmap;Ljava/lang/String;Landroid/app/PendingIntent;Z)Landroid/support/customtabs/CustomTabsIntent$Builder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public setActionButton(Landroid/graphics/Bitmap;Ljava/lang/String;Landroid/app/PendingIntent;Z)Landroid/support/customtabs/CustomTabsIntent$Builder;
|
||
|
.locals 3
|
||
|
.param p1 # Landroid/graphics/Bitmap;
|
||
|
.annotation build Landroid/support/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.param p2 # Ljava/lang/String;
|
||
|
.annotation build Landroid/support/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.param p3 # Landroid/app/PendingIntent;
|
||
|
.annotation build Landroid/support/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
.prologue
|
||
|
.line 383
|
||
|
new-instance v0, Landroid/os/Bundle;
|
||
|
|
||
|
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
|
||
|
|
||
|
.line 384
|
||
|
const-string v1, "android.support.customtabs.customaction.ID"
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
|
||
|
|
||
|
.line 385
|
||
|
const-string v1, "android.support.customtabs.customaction.ICON"
|
||
|
|
||
|
invoke-virtual {v0, v1, p1}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V
|
||
|
|
||
|
.line 386
|
||
|
const-string v1, "android.support.customtabs.customaction.DESCRIPTION"
|
||
|
|
||
|
invoke-virtual {v0, v1, p2}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
.line 387
|
||
|
const-string v1, "android.support.customtabs.customaction.PENDING_INTENT"
|
||
|
|
||
|
invoke-virtual {v0, v1, p3}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V
|
||
|
|
||
|
.line 388
|
||
|
iget-object v1, p0, Landroid/support/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
|
||
|
|
||
|
const-string v2, "android.support.customtabs.extra.ACTION_BUTTON_BUNDLE"
|
||
|
|
||
|
invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Bundle;)Landroid/content/Intent;
|
||
|
|
||
|
.line 389
|
||
|
iget-object v0, p0, Landroid/support/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
|
||
|
|
||
|
const-string v1, "android.support.customtabs.extra.TINT_ACTION_BUTTON"
|
||
|
|
||
|
invoke-virtual {v0, v1, p4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;
|
||
|
|
||
|
.line 390
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public setCloseButtonIcon(Landroid/graphics/Bitmap;)Landroid/support/customtabs/CustomTabsIntent$Builder;
|
||
|
.locals 2
|
||
|
.param p1 # Landroid/graphics/Bitmap;
|
||
|
.annotation build Landroid/support/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
.prologue
|
||
|
.line 329
|
||
|
iget-object v0, p0, Landroid/support/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
|
||
|
|
||
|
const-string v1, "android.support.customtabs.extra.CLOSE_BUTTON_ICON"
|
||
|
|
||
|
invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;
|
||
|
|
||
|
.line 330
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public setExitAnimations(Landroid/content/Context;II)Landroid/support/customtabs/CustomTabsIntent$Builder;
|
||
|
.locals 3
|
||
|
.param p1 # Landroid/content/Context;
|
||
|
.annotation build Landroid/support/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.param p2 # I
|
||
|
.annotation build Landroid/support/annotation/AnimRes;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.param p3 # I
|
||
|
.annotation build Landroid/support/annotation/AnimRes;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
.prologue
|
||
|
.line 506
|
||
|
invoke-static {p1, p2, p3}, Landroid/support/v4/app/ActivityOptionsCompat;->makeCustomAnimation(Landroid/content/Context;II)Landroid/support/v4/app/ActivityOptionsCompat;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
.line 507
|
||
|
invoke-virtual {v0}, Landroid/support/v4/app/ActivityOptionsCompat;->toBundle()Landroid/os/Bundle;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
.line 508
|
||
|
iget-object v1, p0, Landroid/support/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
|
||
|
|
||
|
const-string v2, "android.support.customtabs.extra.EXIT_ANIMATION_BUNDLE"
|
||
|
|
||
|
invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Bundle;)Landroid/content/Intent;
|
||
|
|
||
|
.line 509
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public setInstantAppsEnabled(Z)Landroid/support/customtabs/CustomTabsIntent$Builder;
|
||
|
.locals 0
|
||
|
|
||
|
.prologue
|
||
|
.line 479
|
||
|
iput-boolean p1, p0, Landroid/support/customtabs/CustomTabsIntent$Builder;->mInstantAppsEnabled:Z
|
||
|
|
||
|
.line 480
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public setSecondaryToolbarColor(I)Landroid/support/customtabs/CustomTabsIntent$Builder;
|
||
|
.locals 2
|
||
|
.param p1 # I
|
||
|
.annotation build Landroid/support/annotation/ColorInt;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
.prologue
|
||
|
.line 446
|
||
|
iget-object v0, p0, Landroid/support/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
|
||
|
|
||
|
const-string v1, "android.support.customtabs.extra.SECONDARY_TOOLBAR_COLOR"
|
||
|
|
||
|
invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
|
||
|
|
||
|
.line 447
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public setSecondaryToolbarViews(Landroid/widget/RemoteViews;[ILandroid/app/PendingIntent;)Landroid/support/customtabs/CustomTabsIntent$Builder;
|
||
|
.locals 2
|
||
|
.param p1 # Landroid/widget/RemoteViews;
|
||
|
.annotation build Landroid/support/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.param p2 # [I
|
||
|
.annotation build Landroid/support/annotation/Nullable;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.param p3 # Landroid/app/PendingIntent;
|
||
|
.annotation build Landroid/support/annotation/Nullable;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
.prologue
|
||
|
.line 467
|
||
|
iget-object v0, p0, Landroid/support/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
|
||
|
|
||
|
const-string v1, "android.support.customtabs.extra.EXTRA_REMOTEVIEWS"
|
||
|
|
||
|
invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;
|
||
|
|
||
|
.line 468
|
||
|
iget-object v0, p0, Landroid/support/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
|
||
|
|
||
|
const-string v1, "android.support.customtabs.extra.EXTRA_REMOTEVIEWS_VIEW_IDS"
|
||
|
|
||
|
invoke-virtual {v0, v1, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;[I)Landroid/content/Intent;
|
||
|
|
||
|
.line 469
|
||
|
iget-object v0, p0, Landroid/support/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
|
||
|
|
||
|
const-string v1, "android.support.customtabs.extra.EXTRA_REMOTEVIEWS_PENDINGINTENT"
|
||
|
|
||
|
invoke-virtual {v0, v1, p3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;
|
||
|
|
||
|
.line 470
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public setShowTitle(Z)Landroid/support/customtabs/CustomTabsIntent$Builder;
|
||
|
.locals 3
|
||
|
|
||
|
.prologue
|
||
|
.line 339
|
||
|
iget-object v1, p0, Landroid/support/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
|
||
|
|
||
|
const-string v2, "android.support.customtabs.extra.TITLE_VISIBILITY"
|
||
|
|
||
|
if-eqz p1, :cond_0
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
:goto_0
|
||
|
invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
|
||
|
|
||
|
.line 341
|
||
|
return-object p0
|
||
|
|
||
|
.line 339
|
||
|
:cond_0
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
goto :goto_0
|
||
|
.end method
|
||
|
|
||
|
.method public setStartAnimations(Landroid/content/Context;II)Landroid/support/customtabs/CustomTabsIntent$Builder;
|
||
|
.locals 1
|
||
|
.param p1 # Landroid/content/Context;
|
||
|
.annotation build Landroid/support/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.param p2 # I
|
||
|
.annotation build Landroid/support/annotation/AnimRes;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.param p3 # I
|
||
|
.annotation build Landroid/support/annotation/AnimRes;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
.prologue
|
||
|
.line 492
|
||
|
invoke-static {p1, p2, p3}, Landroid/support/v4/app/ActivityOptionsCompat;->makeCustomAnimation(Landroid/content/Context;II)Landroid/support/v4/app/ActivityOptionsCompat;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
.line 493
|
||
|
invoke-virtual {v0}, Landroid/support/v4/app/ActivityOptionsCompat;->toBundle()Landroid/os/Bundle;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p0, Landroid/support/customtabs/CustomTabsIntent$Builder;->mStartAnimationBundle:Landroid/os/Bundle;
|
||
|
|
||
|
.line 494
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public setToolbarColor(I)Landroid/support/customtabs/CustomTabsIntent$Builder;
|
||
|
.locals 2
|
||
|
.param p1 # I
|
||
|
.annotation build Landroid/support/annotation/ColorInt;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
.prologue
|
||
|
.line 311
|
||
|
iget-object v0, p0, Landroid/support/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
|
||
|
|
||
|
const-string v1, "android.support.customtabs.extra.TOOLBAR_COLOR"
|
||
|
|
||
|
invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
|
||
|
|
||
|
.line 312
|
||
|
return-object p0
|
||
|
.end method
|