apkfuckery/com.discord/smali/androidx/browser/customtabs/CustomTabsIntent$Builder.smali

830 lines
30 KiB
Smali
Raw Normal View History

2020-05-17 12:40:10 +00:00
.class public final Landroidx/browser/customtabs/CustomTabsIntent$Builder;
.super Ljava/lang/Object;
.source "CustomTabsIntent.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/browser/customtabs/CustomTabsIntent;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Builder"
.end annotation
# instance fields
.field public mActionButtons:Ljava/util/ArrayList;
2020-07-08 16:44:49 +00:00
.annotation build Landroidx/annotation/Nullable;
.end annotation
2020-05-17 12:40:10 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Landroid/os/Bundle;",
">;"
}
.end annotation
.end field
2020-07-08 16:44:49 +00:00
.field public mColorSchemeParamBundles:Landroid/util/SparseArray;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/util/SparseArray<",
"Landroid/os/Bundle;",
">;"
}
.end annotation
.end field
.field public final mDefaultColorSchemeBuilder:Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;
2020-05-17 12:40:10 +00:00
.field public mInstantAppsEnabled:Z
.field public final mIntent:Landroid/content/Intent;
.field public mMenuItems:Ljava/util/ArrayList;
2020-07-08 16:44:49 +00:00
.annotation build Landroidx/annotation/Nullable;
.end annotation
2020-05-17 12:40:10 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Landroid/os/Bundle;",
">;"
}
.end annotation
.end field
.field public mStartAnimationBundle:Landroid/os/Bundle;
2020-07-08 16:44:49 +00:00
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
2020-05-17 12:40:10 +00:00
# direct methods
.method public constructor <init>()V
2020-07-08 16:44:49 +00:00
.locals 2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
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, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
new-instance v0, Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {v0}, Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;-><init>()V
iput-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mDefaultColorSchemeBuilder:Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;
const/4 v0, 0x1
iput-boolean v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mInstantAppsEnabled:Z
2020-05-17 12:40:10 +00:00
return-void
.end method
.method public constructor <init>(Landroidx/browser/customtabs/CustomTabsSession;)V
2020-07-08 16:44:49 +00:00
.locals 2
2020-05-17 12:40:10 +00:00
.param p1 # Landroidx/browser/customtabs/CustomTabsSession;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
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, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
2020-07-08 16:44:49 +00:00
new-instance v0, Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {v0}, Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;-><init>()V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iput-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mDefaultColorSchemeBuilder:Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v0, 0x1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iput-boolean v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mInstantAppsEnabled:Z
2020-05-17 12:40:10 +00:00
if-eqz p1, :cond_0
2020-07-08 16:44:49 +00:00
invoke-virtual {p0, p1}, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->setSession(Landroidx/browser/customtabs/CustomTabsSession;)Landroidx/browser/customtabs/CustomTabsIntent$Builder;
2020-05-17 12:40:10 +00:00
:cond_0
2020-07-08 16:44:49 +00:00
return-void
.end method
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
.method private setSessionParameters(Landroid/os/IBinder;Landroid/app/PendingIntent;)V
.locals 2
.param p1 # Landroid/os/IBinder;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p2 # Landroid/app/PendingIntent;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
new-instance v0, Landroid/os/Bundle;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-string v1, "android.support.customtabs.extra.SESSION"
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-static {v0, v1, p1}, Landroidx/core/app/BundleCompat;->putBinder(Landroid/os/Bundle;Ljava/lang/String;Landroid/os/IBinder;)V
if-eqz p2, :cond_0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-string p1, "android.support.customtabs.extra.SESSION_ID"
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v0, p1, p2}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_0
2020-05-17 12:40:10 +00:00
iget-object p1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
2020-07-08 16:44:49 +00:00
invoke-virtual {p1, v0}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;
2020-05-17 12:40:10 +00:00
return-void
.end method
# virtual methods
.method public addDefaultShareMenuItem()Landroidx/browser/customtabs/CustomTabsIntent$Builder;
.locals 3
2020-07-08 16:44:49 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
2020-05-17 12:40:10 +00:00
iget-object v0, p0, Landroidx/browser/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;
return-object p0
.end method
.method public addMenuItem(Ljava/lang/String;Landroid/app/PendingIntent;)Landroidx/browser/customtabs/CustomTabsIntent$Builder;
.locals 2
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/app/PendingIntent;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
2020-07-08 16:44:49 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
2020-05-17 12:40:10 +00:00
iget-object v0, p0, Landroidx/browser/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, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mMenuItems:Ljava/util/ArrayList;
:cond_0
new-instance v0, Landroid/os/Bundle;
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
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
const-string p1, "android.support.customtabs.customaction.PENDING_INTENT"
invoke-virtual {v0, p1, p2}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V
iget-object p1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mMenuItems:Ljava/util/ArrayList;
invoke-virtual {p1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
return-object p0
.end method
.method public addToolbarItem(ILandroid/graphics/Bitmap;Ljava/lang/String;Landroid/app/PendingIntent;)Landroidx/browser/customtabs/CustomTabsIntent$Builder;
.locals 2
.param p2 # Landroid/graphics/Bitmap;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p3 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
2020-07-08 16:44:49 +00:00
.param p4 # Landroid/app/PendingIntent;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
2020-05-17 12:40:10 +00:00
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/IllegalStateException;
}
.end annotation
.annotation runtime Ljava/lang/Deprecated;
.end annotation
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mActionButtons: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, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mActionButtons:Ljava/util/ArrayList;
:cond_0
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mActionButtons:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
const/4 v1, 0x5
if-ge v0, v1, :cond_1
new-instance v0, Landroid/os/Bundle;
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
const-string v1, "android.support.customtabs.customaction.ID"
invoke-virtual {v0, v1, p1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
const-string p1, "android.support.customtabs.customaction.ICON"
invoke-virtual {v0, p1, p2}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V
const-string p1, "android.support.customtabs.customaction.DESCRIPTION"
invoke-virtual {v0, p1, p3}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
const-string p1, "android.support.customtabs.customaction.PENDING_INTENT"
invoke-virtual {v0, p1, p4}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V
iget-object p1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mActionButtons:Ljava/util/ArrayList;
invoke-virtual {p1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
return-object p0
:cond_1
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "Exceeded maximum toolbar item count of 5"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public build()Landroidx/browser/customtabs/CustomTabsIntent;
.locals 3
2020-07-08 16:44:49 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
const-string v1, "android.support.customtabs.extra.SESSION"
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v0, v1}, Landroid/content/Intent;->hasExtra(Ljava/lang/String;)Z
move-result v0
if-nez v0, :cond_0
const/4 v0, 0x0
invoke-direct {p0, v0, v0}, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->setSessionParameters(Landroid/os/IBinder;Landroid/app/PendingIntent;)V
:cond_0
2020-05-17 12:40:10 +00:00
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mMenuItems:Ljava/util/ArrayList;
2020-07-08 16:44:49 +00:00
if-eqz v0, :cond_1
2020-05-17 12:40:10 +00:00
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
const-string v2, "android.support.customtabs.extra.MENU_ITEMS"
invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putParcelableArrayListExtra(Ljava/lang/String;Ljava/util/ArrayList;)Landroid/content/Intent;
2020-07-08 16:44:49 +00:00
:cond_1
2020-05-17 12:40:10 +00:00
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mActionButtons:Ljava/util/ArrayList;
2020-07-08 16:44:49 +00:00
if-eqz v0, :cond_2
2020-05-17 12:40:10 +00:00
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
const-string v2, "android.support.customtabs.extra.TOOLBAR_ITEMS"
invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putParcelableArrayListExtra(Ljava/lang/String;Ljava/util/ArrayList;)Landroid/content/Intent;
2020-07-08 16:44:49 +00:00
:cond_2
2020-05-17 12:40:10 +00:00
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
iget-boolean v1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mInstantAppsEnabled:Z
const-string v2, "android.support.customtabs.extra.EXTRA_ENABLE_INSTANT_APPS"
invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;
2020-07-08 16:44:49 +00:00
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mDefaultColorSchemeBuilder:Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;
invoke-virtual {v1}, Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;->build()Landroidx/browser/customtabs/CustomTabColorSchemeParams;
move-result-object v1
invoke-virtual {v1}, Landroidx/browser/customtabs/CustomTabColorSchemeParams;->toBundle()Landroid/os/Bundle;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mColorSchemeParamBundles:Landroid/util/SparseArray;
if-eqz v0, :cond_3
new-instance v0, Landroid/os/Bundle;
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mColorSchemeParamBundles:Landroid/util/SparseArray;
const-string v2, "androidx.browser.customtabs.extra.COLOR_SCHEME_PARAMS"
invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putSparseParcelableArray(Ljava/lang/String;Landroid/util/SparseArray;)V
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
invoke-virtual {v1, v0}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;
:cond_3
2020-05-17 12:40:10 +00:00
new-instance v0, Landroidx/browser/customtabs/CustomTabsIntent;
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
iget-object v2, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mStartAnimationBundle:Landroid/os/Bundle;
invoke-direct {v0, v1, v2}, Landroidx/browser/customtabs/CustomTabsIntent;-><init>(Landroid/content/Intent;Landroid/os/Bundle;)V
return-object v0
.end method
.method public enableUrlBarHiding()Landroidx/browser/customtabs/CustomTabsIntent$Builder;
.locals 3
2020-07-08 16:44:49 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
2020-05-17 12:40:10 +00:00
iget-object v0, p0, Landroidx/browser/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;
return-object p0
.end method
.method public setActionButton(Landroid/graphics/Bitmap;Ljava/lang/String;Landroid/app/PendingIntent;)Landroidx/browser/customtabs/CustomTabsIntent$Builder;
.locals 1
.param p1 # Landroid/graphics/Bitmap;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p3 # Landroid/app/PendingIntent;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
2020-07-08 16:44:49 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
2020-05-17 12:40:10 +00:00
const/4 v0, 0x0
invoke-virtual {p0, p1, p2, p3, v0}, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->setActionButton(Landroid/graphics/Bitmap;Ljava/lang/String;Landroid/app/PendingIntent;Z)Landroidx/browser/customtabs/CustomTabsIntent$Builder;
move-result-object p1
return-object p1
.end method
.method public setActionButton(Landroid/graphics/Bitmap;Ljava/lang/String;Landroid/app/PendingIntent;Z)Landroidx/browser/customtabs/CustomTabsIntent$Builder;
.locals 3
.param p1 # Landroid/graphics/Bitmap;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p3 # Landroid/app/PendingIntent;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
2020-07-08 16:44:49 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
2020-05-17 12:40:10 +00:00
new-instance v0, Landroid/os/Bundle;
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
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
const-string v1, "android.support.customtabs.customaction.ICON"
invoke-virtual {v0, v1, p1}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V
const-string p1, "android.support.customtabs.customaction.DESCRIPTION"
invoke-virtual {v0, p1, p2}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
const-string p1, "android.support.customtabs.customaction.PENDING_INTENT"
invoke-virtual {v0, p1, p3}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V
iget-object p1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
const-string p2, "android.support.customtabs.extra.ACTION_BUTTON_BUNDLE"
invoke-virtual {p1, p2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Bundle;)Landroid/content/Intent;
iget-object p1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
const-string p2, "android.support.customtabs.extra.TINT_ACTION_BUTTON"
invoke-virtual {p1, p2, p4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;
return-object p0
.end method
.method public setCloseButtonIcon(Landroid/graphics/Bitmap;)Landroidx/browser/customtabs/CustomTabsIntent$Builder;
.locals 2
.param p1 # Landroid/graphics/Bitmap;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
2020-07-08 16:44:49 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
2020-05-17 12:40:10 +00:00
iget-object v0, p0, Landroidx/browser/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;
return-object p0
.end method
2020-07-08 16:44:49 +00:00
.method public setColorScheme(I)Landroidx/browser/customtabs/CustomTabsIntent$Builder;
.locals 2
.annotation build Landroidx/annotation/NonNull;
.end annotation
if-ltz p1, :cond_0
const/4 v0, 0x2
if-gt p1, v0, :cond_0
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
const-string v1, "androidx.browser.customtabs.extra.COLOR_SCHEME"
invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
return-object p0
:cond_0
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "Invalid value for the colorScheme argument"
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public setColorSchemeParams(ILandroidx/browser/customtabs/CustomTabColorSchemeParams;)Landroidx/browser/customtabs/CustomTabsIntent$Builder;
.locals 1
.param p2 # Landroidx/browser/customtabs/CustomTabColorSchemeParams;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
if-ltz p1, :cond_1
const/4 v0, 0x2
if-gt p1, v0, :cond_1
if-eqz p1, :cond_1
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mColorSchemeParamBundles:Landroid/util/SparseArray;
if-nez v0, :cond_0
new-instance v0, Landroid/util/SparseArray;
invoke-direct {v0}, Landroid/util/SparseArray;-><init>()V
iput-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mColorSchemeParamBundles:Landroid/util/SparseArray;
:cond_0
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mColorSchemeParamBundles:Landroid/util/SparseArray;
invoke-virtual {p2}, Landroidx/browser/customtabs/CustomTabColorSchemeParams;->toBundle()Landroid/os/Bundle;
move-result-object p2
invoke-virtual {v0, p1, p2}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V
return-object p0
:cond_1
new-instance p2, Ljava/lang/IllegalArgumentException;
const-string v0, "Invalid colorScheme: "
2020-09-16 23:45:23 +00:00
invoke-static {v0, p1}, Lf/e/b/a/a;->i(Ljava/lang/String;I)Ljava/lang/String;
2020-07-08 16:44:49 +00:00
move-result-object p1
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p2
.end method
2020-05-17 12:40:10 +00:00
.method public setExitAnimations(Landroid/content/Context;II)Landroidx/browser/customtabs/CustomTabsIntent$Builder;
.locals 0
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # I
.annotation build Landroidx/annotation/AnimRes;
.end annotation
.end param
.param p3 # I
.annotation build Landroidx/annotation/AnimRes;
.end annotation
.end param
2020-07-08 16:44:49 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
2020-05-17 12:40:10 +00:00
invoke-static {p1, p2, p3}, Landroidx/core/app/ActivityOptionsCompat;->makeCustomAnimation(Landroid/content/Context;II)Landroidx/core/app/ActivityOptionsCompat;
move-result-object p1
invoke-virtual {p1}, Landroidx/core/app/ActivityOptionsCompat;->toBundle()Landroid/os/Bundle;
move-result-object p1
iget-object p2, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
const-string p3, "android.support.customtabs.extra.EXIT_ANIMATION_BUNDLE"
invoke-virtual {p2, p3, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Bundle;)Landroid/content/Intent;
return-object p0
.end method
.method public setInstantAppsEnabled(Z)Landroidx/browser/customtabs/CustomTabsIntent$Builder;
.locals 0
2020-07-08 16:44:49 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
2020-05-17 12:40:10 +00:00
iput-boolean p1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mInstantAppsEnabled:Z
return-object p0
.end method
2020-07-08 16:44:49 +00:00
.method public setNavigationBarColor(I)Landroidx/browser/customtabs/CustomTabsIntent$Builder;
.locals 1
2020-05-17 12:40:10 +00:00
.param p1 # I
.annotation build Landroidx/annotation/ColorInt;
.end annotation
.end param
2020-07-08 16:44:49 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mDefaultColorSchemeBuilder:Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v0, p1}, Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;->setNavigationBarColor(I)Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return-object p0
.end method
.method public setPendingSession(Landroidx/browser/customtabs/CustomTabsSession$PendingSession;)Landroidx/browser/customtabs/CustomTabsIntent$Builder;
.locals 1
.param p1 # Landroidx/browser/customtabs/CustomTabsSession$PendingSession;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
invoke-virtual {p1}, Landroidx/browser/customtabs/CustomTabsSession$PendingSession;->getId()Landroid/app/PendingIntent;
move-result-object p1
const/4 v0, 0x0
invoke-direct {p0, v0, p1}, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->setSessionParameters(Landroid/os/IBinder;Landroid/app/PendingIntent;)V
return-object p0
.end method
.method public setSecondaryToolbarColor(I)Landroidx/browser/customtabs/CustomTabsIntent$Builder;
.locals 1
.param p1 # I
.annotation build Landroidx/annotation/ColorInt;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mDefaultColorSchemeBuilder:Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;
invoke-virtual {v0, p1}, Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;->setSecondaryToolbarColor(I)Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;
2020-05-17 12:40:10 +00:00
return-object p0
.end method
.method public setSecondaryToolbarViews(Landroid/widget/RemoteViews;[ILandroid/app/PendingIntent;)Landroidx/browser/customtabs/CustomTabsIntent$Builder;
.locals 2
.param p1 # Landroid/widget/RemoteViews;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # [I
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p3 # Landroid/app/PendingIntent;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
2020-07-08 16:44:49 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
2020-05-17 12:40:10 +00:00
iget-object v0, p0, Landroidx/browser/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;
iget-object p1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
const-string v0, "android.support.customtabs.extra.EXTRA_REMOTEVIEWS_VIEW_IDS"
invoke-virtual {p1, v0, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;[I)Landroid/content/Intent;
iget-object p1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
const-string p2, "android.support.customtabs.extra.EXTRA_REMOTEVIEWS_PENDINGINTENT"
invoke-virtual {p1, p2, p3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;
return-object p0
.end method
2020-07-08 16:44:49 +00:00
.method public setSession(Landroidx/browser/customtabs/CustomTabsSession;)Landroidx/browser/customtabs/CustomTabsIntent$Builder;
.locals 2
.param p1 # Landroidx/browser/customtabs/CustomTabsSession;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
invoke-virtual {p1}, Landroidx/browser/customtabs/CustomTabsSession;->getComponentName()Landroid/content/ComponentName;
move-result-object v1
invoke-virtual {v1}, Landroid/content/ComponentName;->getPackageName()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
invoke-virtual {p1}, Landroidx/browser/customtabs/CustomTabsSession;->getBinder()Landroid/os/IBinder;
move-result-object v0
invoke-virtual {p1}, Landroidx/browser/customtabs/CustomTabsSession;->getId()Landroid/app/PendingIntent;
move-result-object p1
invoke-direct {p0, v0, p1}, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->setSessionParameters(Landroid/os/IBinder;Landroid/app/PendingIntent;)V
return-object p0
.end method
2020-05-17 12:40:10 +00:00
.method public setShowTitle(Z)Landroidx/browser/customtabs/CustomTabsIntent$Builder;
.locals 2
2020-07-08 16:44:49 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
2020-05-17 12:40:10 +00:00
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent;
const-string v1, "android.support.customtabs.extra.TITLE_VISIBILITY"
invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
return-object p0
.end method
.method public setStartAnimations(Landroid/content/Context;II)Landroidx/browser/customtabs/CustomTabsIntent$Builder;
.locals 0
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # I
.annotation build Landroidx/annotation/AnimRes;
.end annotation
.end param
.param p3 # I
.annotation build Landroidx/annotation/AnimRes;
.end annotation
.end param
2020-07-08 16:44:49 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
2020-05-17 12:40:10 +00:00
invoke-static {p1, p2, p3}, Landroidx/core/app/ActivityOptionsCompat;->makeCustomAnimation(Landroid/content/Context;II)Landroidx/core/app/ActivityOptionsCompat;
move-result-object p1
invoke-virtual {p1}, Landroidx/core/app/ActivityOptionsCompat;->toBundle()Landroid/os/Bundle;
move-result-object p1
iput-object p1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mStartAnimationBundle:Landroid/os/Bundle;
return-object p0
.end method
.method public setToolbarColor(I)Landroidx/browser/customtabs/CustomTabsIntent$Builder;
2020-07-08 16:44:49 +00:00
.locals 1
2020-05-17 12:40:10 +00:00
.param p1 # I
.annotation build Landroidx/annotation/ColorInt;
.end annotation
.end param
2020-07-08 16:44:49 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mDefaultColorSchemeBuilder:Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v0, p1}, Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;->setToolbarColor(I)Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;
2020-05-17 12:40:10 +00:00
return-object p0
.end method