.class public Landroidx/browser/customtabs/TrustedWebUtils; .super Ljava/lang/Object; .source "TrustedWebUtils.java" # static fields .field public static final EXTRA_LAUNCH_AS_TRUSTED_WEB_ACTIVITY:Ljava/lang/String; = "android.support.customtabs.extra.LAUNCH_AS_TRUSTED_WEB_ACTIVITY" # direct methods .method private constructor ()V .locals 0 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method public static launchAsTrustedWebActivity(Landroid/content/Context;Landroidx/browser/customtabs/CustomTabsIntent;Landroid/net/Uri;)V .locals 3 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p1 # Landroidx/browser/customtabs/CustomTabsIntent; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p2 # Landroid/net/Uri; .annotation build Landroidx/annotation/NonNull; .end annotation .end param iget-object v0, p1, Landroidx/browser/customtabs/CustomTabsIntent;->intent:Landroid/content/Intent; invoke-virtual {v0}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle; move-result-object v0 const-string v1, "android.support.customtabs.extra.SESSION" invoke-static {v0, v1}, Landroidx/core/app/BundleCompat;->getBinder(Landroid/os/Bundle;Ljava/lang/String;)Landroid/os/IBinder; move-result-object v0 if-eqz v0, :cond_0 iget-object v0, p1, Landroidx/browser/customtabs/CustomTabsIntent;->intent:Landroid/content/Intent; const-string v1, "android.support.customtabs.extra.LAUNCH_AS_TRUSTED_WEB_ACTIVITY" const/4 v2, 0x1 invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent; invoke-virtual {p1, p0, p2}, Landroidx/browser/customtabs/CustomTabsIntent;->launchUrl(Landroid/content/Context;Landroid/net/Uri;)V return-void :cond_0 new-instance p0, Ljava/lang/IllegalArgumentException; const-string p1, "Given CustomTabsIntent should be associated with a valid CustomTabsSession" invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p0 .end method