EmbedBottomSheet.smali
.class public Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.super Lim/tpelyyftgw/ui/actionbar/BottomSheet;
.source "EmbedBottomSheet.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lim/tpelyyftgw/ui/components/EmbedBottomSheet$YoutubeProxy;
}
.end annotation
# static fields
.field private static instance:Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
# instance fields
.field private animationInProgress:Z
.field private containerLayout:Landroid/widget/FrameLayout;
.field private copyTextButton:Landroid/widget/TextView;
.field private customView:Landroid/view/View;
.field private customViewCallback:Landroid/webkit/WebChromeClient$CustomViewCallback;
.field private embedUrl:Ljava/lang/String;
.field private fullscreenVideoContainer:Landroid/widget/FrameLayout;
.field private fullscreenedByButton:Z
.field private hasDescription:Z
.field private height:I
.field private imageButtonsContainer:Landroid/widget/LinearLayout;
.field private isYouTube:Z
.field private lastOrientation:I
.field private onShowListener:Landroid/content/DialogInterface$OnShowListener;
.field private openUrl:Ljava/lang/String;
.field private orientationEventListener:Landroid/view/OrientationEventListener;
.field private parentActivity:Landroid/app/Activity;
.field private pipButton:Landroid/widget/ImageView;
.field private pipVideoView:Lim/tpelyyftgw/ui/components/PipVideoView;
.field private position:[I
.field private prevOrientation:I
.field private progressBar:Lim/tpelyyftgw/ui/components/RadialProgressView;
.field private progressBarBlackBackground:Landroid/view/View;
.field private seekTimeOverride:I
.field private videoView:Lim/tpelyyftgw/ui/components/WebPlayerView;
.field private waitingForDraw:I
.field private wasInLandscape:Z
.field private webView:Landroid/webkit/WebView;
.field private width:I
.field private final youtubeFrame:Ljava/lang/String;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method private constructor <init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;III)V
.registers 41
.param p1, "context" # Landroid/content/Context;
.param p2, "title" # Ljava/lang/String;
.param p3, "description" # Ljava/lang/String;
.param p4, "originalUrl" # Ljava/lang/String;
.param p5, "url" # Ljava/lang/String;
.param p6, "w" # I
.param p7, "h" # I
.param p8, "seekTime" # I
.line 239
move-object/from16 v0, p0
move-object/from16 v1, p1
move-object/from16 v2, p3
move/from16 v3, p6
move/from16 v4, p7
const/4 v5, 0x0
invoke-direct {v0, v1, v5, v5}, Lim/tpelyyftgw/ui/actionbar/BottomSheet;-><init>(Landroid/content/Context;ZI)V
.line 75
const/4 v6, 0x2
new-array v7, v6, [I
iput-object v7, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->position:[I
.line 78
const/4 v7, -0x1
iput v7, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->lastOrientation:I
.line 85
const/4 v8, -0x2
iput v8, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->prevOrientation:I
.line 108
const-string v9, "<!DOCTYPE html><html><head><style>body { margin: 0; width:100%%; height:100%%; background-color:#000; }html { width:100%%; height:100%%; background-color:#000; }.embed-container iframe,.embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%% !important; height: 100%% !important; } </style></head><body> <div class=\"embed-container\"> <div id=\"player\"></div> </div> <script src=\"https://www.youtube.com/iframe_api\"></script> <script> var player; var observer; var videoEl; var playing; var posted = false; YT.ready(function() { player = new YT.Player(\"player\", { \"width\" : \"100%%\", \"events\" : { \"onReady\" : \"onReady\", \"onError\" : \"onError\", }, \"videoId\" : \"%1$s\", \"height\" : \"100%%\", \"playerVars\" : { \"start\" : %2$d, \"rel\" : 0, \"showinfo\" : 0, \"modestbranding\" : 1, \"iv_load_policy\" : 3, \"autohide\" : 1, \"autoplay\" : 1, \"cc_load_policy\" : 1, \"playsinline\" : 1, \"controls\" : 1 } }); player.setSize(window.innerWidth, window.innerHeight); }); function hideControls() { playing = !videoEl.paused; videoEl.controls = 0; observer.observe(videoEl, {attributes: true}); } function showControls() { playing = !videoEl.paused; observer.disconnect(); videoEl.controls = 1; } function onError(event) { if (!posted) { if (window.YoutubeProxy !== undefined) { YoutubeProxy.postEvent(\"loaded\", null); } posted = true; } } function onReady(event) { player.playVideo(); videoEl = player.getIframe().contentDocument.getElementsByTagName(\'video\')[0];\n videoEl.addEventListener(\"canplay\", function() { if (playing) { videoEl.play(); } }, true); videoEl.addEventListener(\"timeupdate\", function() { if (!posted && videoEl.currentTime > 0) { if (window.YoutubeProxy !== undefined) { YoutubeProxy.postEvent(\"loaded\", null); } posted = true; } }, true); observer = new MutationObserver(function() {\n if (videoEl.controls) {\n videoEl.controls = 0;\n } });\n } window.onresize = function() { player.setSize(window.innerWidth, window.innerHeight); } </script></body></html>"
iput-object v9, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->youtubeFrame:Ljava/lang/String;
.line 202
new-instance v9, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$1;
invoke-direct {v9, v0}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$1;-><init>(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)V
iput-object v9, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->onShowListener:Landroid/content/DialogInterface$OnShowListener;
.line 240
const/4 v9, 0x1
iput-boolean v9, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->fullWidth:Z
.line 241
invoke-virtual {v0, v5}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->setApplyTopPadding(Z)V
.line 242
invoke-virtual {v0, v5}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->setApplyBottomPadding(Z)V
.line 243
move/from16 v10, p8
iput v10, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->seekTimeOverride:I
.line 245
instance-of v11, v1, Landroid/app/Activity;
if-eqz v11, :cond_3a
.line 246
move-object v11, v1
check-cast v11, Landroid/app/Activity;
iput-object v11, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->parentActivity:Landroid/app/Activity;
.line 249
:cond_3a
move-object/from16 v11, p5
iput-object v11, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->embedUrl:Ljava/lang/String;
.line 250
if-eqz v2, :cond_48
invoke-virtual/range {p3 .. p3}, Ljava/lang/String;->length()I
move-result v12
if-lez v12, :cond_48
const/4 v12, 0x1
goto :goto_49
:cond_48
const/4 v12, 0x0
:goto_49
iput-boolean v12, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->hasDescription:Z
.line 251
move-object/from16 v12, p4
iput-object v12, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->openUrl:Ljava/lang/String;
.line 252
iput v3, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->width:I
.line 253
iput v4, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->height:I
.line 254
if-eqz v3, :cond_57
if-nez v4, :cond_64
.line 255
:cond_57
sget-object v13, Lim/tpelyyftgw/messenger/AndroidUtilities;->displaySize:Landroid/graphics/Point;
iget v13, v13, Landroid/graphics/Point;->x:I
iput v13, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->width:I
.line 256
sget-object v13, Lim/tpelyyftgw/messenger/AndroidUtilities;->displaySize:Landroid/graphics/Point;
iget v13, v13, Landroid/graphics/Point;->y:I
div-int/2addr v13, v6
iput v13, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->height:I
.line 259
:cond_64
new-instance v13, Landroid/widget/FrameLayout;
invoke-direct {v13, v1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V
iput-object v13, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->fullscreenVideoContainer:Landroid/widget/FrameLayout;
.line 260
invoke-virtual {v13, v9}, Landroid/widget/FrameLayout;->setKeepScreenOn(Z)V
.line 261
iget-object v13, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->fullscreenVideoContainer:Landroid/widget/FrameLayout;
const/high16 v14, -0x1000000
invoke-virtual {v13, v14}, Landroid/widget/FrameLayout;->setBackgroundColor(I)V
.line 262
sget v13, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v15, 0x15
if-lt v13, v15, :cond_80
.line 263
iget-object v13, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->fullscreenVideoContainer:Landroid/widget/FrameLayout;
invoke-virtual {v13, v9}, Landroid/widget/FrameLayout;->setFitsSystemWindows(Z)V
.line 265
:cond_80
iget-object v13, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->fullscreenVideoContainer:Landroid/widget/FrameLayout;
sget-object v8, Lim/tpelyyftgw/ui/components/-$$Lambda$EmbedBottomSheet$nFTy00AnuUa5EBK2mNj_oZlZ5V8;->INSTANCE:Lim/tpelyyftgw/ui/components/-$$Lambda$EmbedBottomSheet$nFTy00AnuUa5EBK2mNj_oZlZ5V8;
invoke-virtual {v13, v8}, Landroid/widget/FrameLayout;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V
.line 267
iget-object v8, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->container:Lim/tpelyyftgw/ui/actionbar/BottomSheet$ContainerView;
iget-object v13, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->fullscreenVideoContainer:Landroid/widget/FrameLayout;
const/high16 v6, -0x40800000 # -1.0f
invoke-static {v7, v6}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(IF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v6
invoke-virtual {v8, v13, v6}, Lim/tpelyyftgw/ui/actionbar/BottomSheet$ContainerView;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 268
iget-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->fullscreenVideoContainer:Landroid/widget/FrameLayout;
const/4 v8, 0x4
invoke-virtual {v6, v8}, Landroid/widget/FrameLayout;->setVisibility(I)V
.line 269
iget-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->fullscreenVideoContainer:Landroid/widget/FrameLayout;
sget-object v13, Lim/tpelyyftgw/ui/components/-$$Lambda$EmbedBottomSheet$squwqHIDqXUDr-mWHVv9q--SygA;->INSTANCE:Lim/tpelyyftgw/ui/components/-$$Lambda$EmbedBottomSheet$squwqHIDqXUDr-mWHVv9q--SygA;
invoke-virtual {v6, v13}, Landroid/widget/FrameLayout;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V
.line 271
new-instance v6, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$2;
invoke-direct {v6, v0, v1}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$2;-><init>(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;Landroid/content/Context;)V
iput-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->containerLayout:Landroid/widget/FrameLayout;
.line 303
sget-object v13, Lim/tpelyyftgw/ui/components/-$$Lambda$EmbedBottomSheet$N3JtF3jPUyvIm7UrExkrrsGC52E;->INSTANCE:Lim/tpelyyftgw/ui/components/-$$Lambda$EmbedBottomSheet$N3JtF3jPUyvIm7UrExkrrsGC52E;
invoke-virtual {v6, v13}, Landroid/widget/FrameLayout;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V
.line 304
iget-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->containerLayout:Landroid/widget/FrameLayout;
invoke-virtual {v0, v6}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->setCustomView(Landroid/view/View;)V
.line 306
new-instance v6, Landroid/webkit/WebView;
invoke-direct {v6, v1}, Landroid/webkit/WebView;-><init>(Landroid/content/Context;)V
iput-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->webView:Landroid/webkit/WebView;
.line 307
invoke-virtual {v6}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;
move-result-object v6
invoke-virtual {v6, v9}, Landroid/webkit/WebSettings;->setJavaScriptEnabled(Z)V
.line 308
iget-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->webView:Landroid/webkit/WebView;
invoke-virtual {v6}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;
move-result-object v6
invoke-virtual {v6, v9}, Landroid/webkit/WebSettings;->setDomStorageEnabled(Z)V
.line 309
sget v6, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v13, 0x11
if-lt v6, v13, :cond_d8
.line 310
iget-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->webView:Landroid/webkit/WebView;
invoke-virtual {v6}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;
move-result-object v6
invoke-virtual {v6, v5}, Landroid/webkit/WebSettings;->setMediaPlaybackRequiresUserGesture(Z)V
.line 313
:cond_d8
sget v6, Landroid/os/Build$VERSION;->SDK_INT:I
if-lt v6, v15, :cond_ee
.line 314
iget-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->webView:Landroid/webkit/WebView;
invoke-virtual {v6}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;
move-result-object v6
invoke-virtual {v6, v5}, Landroid/webkit/WebSettings;->setMixedContentMode(I)V
.line 315
invoke-static {}, Landroid/webkit/CookieManager;->getInstance()Landroid/webkit/CookieManager;
move-result-object v6
.line 316
.local v6, "cookieManager":Landroid/webkit/CookieManager;
iget-object v15, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->webView:Landroid/webkit/WebView;
invoke-virtual {v6, v15, v9}, Landroid/webkit/CookieManager;->setAcceptThirdPartyCookies(Landroid/webkit/WebView;Z)V
.line 319
.end local v6 # "cookieManager":Landroid/webkit/CookieManager;
:cond_ee
iget-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->webView:Landroid/webkit/WebView;
new-instance v15, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$3;
invoke-direct {v15, v0}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$3;-><init>(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)V
invoke-virtual {v6, v15}, Landroid/webkit/WebView;->setWebChromeClient(Landroid/webkit/WebChromeClient;)V
.line 358
iget-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->webView:Landroid/webkit/WebView;
new-instance v15, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$4;
invoke-direct {v15, v0}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$4;-><init>(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)V
invoke-virtual {v6, v15}, Landroid/webkit/WebView;->setWebViewClient(Landroid/webkit/WebViewClient;)V
.line 377
iget-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->containerLayout:Landroid/widget/FrameLayout;
iget-object v15, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->webView:Landroid/webkit/WebView;
const/high16 v16, -0x40800000 # -1.0f
const/high16 v17, -0x40800000 # -1.0f
const/16 v18, 0x33
const/16 v19, 0x0
const/16 v20, 0x0
const/16 v21, 0x0
iget-boolean v13, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->hasDescription:Z
const/16 v23, 0x16
if-eqz v13, :cond_11b
const/16 v13, 0x16
goto :goto_11c
:cond_11b
const/4 v13, 0x0
:goto_11c
add-int/lit8 v13, v13, 0x54
int-to-float v13, v13
move/from16 v22, v13
invoke-static/range {v16 .. v22}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v13
invoke-virtual {v6, v15, v13}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 379
new-instance v6, Lim/tpelyyftgw/ui/components/WebPlayerView;
new-instance v13, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$5;
invoke-direct {v13, v0}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$5;-><init>(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)V
invoke-direct {v6, v1, v9, v5, v13}, Lim/tpelyyftgw/ui/components/WebPlayerView;-><init>(Landroid/content/Context;ZZLim/tpelyyftgw/ui/components/WebPlayerView$WebPlayerViewDelegate;)V
iput-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->videoView:Lim/tpelyyftgw/ui/components/WebPlayerView;
.line 643
invoke-virtual {v6, v8}, Lim/tpelyyftgw/ui/components/WebPlayerView;->setVisibility(I)V
.line 644
iget-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->containerLayout:Landroid/widget/FrameLayout;
iget-object v13, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->videoView:Lim/tpelyyftgw/ui/components/WebPlayerView;
const/high16 v16, -0x40800000 # -1.0f
const/high16 v17, -0x40800000 # -1.0f
const/16 v18, 0x33
const/16 v19, 0x0
const/16 v20, 0x0
const/16 v21, 0x0
iget-boolean v15, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->hasDescription:Z
if-eqz v15, :cond_14e
const/16 v15, 0x16
goto :goto_14f
:cond_14e
const/4 v15, 0x0
:goto_14f
add-int/lit8 v15, v15, 0x54
add-int/lit8 v15, v15, -0xa
int-to-float v15, v15
move/from16 v22, v15
invoke-static/range {v16 .. v22}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v15
invoke-virtual {v6, v13, v15}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 646
new-instance v6, Landroid/view/View;
invoke-direct {v6, v1}, Landroid/view/View;-><init>(Landroid/content/Context;)V
iput-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->progressBarBlackBackground:Landroid/view/View;
.line 647
invoke-virtual {v6, v14}, Landroid/view/View;->setBackgroundColor(I)V
.line 648
iget-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->progressBarBlackBackground:Landroid/view/View;
invoke-virtual {v6, v8}, Landroid/view/View;->setVisibility(I)V
.line 649
iget-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->containerLayout:Landroid/widget/FrameLayout;
iget-object v13, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->progressBarBlackBackground:Landroid/view/View;
const/high16 v16, -0x40800000 # -1.0f
const/high16 v17, -0x40800000 # -1.0f
const/16 v18, 0x33
const/16 v19, 0x0
const/16 v20, 0x0
const/16 v21, 0x0
iget-boolean v14, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->hasDescription:Z
if-eqz v14, :cond_183
const/16 v14, 0x16
goto :goto_184
:cond_183
const/4 v14, 0x0
:goto_184
add-int/lit8 v14, v14, 0x54
int-to-float v14, v14
move/from16 v22, v14
invoke-static/range {v16 .. v22}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v14
invoke-virtual {v6, v13, v14}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 651
new-instance v6, Lim/tpelyyftgw/ui/components/RadialProgressView;
invoke-direct {v6, v1}, Lim/tpelyyftgw/ui/components/RadialProgressView;-><init>(Landroid/content/Context;)V
iput-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->progressBar:Lim/tpelyyftgw/ui/components/RadialProgressView;
.line 652
invoke-virtual {v6, v8}, Lim/tpelyyftgw/ui/components/RadialProgressView;->setVisibility(I)V
.line 653
iget-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->containerLayout:Landroid/widget/FrameLayout;
iget-object v13, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->progressBar:Lim/tpelyyftgw/ui/components/RadialProgressView;
const/high16 v16, -0x40000000 # -2.0f
const/high16 v17, -0x40000000 # -2.0f
const/16 v18, 0x11
const/16 v19, 0x0
const/16 v20, 0x0
const/16 v21, 0x0
iget-boolean v14, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->hasDescription:Z
if-eqz v14, :cond_1af
goto :goto_1b1
:cond_1af
const/16 v23, 0x0
:goto_1b1
add-int/lit8 v23, v23, 0x54
const/4 v14, 0x2
div-int/lit8 v14, v23, 0x2
int-to-float v14, v14
move/from16 v22, v14
invoke-static/range {v16 .. v22}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v14
invoke-virtual {v6, v13, v14}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 657
iget-boolean v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->hasDescription:Z
const-string v13, "fonts/rmedium.ttf"
const/high16 v14, 0x41900000 # 18.0f
if-eqz v6, :cond_20f
.line 658
new-instance v6, Landroid/widget/TextView;
invoke-direct {v6, v1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V
.line 659
.local v6, "textView":Landroid/widget/TextView;
const/high16 v15, 0x41800000 # 16.0f
invoke-virtual {v6, v9, v15}, Landroid/widget/TextView;->setTextSize(IF)V
.line 660
const-string v15, "dialogTextBlack"
invoke-static {v15}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v15
invoke-virtual {v6, v15}, Landroid/widget/TextView;->setTextColor(I)V
.line 661
invoke-virtual {v6, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 662
invoke-virtual {v6, v9}, Landroid/widget/TextView;->setSingleLine(Z)V
.line 663
invoke-static {v13}, Lim/tpelyyftgw/messenger/AndroidUtilities;->getTypeface(Ljava/lang/String;)Landroid/graphics/Typeface;
move-result-object v15
invoke-virtual {v6, v15}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;)V
.line 664
sget-object v15, Landroid/text/TextUtils$TruncateAt;->END:Landroid/text/TextUtils$TruncateAt;
invoke-virtual {v6, v15}, Landroid/widget/TextView;->setEllipsize(Landroid/text/TextUtils$TruncateAt;)V
.line 665
invoke-static {v14}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v15
invoke-static {v14}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v8
invoke-virtual {v6, v15, v5, v8, v5}, Landroid/widget/TextView;->setPadding(IIII)V
.line 666
iget-object v8, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->containerLayout:Landroid/widget/FrameLayout;
const/high16 v16, -0x40800000 # -1.0f
const/high16 v17, -0x40000000 # -2.0f
const/16 v18, 0x53
const/16 v19, 0x0
const/16 v20, 0x0
const/16 v21, 0x0
const/high16 v22, 0x429a0000 # 77.0f
invoke-static/range {v16 .. v22}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v15
invoke-virtual {v8, v6, v15}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 669
.end local v6 # "textView":Landroid/widget/TextView;
:cond_20f
new-instance v6, Landroid/widget/TextView;
invoke-direct {v6, v1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V
.line 670
.restart local v6 # "textView":Landroid/widget/TextView;
const/high16 v8, 0x41600000 # 14.0f
invoke-virtual {v6, v9, v8}, Landroid/widget/TextView;->setTextSize(IF)V
.line 671
const-string v15, "dialogTextGray"
invoke-static {v15}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v15
invoke-virtual {v6, v15}, Landroid/widget/TextView;->setTextColor(I)V
.line 672
move-object/from16 v15, p2
invoke-virtual {v6, v15}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 673
invoke-virtual {v6, v9}, Landroid/widget/TextView;->setSingleLine(Z)V
.line 674
sget-object v8, Landroid/text/TextUtils$TruncateAt;->END:Landroid/text/TextUtils$TruncateAt;
invoke-virtual {v6, v8}, Landroid/widget/TextView;->setEllipsize(Landroid/text/TextUtils$TruncateAt;)V
.line 675
invoke-static {v14}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v8
invoke-static {v14}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v7
invoke-virtual {v6, v8, v5, v7, v5}, Landroid/widget/TextView;->setPadding(IIII)V
.line 676
iget-object v7, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->containerLayout:Landroid/widget/FrameLayout;
const/high16 v23, -0x40800000 # -1.0f
const/high16 v24, -0x40000000 # -2.0f
const/16 v25, 0x53
const/16 v26, 0x0
const/16 v27, 0x0
const/16 v28, 0x0
const/high16 v29, 0x42640000 # 57.0f
invoke-static/range {v23 .. v29}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v8
invoke-virtual {v7, v6, v8}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 678
new-instance v7, Landroid/view/View;
invoke-direct {v7, v1}, Landroid/view/View;-><init>(Landroid/content/Context;)V
.line 679
.local v7, "lineView":Landroid/view/View;
const-string v8, "dialogGrayLine"
invoke-static {v8}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v8
invoke-virtual {v7, v8}, Landroid/view/View;->setBackgroundColor(I)V
.line 680
iget-object v8, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->containerLayout:Landroid/widget/FrameLayout;
new-instance v14, Landroid/widget/FrameLayout$LayoutParams;
const/16 v5, 0x53
const/4 v2, -0x1
invoke-direct {v14, v2, v9, v5}, Landroid/widget/FrameLayout$LayoutParams;-><init>(III)V
invoke-virtual {v8, v7, v14}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 681
invoke-virtual {v7}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v2
check-cast v2, Landroid/widget/FrameLayout$LayoutParams;
const/high16 v8, 0x42400000 # 48.0f
invoke-static {v8}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v8
iput v8, v2, Landroid/widget/FrameLayout$LayoutParams;->bottomMargin:I
.line 683
new-instance v2, Landroid/widget/FrameLayout;
invoke-direct {v2, v1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V
.line 684
.local v2, "frameLayout":Landroid/widget/FrameLayout;
const-string v8, "dialogBackground"
invoke-static {v8}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v8
invoke-virtual {v2, v8}, Landroid/widget/FrameLayout;->setBackgroundColor(I)V
.line 685
iget-object v8, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->containerLayout:Landroid/widget/FrameLayout;
const/16 v14, 0x30
const/4 v9, -0x1
invoke-static {v9, v14, v5}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(III)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v5
invoke-virtual {v8, v2, v5}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 687
new-instance v5, Landroid/widget/LinearLayout;
invoke-direct {v5, v1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V
.line 688
.local v5, "linearLayout":Landroid/widget/LinearLayout;
const/4 v8, 0x0
invoke-virtual {v5, v8}, Landroid/widget/LinearLayout;->setOrientation(I)V
.line 689
const/high16 v8, 0x3f800000 # 1.0f
invoke-virtual {v5, v8}, Landroid/widget/LinearLayout;->setWeightSum(F)V
.line 690
const/16 v8, 0x35
const/4 v9, -0x2
const/4 v14, -0x1
invoke-static {v9, v14, v8}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(III)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v8
invoke-virtual {v2, v5, v8}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 692
new-instance v8, Landroid/widget/TextView;
invoke-direct {v8, v1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V
move-object v6, v8
.line 693
const/high16 v8, 0x41600000 # 14.0f
const/4 v9, 0x1
invoke-virtual {v6, v9, v8}, Landroid/widget/TextView;->setTextSize(IF)V
.line 694
const-string v8, "dialogTextBlue4"
invoke-static {v8}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v14
invoke-virtual {v6, v14}, Landroid/widget/TextView;->setTextColor(I)V
.line 695
const/16 v14, 0x11
invoke-virtual {v6, v14}, Landroid/widget/TextView;->setGravity(I)V
.line 696
invoke-virtual {v6, v9}, Landroid/widget/TextView;->setSingleLine(Z)V
.line 697
sget-object v9, Landroid/text/TextUtils$TruncateAt;->END:Landroid/text/TextUtils$TruncateAt;
invoke-virtual {v6, v9}, Landroid/widget/TextView;->setEllipsize(Landroid/text/TextUtils$TruncateAt;)V
.line 698
const-string v9, "dialogButtonSelector"
invoke-static {v9}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v14
const/4 v3, 0x0
invoke-static {v14, v3}, Lim/tpelyyftgw/ui/actionbar/Theme;->createSelectorDrawable(II)Landroid/graphics/drawable/Drawable;
move-result-object v14
invoke-virtual {v6, v14}, Landroid/widget/TextView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
.line 699
const/high16 v14, 0x41900000 # 18.0f
invoke-static {v14}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v4
move-object/from16 v22, v7
.end local v7 # "lineView":Landroid/view/View;
.local v22, "lineView":Landroid/view/View;
invoke-static {v14}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v7
invoke-virtual {v6, v4, v3, v7, v3}, Landroid/widget/TextView;->setPadding(IIII)V
.line 700
const v3, 0x7f0f042e
const-string v4, "Close"
invoke-static {v4, v3}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;
move-result-object v3
invoke-virtual {v3}, Ljava/lang/String;->toUpperCase()Ljava/lang/String;
move-result-object v3
invoke-virtual {v6, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 701
invoke-static {v13}, Lim/tpelyyftgw/messenger/AndroidUtilities;->getTypeface(Ljava/lang/String;)Landroid/graphics/Typeface;
move-result-object v3
invoke-virtual {v6, v3}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;)V
.line 702
const/16 v3, 0x33
const/4 v4, -0x2
const/4 v7, -0x1
invoke-static {v4, v7, v3}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createLinear(III)Landroid/widget/LinearLayout$LayoutParams;
move-result-object v14
invoke-virtual {v2, v6, v14}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 703
new-instance v4, Lim/tpelyyftgw/ui/components/-$$Lambda$EmbedBottomSheet$wlrlltHG7jS_VwRytSLkZpyMErQ;
invoke-direct {v4, v0}, Lim/tpelyyftgw/ui/components/-$$Lambda$EmbedBottomSheet$wlrlltHG7jS_VwRytSLkZpyMErQ;-><init>(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)V
invoke-virtual {v6, v4}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 705
new-instance v4, Landroid/widget/LinearLayout;
invoke-direct {v4, v1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V
iput-object v4, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->imageButtonsContainer:Landroid/widget/LinearLayout;
.line 706
const/4 v7, 0x4
invoke-virtual {v4, v7}, Landroid/widget/LinearLayout;->setVisibility(I)V
.line 707
iget-object v4, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->imageButtonsContainer:Landroid/widget/LinearLayout;
move-object/from16 v24, v6
const/4 v3, -0x1
const/16 v7, 0x11
const/4 v14, -0x2
.end local v6 # "textView":Landroid/widget/TextView;
.local v24, "textView":Landroid/widget/TextView;
invoke-static {v14, v3, v7}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(III)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v6
invoke-virtual {v2, v4, v6}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 709
new-instance v3, Landroid/widget/ImageView;
invoke-direct {v3, v1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V
iput-object v3, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->pipButton:Landroid/widget/ImageView;
.line 710
sget-object v4, Landroid/widget/ImageView$ScaleType;->CENTER:Landroid/widget/ImageView$ScaleType;
invoke-virtual {v3, v4}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V
.line 711
iget-object v3, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->pipButton:Landroid/widget/ImageView;
const v4, 0x7f0803b5
invoke-virtual {v3, v4}, Landroid/widget/ImageView;->setImageResource(I)V
.line 712
iget-object v3, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->pipButton:Landroid/widget/ImageView;
const/4 v4, 0x0
invoke-virtual {v3, v4}, Landroid/widget/ImageView;->setEnabled(Z)V
.line 713
iget-object v3, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->pipButton:Landroid/widget/ImageView;
const/high16 v4, 0x3f000000 # 0.5f
invoke-virtual {v3, v4}, Landroid/widget/ImageView;->setAlpha(F)V
.line 714
iget-object v3, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->pipButton:Landroid/widget/ImageView;
new-instance v4, Landroid/graphics/PorterDuffColorFilter;
invoke-static {v8}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v6
sget-object v7, Landroid/graphics/PorterDuff$Mode;->MULTIPLY:Landroid/graphics/PorterDuff$Mode;
invoke-direct {v4, v6, v7}, Landroid/graphics/PorterDuffColorFilter;-><init>(ILandroid/graphics/PorterDuff$Mode;)V
invoke-virtual {v3, v4}, Landroid/widget/ImageView;->setColorFilter(Landroid/graphics/ColorFilter;)V
.line 715
iget-object v3, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->pipButton:Landroid/widget/ImageView;
invoke-static {v9}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v4
const/4 v6, 0x0
invoke-static {v4, v6}, Lim/tpelyyftgw/ui/actionbar/Theme;->createSelectorDrawable(II)Landroid/graphics/drawable/Drawable;
move-result-object v4
invoke-virtual {v3, v4}, Landroid/widget/ImageView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
.line 716
iget-object v3, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->imageButtonsContainer:Landroid/widget/LinearLayout;
iget-object v4, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->pipButton:Landroid/widget/ImageView;
const/high16 v25, 0x42400000 # 48.0f
const/high16 v26, 0x42400000 # 48.0f
const/16 v27, 0x33
const/16 v29, 0x0
const/high16 v30, 0x40800000 # 4.0f
const/16 v31, 0x0
invoke-static/range {v25 .. v31}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v6
invoke-virtual {v3, v4, v6}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 717
iget-object v3, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->pipButton:Landroid/widget/ImageView;
new-instance v4, Lim/tpelyyftgw/ui/components/-$$Lambda$EmbedBottomSheet$hQoLQBsiEBoXdjG6w8VjL_6uXcI;
invoke-direct {v4, v0}, Lim/tpelyyftgw/ui/components/-$$Lambda$EmbedBottomSheet$hQoLQBsiEBoXdjG6w8VjL_6uXcI;-><init>(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)V
invoke-virtual {v3, v4}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 768
new-instance v3, Lim/tpelyyftgw/ui/components/-$$Lambda$EmbedBottomSheet$-GX2YZ0LpRzPNMevE1WRFKePPCs;
.local v3, "copyClickListener":Landroid/view/View$OnClickListener;
invoke-direct {v3, v0}, Lim/tpelyyftgw/ui/components/-$$Lambda$EmbedBottomSheet$-GX2YZ0LpRzPNMevE1WRFKePPCs;-><init>(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)V
.line 780
new-instance v4, Landroid/widget/ImageView;
invoke-direct {v4, v1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V
.line 781
.local v4, "copyButton":Landroid/widget/ImageView;
sget-object v6, Landroid/widget/ImageView$ScaleType;->CENTER:Landroid/widget/ImageView$ScaleType;
invoke-virtual {v4, v6}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V
.line 782
const v6, 0x7f0803ae
invoke-virtual {v4, v6}, Landroid/widget/ImageView;->setImageResource(I)V
.line 783
new-instance v6, Landroid/graphics/PorterDuffColorFilter;
invoke-static {v8}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v7
sget-object v14, Landroid/graphics/PorterDuff$Mode;->MULTIPLY:Landroid/graphics/PorterDuff$Mode;
invoke-direct {v6, v7, v14}, Landroid/graphics/PorterDuffColorFilter;-><init>(ILandroid/graphics/PorterDuff$Mode;)V
invoke-virtual {v4, v6}, Landroid/widget/ImageView;->setColorFilter(Landroid/graphics/ColorFilter;)V
.line 784
invoke-static {v9}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v6
const/4 v7, 0x0
invoke-static {v6, v7}, Lim/tpelyyftgw/ui/actionbar/Theme;->createSelectorDrawable(II)Landroid/graphics/drawable/Drawable;
move-result-object v6
invoke-virtual {v4, v6}, Landroid/widget/ImageView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
.line 785
iget-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->imageButtonsContainer:Landroid/widget/LinearLayout;
const/16 v7, 0x30
const/16 v14, 0x33
invoke-static {v7, v7, v14}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(III)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v7
invoke-virtual {v6, v4, v7}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 786
invoke-virtual {v4, v3}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 788
new-instance v6, Landroid/widget/TextView;
invoke-direct {v6, v1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V
iput-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->copyTextButton:Landroid/widget/TextView;
.line 789
const/high16 v7, 0x41600000 # 14.0f
const/4 v14, 0x1
invoke-virtual {v6, v14, v7}, Landroid/widget/TextView;->setTextSize(IF)V
.line 790
iget-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->copyTextButton:Landroid/widget/TextView;
invoke-static {v8}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v7
invoke-virtual {v6, v7}, Landroid/widget/TextView;->setTextColor(I)V
.line 791
iget-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->copyTextButton:Landroid/widget/TextView;
const/16 v7, 0x11
invoke-virtual {v6, v7}, Landroid/widget/TextView;->setGravity(I)V
.line 792
iget-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->copyTextButton:Landroid/widget/TextView;
invoke-virtual {v6, v14}, Landroid/widget/TextView;->setSingleLine(Z)V
.line 793
iget-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->copyTextButton:Landroid/widget/TextView;
sget-object v7, Landroid/text/TextUtils$TruncateAt;->END:Landroid/text/TextUtils$TruncateAt;
invoke-virtual {v6, v7}, Landroid/widget/TextView;->setEllipsize(Landroid/text/TextUtils$TruncateAt;)V
.line 794
iget-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->copyTextButton:Landroid/widget/TextView;
invoke-static {v9}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v7
const/4 v14, 0x0
invoke-static {v7, v14}, Lim/tpelyyftgw/ui/actionbar/Theme;->createSelectorDrawable(II)Landroid/graphics/drawable/Drawable;
move-result-object v7
invoke-virtual {v6, v7}, Landroid/widget/TextView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
.line 795
iget-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->copyTextButton:Landroid/widget/TextView;
move-object/from16 v21, v2
const/high16 v7, 0x41900000 # 18.0f
.end local v2 # "frameLayout":Landroid/widget/FrameLayout;
.local v21, "frameLayout":Landroid/widget/FrameLayout;
invoke-static {v7}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v2
move-object/from16 v25, v4
.end local v4 # "copyButton":Landroid/widget/ImageView;
.local v25, "copyButton":Landroid/widget/ImageView;
invoke-static {v7}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v4
invoke-virtual {v6, v2, v14, v4, v14}, Landroid/widget/TextView;->setPadding(IIII)V
.line 796
iget-object v2, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->copyTextButton:Landroid/widget/TextView;
const v4, 0x7f0f047e
const-string v6, "Copy"
invoke-static {v6, v4}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;
move-result-object v4
invoke-virtual {v4}, Ljava/lang/String;->toUpperCase()Ljava/lang/String;
move-result-object v4
invoke-virtual {v2, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 797
iget-object v2, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->copyTextButton:Landroid/widget/TextView;
invoke-static {v13}, Lim/tpelyyftgw/messenger/AndroidUtilities;->getTypeface(Ljava/lang/String;)Landroid/graphics/Typeface;
move-result-object v4
invoke-virtual {v2, v4}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;)V
.line 798
iget-object v2, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->copyTextButton:Landroid/widget/TextView;
const/16 v4, 0x33
const/4 v6, -0x2
const/4 v7, -0x1
invoke-static {v6, v7, v4}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(III)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v14
invoke-virtual {v5, v2, v14}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 799
iget-object v2, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->copyTextButton:Landroid/widget/TextView;
invoke-virtual {v2, v3}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 801
new-instance v2, Landroid/widget/TextView;
invoke-direct {v2, v1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V
.line 802
.local v2, "openInButton":Landroid/widget/TextView;
const/high16 v4, 0x41600000 # 14.0f
const/4 v6, 0x1
invoke-virtual {v2, v6, v4}, Landroid/widget/TextView;->setTextSize(IF)V
.line 803
invoke-static {v8}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v4
invoke-virtual {v2, v4}, Landroid/widget/TextView;->setTextColor(I)V
.line 804
const/16 v4, 0x11
invoke-virtual {v2, v4}, Landroid/widget/TextView;->setGravity(I)V
.line 805
invoke-virtual {v2, v6}, Landroid/widget/TextView;->setSingleLine(Z)V
.line 806
sget-object v4, Landroid/text/TextUtils$TruncateAt;->END:Landroid/text/TextUtils$TruncateAt;
invoke-virtual {v2, v4}, Landroid/widget/TextView;->setEllipsize(Landroid/text/TextUtils$TruncateAt;)V
.line 807
invoke-static {v9}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v4
const/4 v6, 0x0
invoke-static {v4, v6}, Lim/tpelyyftgw/ui/actionbar/Theme;->createSelectorDrawable(II)Landroid/graphics/drawable/Drawable;
move-result-object v4
invoke-virtual {v2, v4}, Landroid/widget/TextView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
.line 808
const/high16 v4, 0x41900000 # 18.0f
invoke-static {v4}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v7
invoke-static {v4}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v4
invoke-virtual {v2, v7, v6, v4, v6}, Landroid/widget/TextView;->setPadding(IIII)V
.line 809
const v4, 0x7f0f0a75
const-string v6, "OpenInBrowser"
invoke-static {v6, v4}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;
move-result-object v4
invoke-virtual {v4}, Ljava/lang/String;->toUpperCase()Ljava/lang/String;
move-result-object v4
invoke-virtual {v2, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 810
invoke-static {v13}, Lim/tpelyyftgw/messenger/AndroidUtilities;->getTypeface(Ljava/lang/String;)Landroid/graphics/Typeface;
move-result-object v4
invoke-virtual {v2, v4}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;)V
.line 811
const/16 v4, 0x33
const/4 v6, -0x2
const/4 v7, -0x1
invoke-static {v6, v7, v4}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(III)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v4
invoke-virtual {v5, v2, v4}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 812
new-instance v4, Lim/tpelyyftgw/ui/components/-$$Lambda$EmbedBottomSheet$_Y6zE0ygfUtq08ZzENDF0_Od8mo;
invoke-direct {v4, v0}, Lim/tpelyyftgw/ui/components/-$$Lambda$EmbedBottomSheet$_Y6zE0ygfUtq08ZzENDF0_Od8mo;-><init>(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)V
invoke-virtual {v2, v4}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 817
new-instance v4, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$7;
invoke-direct {v4, v0}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$7;-><init>(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)V
invoke-virtual {v0, v4}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->setDelegate(Lim/tpelyyftgw/ui/actionbar/BottomSheet$BottomSheetDelegateInterface;)V
.line 896
new-instance v4, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$8;
sget-object v6, Lim/tpelyyftgw/messenger/ApplicationLoader;->applicationContext:Landroid/content/Context;
invoke-direct {v4, v0, v6}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$8;-><init>(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;Landroid/content/Context;)V
iput-object v4, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->orientationEventListener:Landroid/view/OrientationEventListener;
.line 914
iget-object v4, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->videoView:Lim/tpelyyftgw/ui/components/WebPlayerView;
iget-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->embedUrl:Ljava/lang/String;
invoke-virtual {v4, v6}, Lim/tpelyyftgw/ui/components/WebPlayerView;->getYouTubeVideoId(Ljava/lang/String;)Ljava/lang/String;
move-result-object v4
.line 915
.local v4, "currentYoutubeId":Ljava/lang/String;
if-eqz v4, :cond_50c
.line 916
iget-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->progressBar:Lim/tpelyyftgw/ui/components/RadialProgressView;
const/4 v7, 0x0
invoke-virtual {v6, v7}, Lim/tpelyyftgw/ui/components/RadialProgressView;->setVisibility(I)V
.line 917
iget-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->webView:Landroid/webkit/WebView;
invoke-virtual {v6, v7}, Landroid/webkit/WebView;->setVisibility(I)V
.line 918
iget-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->imageButtonsContainer:Landroid/widget/LinearLayout;
invoke-virtual {v6, v7}, Landroid/widget/LinearLayout;->setVisibility(I)V
.line 919
iget-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->progressBarBlackBackground:Landroid/view/View;
invoke-virtual {v6, v7}, Landroid/view/View;->setVisibility(I)V
.line 920
iget-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->copyTextButton:Landroid/widget/TextView;
const/4 v7, 0x4
invoke-virtual {v6, v7}, Landroid/widget/TextView;->setVisibility(I)V
.line 921
iget-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->webView:Landroid/webkit/WebView;
const/4 v8, 0x1
invoke-virtual {v6, v8}, Landroid/webkit/WebView;->setKeepScreenOn(Z)V
.line 922
iget-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->videoView:Lim/tpelyyftgw/ui/components/WebPlayerView;
invoke-virtual {v6, v7}, Lim/tpelyyftgw/ui/components/WebPlayerView;->setVisibility(I)V
.line 923
iget-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->videoView:Lim/tpelyyftgw/ui/components/WebPlayerView;
invoke-virtual {v6}, Lim/tpelyyftgw/ui/components/WebPlayerView;->getControlsView()Landroid/view/View;
move-result-object v6
invoke-virtual {v6, v7}, Landroid/view/View;->setVisibility(I)V
.line 924
iget-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->videoView:Lim/tpelyyftgw/ui/components/WebPlayerView;
invoke-virtual {v6}, Lim/tpelyyftgw/ui/components/WebPlayerView;->getTextureView()Landroid/view/TextureView;
move-result-object v6
invoke-virtual {v6, v7}, Landroid/view/TextureView;->setVisibility(I)V
.line 925
iget-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->videoView:Lim/tpelyyftgw/ui/components/WebPlayerView;
invoke-virtual {v6}, Lim/tpelyyftgw/ui/components/WebPlayerView;->getTextureImageView()Landroid/widget/ImageView;
move-result-object v6
if-eqz v6, :cond_50c
.line 926
iget-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->videoView:Lim/tpelyyftgw/ui/components/WebPlayerView;
invoke-virtual {v6}, Lim/tpelyyftgw/ui/components/WebPlayerView;->getTextureImageView()Landroid/widget/ImageView;
move-result-object v6
invoke-virtual {v6, v7}, Landroid/widget/ImageView;->setVisibility(I)V
.line 930
:cond_50c
iget-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->orientationEventListener:Landroid/view/OrientationEventListener;
invoke-virtual {v6}, Landroid/view/OrientationEventListener;->canDetectOrientation()Z
move-result v6
if-eqz v6, :cond_51a
.line 931
iget-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->orientationEventListener:Landroid/view/OrientationEventListener;
invoke-virtual {v6}, Landroid/view/OrientationEventListener;->enable()V
goto :goto_522
.line 933
:cond_51a
iget-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->orientationEventListener:Landroid/view/OrientationEventListener;
invoke-virtual {v6}, Landroid/view/OrientationEventListener;->disable()V
.line 934
const/4 v6, 0x0
iput-object v6, v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->orientationEventListener:Landroid/view/OrientationEventListener;
.line 936
:goto_522
sput-object v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->instance:Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 937
return-void
.end method
.method static synthetic access$000(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Lim/tpelyyftgw/ui/components/RadialProgressView;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->progressBar:Lim/tpelyyftgw/ui/components/RadialProgressView;
return-object v0
.end method
.method static synthetic access$100(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Landroid/view/View;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->progressBarBlackBackground:Landroid/view/View;
return-object v0
.end method
.method static synthetic access$1000(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Landroid/view/View;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->customView:Landroid/view/View;
return-object v0
.end method
.method static synthetic access$1002(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;Landroid/view/View;)Landroid/view/View;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.param p1, "x1" # Landroid/view/View;
.line 58
iput-object p1, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->customView:Landroid/view/View;
return-object p1
.end method
.method static synthetic access$1100(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Landroid/widget/FrameLayout;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->fullscreenVideoContainer:Landroid/widget/FrameLayout;
return-object v0
.end method
.method static synthetic access$1200(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Landroid/webkit/WebChromeClient$CustomViewCallback;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->customViewCallback:Landroid/webkit/WebChromeClient$CustomViewCallback;
return-object v0
.end method
.method static synthetic access$1202(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;Landroid/webkit/WebChromeClient$CustomViewCallback;)Landroid/webkit/WebChromeClient$CustomViewCallback;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.param p1, "x1" # Landroid/webkit/WebChromeClient$CustomViewCallback;
.line 58
iput-object p1, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->customViewCallback:Landroid/webkit/WebChromeClient$CustomViewCallback;
return-object p1
.end method
.method static synthetic access$1300(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Z
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->isYouTube:Z
return v0
.end method
.method static synthetic access$1302(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;Z)Z
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.param p1, "x1" # Z
.line 58
iput-boolean p1, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->isYouTube:Z
return p1
.end method
.method static synthetic access$1400(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Landroid/widget/LinearLayout;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->imageButtonsContainer:Landroid/widget/LinearLayout;
return-object v0
.end method
.method static synthetic access$1500(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Landroid/widget/TextView;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->copyTextButton:Landroid/widget/TextView;
return-object v0
.end method
.method static synthetic access$1600(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Ljava/lang/String;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->embedUrl:Ljava/lang/String;
return-object v0
.end method
.method static synthetic access$1700(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Z
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->wasInLandscape:Z
return v0
.end method
.method static synthetic access$1702(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;Z)Z
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.param p1, "x1" # Z
.line 58
iput-boolean p1, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->wasInLandscape:Z
return p1
.end method
.method static synthetic access$1800(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Z
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->fullscreenedByButton:Z
return v0
.end method
.method static synthetic access$1802(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;Z)Z
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.param p1, "x1" # Z
.line 58
iput-boolean p1, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->fullscreenedByButton:Z
return p1
.end method
.method static synthetic access$1900(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Landroid/app/Activity;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->parentActivity:Landroid/app/Activity;
return-object v0
.end method
.method static synthetic access$200(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Landroid/widget/ImageView;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->pipButton:Landroid/widget/ImageView;
return-object v0
.end method
.method static synthetic access$2000(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)I
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->prevOrientation:I
return v0
.end method
.method static synthetic access$2002(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;I)I
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.param p1, "x1" # I
.line 58
iput p1, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->prevOrientation:I
return p1
.end method
.method static synthetic access$2100(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Landroid/view/ViewGroup;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->containerView:Landroid/view/ViewGroup;
return-object v0
.end method
.method static synthetic access$2200(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Landroid/view/ViewGroup;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->containerView:Landroid/view/ViewGroup;
return-object v0
.end method
.method static synthetic access$2300(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Landroid/view/ViewGroup;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->containerView:Landroid/view/ViewGroup;
return-object v0
.end method
.method static synthetic access$2400(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Landroid/view/ViewGroup;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->containerView:Landroid/view/ViewGroup;
return-object v0
.end method
.method static synthetic access$2500(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Landroid/view/ViewGroup;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->containerView:Landroid/view/ViewGroup;
return-object v0
.end method
.method static synthetic access$2600(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Landroid/graphics/drawable/ColorDrawable;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->backDrawable:Landroid/graphics/drawable/ColorDrawable;
return-object v0
.end method
.method static synthetic access$2700(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Landroid/view/ViewGroup;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->containerView:Landroid/view/ViewGroup;
return-object v0
.end method
.method static synthetic access$2800(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Landroid/view/ViewGroup;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->containerView:Landroid/view/ViewGroup;
return-object v0
.end method
.method static synthetic access$2900(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Landroid/graphics/drawable/ColorDrawable;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->backDrawable:Landroid/graphics/drawable/ColorDrawable;
return-object v0
.end method
.method static synthetic access$300(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Lim/tpelyyftgw/ui/components/PipVideoView;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->pipVideoView:Lim/tpelyyftgw/ui/components/PipVideoView;
return-object v0
.end method
.method static synthetic access$3000(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Landroid/content/DialogInterface$OnShowListener;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->onShowListener:Landroid/content/DialogInterface$OnShowListener;
return-object v0
.end method
.method static synthetic access$302(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;Lim/tpelyyftgw/ui/components/PipVideoView;)Lim/tpelyyftgw/ui/components/PipVideoView;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.param p1, "x1" # Lim/tpelyyftgw/ui/components/PipVideoView;
.line 58
iput-object p1, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->pipVideoView:Lim/tpelyyftgw/ui/components/PipVideoView;
return-object p1
.end method
.method static synthetic access$3102(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;I)I
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.param p1, "x1" # I
.line 58
iput p1, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->waitingForDraw:I
return p1
.end method
.method static synthetic access$3200(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Landroid/graphics/drawable/ColorDrawable;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->backDrawable:Landroid/graphics/drawable/ColorDrawable;
return-object v0
.end method
.method static synthetic access$3300(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Landroid/view/ViewGroup;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->containerView:Landroid/view/ViewGroup;
return-object v0
.end method
.method static synthetic access$3400(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Landroid/view/ViewGroup;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->containerView:Landroid/view/ViewGroup;
return-object v0
.end method
.method static synthetic access$3502(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;Z)Z
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.param p1, "x1" # Z
.line 58
iput-boolean p1, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->animationInProgress:Z
return p1
.end method
.method static synthetic access$3600(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)[I
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->position:[I
return-object v0
.end method
.method static synthetic access$3700(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)I
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->getLeftInset()I
move-result v0
return v0
.end method
.method static synthetic access$3800(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Landroid/view/ViewGroup;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->containerView:Landroid/view/ViewGroup;
return-object v0
.end method
.method static synthetic access$3900(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Landroid/view/ViewGroup;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->containerView:Landroid/view/ViewGroup;
return-object v0
.end method
.method static synthetic access$400(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Lim/tpelyyftgw/ui/components/WebPlayerView;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->videoView:Lim/tpelyyftgw/ui/components/WebPlayerView;
return-object v0
.end method
.method static synthetic access$4000(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Landroid/graphics/drawable/ColorDrawable;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->backDrawable:Landroid/graphics/drawable/ColorDrawable;
return-object v0
.end method
.method static synthetic access$4100(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Landroid/view/ViewGroup;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->containerView:Landroid/view/ViewGroup;
return-object v0
.end method
.method static synthetic access$4200(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Lim/tpelyyftgw/ui/actionbar/BottomSheet$ContainerView;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->container:Lim/tpelyyftgw/ui/actionbar/BottomSheet$ContainerView;
return-object v0
.end method
.method static synthetic access$4300(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Ljava/lang/String;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->openUrl:Ljava/lang/String;
return-object v0
.end method
.method static synthetic access$4500(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)I
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->seekTimeOverride:I
return v0
.end method
.method static synthetic access$4600(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Landroid/view/OrientationEventListener;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->orientationEventListener:Landroid/view/OrientationEventListener;
return-object v0
.end method
.method static synthetic access$500(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Landroid/webkit/WebView;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->webView:Landroid/webkit/WebView;
return-object v0
.end method
.method static synthetic access$600()Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.registers 1
.line 58
sget-object v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->instance:Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
return-object v0
.end method
.method static synthetic access$602(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.registers 1
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
sput-object p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->instance:Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
return-object p0
.end method
.method static synthetic access$700(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)I
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->width:I
return v0
.end method
.method static synthetic access$800(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)I
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->height:I
return v0
.end method
.method static synthetic access$900(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)Z
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 58
iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->hasDescription:Z
return v0
.end method
.method public static getInstance()Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.registers 1
.line 1036
sget-object v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->instance:Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
return-object v0
.end method
.method static synthetic lambda$new$0(Landroid/view/View;Landroid/view/MotionEvent;)Z
.registers 3
.param p0, "v" # Landroid/view/View;
.param p1, "event" # Landroid/view/MotionEvent;
.line 265
const/4 v0, 0x1
return v0
.end method
.method static synthetic lambda$new$1(Landroid/view/View;Landroid/view/MotionEvent;)Z
.registers 3
.param p0, "v" # Landroid/view/View;
.param p1, "event" # Landroid/view/MotionEvent;
.line 269
const/4 v0, 0x1
return v0
.end method
.method static synthetic lambda$new$2(Landroid/view/View;Landroid/view/MotionEvent;)Z
.registers 3
.param p0, "v" # Landroid/view/View;
.param p1, "event" # Landroid/view/MotionEvent;
.line 303
const/4 v0, 0x1
return v0
.end method
.method private runJsCode(Ljava/lang/String;)V
.registers 5
.param p1, "code" # Ljava/lang/String;
.line 940
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x15
if-lt v0, v1, :cond_d
.line 941
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->webView:Landroid/webkit/WebView;
const/4 v1, 0x0
invoke-virtual {v0, p1, v1}, Landroid/webkit/WebView;->evaluateJavascript(Ljava/lang/String;Landroid/webkit/ValueCallback;)V
goto :goto_28
.line 944
:cond_d
:try_start_d
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->webView:Landroid/webkit/WebView;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "javascript:"
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V
:try_end_23
.catch Ljava/lang/Exception; {:try_start_d .. :try_end_23} :catch_24
.line 947
goto :goto_28
.line 945
:catch_24
move-exception v0
.line 946
.local v0, "e":Ljava/lang/Exception;
invoke-static {v0}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V
.line 949
.end local v0 # "e":Ljava/lang/Exception;
:goto_28
return-void
.end method
.method public static show(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;II)V
.registers 15
.param p0, "context" # Landroid/content/Context;
.param p1, "title" # Ljava/lang/String;
.param p2, "description" # Ljava/lang/String;
.param p3, "originalUrl" # Ljava/lang/String;
.param p4, "url" # Ljava/lang/String;
.param p5, "w" # I
.param p6, "h" # I
.line 227
const/4 v7, -0x1
move-object v0, p0
move-object v1, p1
move-object v2, p2
move-object v3, p3
move-object v4, p4
move v5, p5
move v6, p6
invoke-static/range {v0 .. v7}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->show(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;III)V
.line 228
return-void
.end method
.method public static show(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;III)V
.registers 18
.param p0, "context" # Landroid/content/Context;
.param p1, "title" # Ljava/lang/String;
.param p2, "description" # Ljava/lang/String;
.param p3, "originalUrl" # Ljava/lang/String;
.param p4, "url" # Ljava/lang/String;
.param p5, "w" # I
.param p6, "h" # I
.param p7, "seekTime" # I
.line 231
sget-object v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->instance:Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
if-eqz v0, :cond_7
.line 232
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->destroy()V
.line 234
:cond_7
new-instance v0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
move-object v1, v0
move-object v2, p0
move-object v3, p1
move-object v4, p2
move-object v5, p3
move-object v6, p4
move v7, p5
move/from16 v8, p6
move/from16 v9, p7
invoke-direct/range {v1 .. v9}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;III)V
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->show()V
.line 235
return-void
.end method
# virtual methods
.method protected canDismissWithSwipe()Z
.registers 2
.line 971
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->videoView:Lim/tpelyyftgw/ui/components/WebPlayerView;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->getVisibility()I
move-result v0
if-nez v0, :cond_13
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->videoView:Lim/tpelyyftgw/ui/components/WebPlayerView;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->isInFullscreen()Z
move-result v0
if-nez v0, :cond_11
goto :goto_13
:cond_11
const/4 v0, 0x0
goto :goto_14
:cond_13
:goto_13
const/4 v0, 0x1
:goto_14
return v0
.end method
.method protected canDismissWithTouchOutside()Z
.registers 2
.line 1064
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->fullscreenVideoContainer:Landroid/widget/FrameLayout;
invoke-virtual {v0}, Landroid/widget/FrameLayout;->getVisibility()I
move-result v0
if-eqz v0, :cond_a
const/4 v0, 0x1
goto :goto_b
:cond_a
const/4 v0, 0x0
:goto_b
return v0
.end method
.method public checkInlinePermissions()Z
.registers 5
.line 952
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->parentActivity:Landroid/app/Activity;
const/4 v1, 0x0
if-nez v0, :cond_6
.line 953
return v1
.line 955
:cond_6
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v2, 0x17
if-lt v0, v2, :cond_4c
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->parentActivity:Landroid/app/Activity;
invoke-static {v0}, Landroid/provider/Settings;->canDrawOverlays(Landroid/content/Context;)Z
move-result v0
if-eqz v0, :cond_15
goto :goto_4c
.line 958
:cond_15
new-instance v0, Lim/tpelyyftgw/ui/actionbar/AlertDialog$Builder;
iget-object v2, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->parentActivity:Landroid/app/Activity;
invoke-direct {v0, v2}, Lim/tpelyyftgw/ui/actionbar/AlertDialog$Builder;-><init>(Landroid/content/Context;)V
const v2, 0x7f0f0141
const-string v3, "AppName"
invoke-static {v3, v2}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;
move-result-object v2
invoke-virtual {v0, v2}, Lim/tpelyyftgw/ui/actionbar/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Lim/tpelyyftgw/ui/actionbar/AlertDialog$Builder;
move-result-object v0
const v2, 0x7f0f0c54
.line 959
const-string v3, "PermissionDrawAboveOtherApps"
invoke-static {v3, v2}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;
move-result-object v2
invoke-virtual {v0, v2}, Lim/tpelyyftgw/ui/actionbar/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Lim/tpelyyftgw/ui/actionbar/AlertDialog$Builder;
move-result-object v0
const v2, 0x7f0f0c5a
.line 960
const-string v3, "PermissionOpenSettings"
invoke-static {v3, v2}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;
move-result-object v2
new-instance v3, Lim/tpelyyftgw/ui/components/-$$Lambda$EmbedBottomSheet$AYkGy5cls2cnJDywEGdVyfqfLI4;
invoke-direct {v3, p0}, Lim/tpelyyftgw/ui/components/-$$Lambda$EmbedBottomSheet$AYkGy5cls2cnJDywEGdVyfqfLI4;-><init>(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)V
invoke-virtual {v0, v2, v3}, Lim/tpelyyftgw/ui/actionbar/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Lim/tpelyyftgw/ui/actionbar/AlertDialog$Builder;
move-result-object v0
.line 964
invoke-virtual {v0}, Lim/tpelyyftgw/ui/actionbar/AlertDialog$Builder;->show()Lim/tpelyyftgw/ui/actionbar/AlertDialog;
.line 966
return v1
.line 956
:cond_4c
:goto_4c
const/4 v0, 0x1
return v0
.end method
.method public destroy()V
.registers 3
.line 993
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->webView:Landroid/webkit/WebView;
if-eqz v0, :cond_22
invoke-virtual {v0}, Landroid/webkit/WebView;->getVisibility()I
move-result v0
if-nez v0, :cond_22
.line 994
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->containerLayout:Landroid/widget/FrameLayout;
iget-object v1, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->webView:Landroid/webkit/WebView;
invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->removeView(Landroid/view/View;)V
.line 995
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->webView:Landroid/webkit/WebView;
invoke-virtual {v0}, Landroid/webkit/WebView;->stopLoading()V
.line 996
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->webView:Landroid/webkit/WebView;
const-string v1, "about:blank"
invoke-virtual {v0, v1}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V
.line 997
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->webView:Landroid/webkit/WebView;
invoke-virtual {v0}, Landroid/webkit/WebView;->destroy()V
.line 999
:cond_22
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->pipVideoView:Lim/tpelyyftgw/ui/components/PipVideoView;
const/4 v1, 0x0
if-eqz v0, :cond_2c
.line 1000
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/PipVideoView;->close()V
.line 1001
iput-object v1, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->pipVideoView:Lim/tpelyyftgw/ui/components/PipVideoView;
.line 1003
:cond_2c
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->videoView:Lim/tpelyyftgw/ui/components/WebPlayerView;
if-eqz v0, :cond_33
.line 1004
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->destroy()V
.line 1006
:cond_33
sput-object v1, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->instance:Lim/tpelyyftgw/ui/components/EmbedBottomSheet;
.line 1007
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->dismissInternal()V
.line 1008
return-void
.end method
.method public exitFromPip()V
.registers 12
.line 1011
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->webView:Landroid/webkit/WebView;
if-eqz v0, :cond_68
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->pipVideoView:Lim/tpelyyftgw/ui/components/PipVideoView;
if-nez v0, :cond_9
goto :goto_68
.line 1014
:cond_9
sget-boolean v0, Lim/tpelyyftgw/messenger/ApplicationLoader;->mainInterfacePaused:Z
if-eqz v0, :cond_20
.line 1016
:try_start_d
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->parentActivity:Landroid/app/Activity;
new-instance v1, Landroid/content/Intent;
sget-object v2, Lim/tpelyyftgw/messenger/ApplicationLoader;->applicationContext:Landroid/content/Context;
const-class v3, Lim/tpelyyftgw/messenger/BringAppForegroundService;
invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
invoke-virtual {v0, v1}, Landroid/app/Activity;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;
:try_end_1b
.catchall {:try_start_d .. :try_end_1b} :catchall_1c
.line 1019
goto :goto_20
.line 1017
:catchall_1c
move-exception v0
.line 1018
.local v0, "e":Ljava/lang/Throwable;
invoke-static {v0}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V
.line 1021
.end local v0 # "e":Ljava/lang/Throwable;
:cond_20
:goto_20
iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->isYouTube:Z
if-eqz v0, :cond_29
.line 1022
const-string v0, "showControls();"
invoke-direct {p0, v0}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->runJsCode(Ljava/lang/String;)V
.line 1024
:cond_29
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->webView:Landroid/webkit/WebView;
invoke-virtual {v0}, Landroid/webkit/WebView;->getParent()Landroid/view/ViewParent;
move-result-object v0
check-cast v0, Landroid/view/ViewGroup;
.line 1025
.local v0, "parent":Landroid/view/ViewGroup;
if-eqz v0, :cond_38
.line 1026
iget-object v1, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->webView:Landroid/webkit/WebView;
invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V
.line 1028
:cond_38
iget-object v1, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->containerLayout:Landroid/widget/FrameLayout;
iget-object v2, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->webView:Landroid/webkit/WebView;
const/high16 v3, -0x40800000 # -1.0f
const/high16 v4, -0x40800000 # -1.0f
const/16 v5, 0x33
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x0
iget-boolean v9, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->hasDescription:Z
const/4 v10, 0x0
if-eqz v9, :cond_4d
const/16 v9, 0x16
goto :goto_4e
:cond_4d
const/4 v9, 0x0
:goto_4e
add-int/lit8 v9, v9, 0x54
int-to-float v9, v9
invoke-static/range {v3 .. v9}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v3
invoke-virtual {v1, v2, v10, v3}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V
.line 1029
const/4 v1, 0x1
invoke-virtual {p0, v1}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->setShowWithoutAnimation(Z)V
.line 1030
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->show()V
.line 1031
iget-object v1, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->pipVideoView:Lim/tpelyyftgw/ui/components/PipVideoView;
invoke-virtual {v1}, Lim/tpelyyftgw/ui/components/PipVideoView;->close()V
.line 1032
const/4 v1, 0x0
iput-object v1, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->pipVideoView:Lim/tpelyyftgw/ui/components/PipVideoView;
.line 1033
return-void
.line 1012
.end local v0 # "parent":Landroid/view/ViewGroup;
:cond_68
:goto_68
return-void
.end method
.method public synthetic lambda$checkInlinePermissions$7$EmbedBottomSheet(Landroid/content/DialogInterface;I)V
.registers 7
.param p1, "dialog" # Landroid/content/DialogInterface;
.param p2, "which" # I
.line 961
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->parentActivity:Landroid/app/Activity;
if-eqz v0, :cond_29
.line 962
new-instance v1, Landroid/content/Intent;
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "package:"
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v3, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->parentActivity:Landroid/app/Activity;
invoke-virtual {v3}, Landroid/app/Activity;->getPackageName()Ljava/lang/String;
move-result-object v3
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
invoke-static {v2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
move-result-object v2
const-string v3, "android.settings.action.MANAGE_OVERLAY_PERMISSION"
invoke-direct {v1, v3, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V
invoke-virtual {v0, v1}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V
.line 964
:cond_29
return-void
.end method
.method public synthetic lambda$new$3$EmbedBottomSheet(Landroid/view/View;)V
.registers 2
.param p1, "v" # Landroid/view/View;
.line 703
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->dismiss()V
return-void
.end method
.method public synthetic lambda$new$4$EmbedBottomSheet(Landroid/view/View;)V
.registers 16
.param p1, "v" # Landroid/view/View;
.line 718
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->checkInlinePermissions()Z
move-result v0
if-nez v0, :cond_7
.line 719
return-void
.line 721
:cond_7
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->progressBar:Lim/tpelyyftgw/ui/components/RadialProgressView;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/RadialProgressView;->getVisibility()I
move-result v0
if-nez v0, :cond_10
.line 722
return-void
.line 724
:cond_10
const/4 v0, 0x0
.line 725
.local v0, "animated":Z
new-instance v1, Lim/tpelyyftgw/ui/components/PipVideoView;
invoke-direct {v1}, Lim/tpelyyftgw/ui/components/PipVideoView;-><init>()V
iput-object v1, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->pipVideoView:Lim/tpelyyftgw/ui/components/PipVideoView;
.line 726
iget-object v2, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->parentActivity:Landroid/app/Activity;
const/4 v4, 0x0
iget v3, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->width:I
const/high16 v8, 0x3f800000 # 1.0f
if-eqz v3, :cond_2a
iget v5, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->height:I
if-eqz v5, :cond_2a
int-to-float v3, v3
int-to-float v5, v5
div-float/2addr v3, v5
move v5, v3
goto :goto_2c
:cond_2a
const/high16 v5, 0x3f800000 # 1.0f
:goto_2c
const/4 v6, 0x0
iget-object v7, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->webView:Landroid/webkit/WebView;
move-object v3, p0
invoke-virtual/range {v1 .. v7}, Lim/tpelyyftgw/ui/components/PipVideoView;->show(Landroid/app/Activity;Lim/tpelyyftgw/ui/components/EmbedBottomSheet;Landroid/view/View;FILandroid/webkit/WebView;)Landroid/view/TextureView;
.line 727
iget-boolean v1, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->isYouTube:Z
if-eqz v1, :cond_3c
.line 728
const-string v1, "hideControls();"
invoke-direct {p0, v1}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->runJsCode(Ljava/lang/String;)V
.line 730
:cond_3c
const/4 v1, 0x0
if-eqz v0, :cond_135
.line 731
const/4 v2, 0x1
iput-boolean v2, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->animationInProgress:Z
.line 733
iget-object v3, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->videoView:Lim/tpelyyftgw/ui/components/WebPlayerView;
invoke-virtual {v3}, Lim/tpelyyftgw/ui/components/WebPlayerView;->getAspectRatioView()Landroid/view/View;
move-result-object v3
.line 734
.local v3, "view":Landroid/view/View;
iget-object v4, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->position:[I
invoke-virtual {v3, v4}, Landroid/view/View;->getLocationInWindow([I)V
.line 735
iget-object v4, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->position:[I
const/4 v5, 0x0
aget v6, v4, v5
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->getLeftInset()I
move-result v7
sub-int/2addr v6, v7
aput v6, v4, v5
.line 736
iget-object v4, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->position:[I
aget v6, v4, v2
int-to-float v6, v6
iget-object v7, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->containerView:Landroid/view/ViewGroup;
invoke-virtual {v7}, Landroid/view/ViewGroup;->getTranslationY()F
move-result v7
sub-float/2addr v6, v7
float-to-int v6, v6
aput v6, v4, v2
.line 738
iget-object v4, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->videoView:Lim/tpelyyftgw/ui/components/WebPlayerView;
invoke-virtual {v4}, Lim/tpelyyftgw/ui/components/WebPlayerView;->getTextureView()Landroid/view/TextureView;
move-result-object v4
.line 739
.local v4, "textureView":Landroid/view/TextureView;
iget-object v6, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->videoView:Lim/tpelyyftgw/ui/components/WebPlayerView;
invoke-virtual {v6}, Lim/tpelyyftgw/ui/components/WebPlayerView;->getTextureImageView()Landroid/widget/ImageView;
move-result-object v6
.line 740
.local v6, "textureImageView":Landroid/widget/ImageView;
new-instance v7, Landroid/animation/AnimatorSet;
invoke-direct {v7}, Landroid/animation/AnimatorSet;-><init>()V
.line 741
.local v7, "animatorSet":Landroid/animation/AnimatorSet;
const/16 v9, 0xa
new-array v9, v9, [Landroid/animation/Animator;
sget-object v10, Landroid/view/View;->SCALE_X:Landroid/util/Property;
new-array v11, v2, [F
aput v8, v11, v5
.line 742
invoke-static {v6, v10, v11}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Landroid/util/Property;[F)Landroid/animation/ObjectAnimator;
move-result-object v10
aput-object v10, v9, v5
sget-object v10, Landroid/view/View;->SCALE_Y:Landroid/util/Property;
new-array v11, v2, [F
aput v8, v11, v5
.line 743
invoke-static {v6, v10, v11}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Landroid/util/Property;[F)Landroid/animation/ObjectAnimator;
move-result-object v10
aput-object v10, v9, v2
const/4 v10, 0x2
sget-object v11, Landroid/view/View;->TRANSLATION_X:Landroid/util/Property;
new-array v12, v2, [F
iget-object v13, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->position:[I
aget v13, v13, v5
int-to-float v13, v13
aput v13, v12, v5
.line 744
invoke-static {v6, v11, v12}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Landroid/util/Property;[F)Landroid/animation/ObjectAnimator;
move-result-object v11
aput-object v11, v9, v10
const/4 v10, 0x3
sget-object v11, Landroid/view/View;->TRANSLATION_Y:Landroid/util/Property;
new-array v12, v2, [F
iget-object v13, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->position:[I
aget v13, v13, v2
int-to-float v13, v13
aput v13, v12, v5
.line 745
invoke-static {v6, v11, v12}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Landroid/util/Property;[F)Landroid/animation/ObjectAnimator;
move-result-object v11
aput-object v11, v9, v10
const/4 v10, 0x4
sget-object v11, Landroid/view/View;->SCALE_X:Landroid/util/Property;
new-array v12, v2, [F
aput v8, v12, v5
.line 746
invoke-static {v4, v11, v12}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Landroid/util/Property;[F)Landroid/animation/ObjectAnimator;
move-result-object v11
aput-object v11, v9, v10
const/4 v10, 0x5
sget-object v11, Landroid/view/View;->SCALE_Y:Landroid/util/Property;
new-array v12, v2, [F
aput v8, v12, v5
.line 747
invoke-static {v4, v11, v12}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Landroid/util/Property;[F)Landroid/animation/ObjectAnimator;
move-result-object v8
aput-object v8, v9, v10
const/4 v8, 0x6
sget-object v10, Landroid/view/View;->TRANSLATION_X:Landroid/util/Property;
new-array v11, v2, [F
iget-object v12, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->position:[I
aget v12, v12, v5
int-to-float v12, v12
aput v12, v11, v5
.line 748
invoke-static {v4, v10, v11}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Landroid/util/Property;[F)Landroid/animation/ObjectAnimator;
move-result-object v10
aput-object v10, v9, v8
const/4 v8, 0x7
sget-object v10, Landroid/view/View;->TRANSLATION_Y:Landroid/util/Property;
new-array v11, v2, [F
iget-object v12, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->position:[I
aget v12, v12, v2
int-to-float v12, v12
aput v12, v11, v5
.line 749
invoke-static {v4, v10, v11}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Landroid/util/Property;[F)Landroid/animation/ObjectAnimator;
move-result-object v10
aput-object v10, v9, v8
const/16 v8, 0x8
iget-object v10, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->containerView:Landroid/view/ViewGroup;
sget-object v11, Landroid/view/View;->TRANSLATION_Y:Landroid/util/Property;
new-array v12, v2, [F
aput v1, v12, v5
.line 750
invoke-static {v10, v11, v12}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Landroid/util/Property;[F)Landroid/animation/ObjectAnimator;
move-result-object v1
aput-object v1, v9, v8
const/16 v1, 0x9
iget-object v8, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->backDrawable:Landroid/graphics/drawable/ColorDrawable;
sget-object v10, Lim/tpelyyftgw/ui/components/AnimationProperties;->COLOR_DRAWABLE_ALPHA:Landroid/util/Property;
new-array v2, v2, [I
const/16 v11, 0x33
aput v11, v2, v5
.line 751
invoke-static {v8, v10, v2}, Landroid/animation/ObjectAnimator;->ofInt(Ljava/lang/Object;Landroid/util/Property;[I)Landroid/animation/ObjectAnimator;
move-result-object v2
aput-object v2, v9, v1
.line 741
invoke-virtual {v7, v9}, Landroid/animation/AnimatorSet;->playTogether([Landroid/animation/Animator;)V
.line 753
new-instance v1, Landroid/view/animation/DecelerateInterpolator;
invoke-direct {v1}, Landroid/view/animation/DecelerateInterpolator;-><init>()V
invoke-virtual {v7, v1}, Landroid/animation/AnimatorSet;->setInterpolator(Landroid/animation/TimeInterpolator;)V
.line 754
const-wide/16 v1, 0xfa
invoke-virtual {v7, v1, v2}, Landroid/animation/AnimatorSet;->setDuration(J)Landroid/animation/AnimatorSet;
.line 755
new-instance v1, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$6;
invoke-direct {v1, p0}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet$6;-><init>(Lim/tpelyyftgw/ui/components/EmbedBottomSheet;)V
invoke-virtual {v7, v1}, Landroid/animation/AnimatorSet;->addListener(Landroid/animation/Animator$AnimatorListener;)V
.line 761
invoke-virtual {v7}, Landroid/animation/AnimatorSet;->start()V
.line 762
.end local v3 # "view":Landroid/view/View;
.end local v4 # "textureView":Landroid/view/TextureView;
.end local v6 # "textureImageView":Landroid/widget/ImageView;
.end local v7 # "animatorSet":Landroid/animation/AnimatorSet;
goto :goto_13a
.line 763
:cond_135
iget-object v2, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->containerView:Landroid/view/ViewGroup;
invoke-virtual {v2, v1}, Landroid/view/ViewGroup;->setTranslationY(F)V
.line 765
:goto_13a
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->dismissInternal()V
.line 766
return-void
.end method
.method public synthetic lambda$new$5$EmbedBottomSheet(Landroid/view/View;)V
.registers 5
.param p1, "v" # Landroid/view/View;
.line 770
:try_start_0
sget-object v0, Lim/tpelyyftgw/messenger/ApplicationLoader;->applicationContext:Landroid/content/Context;
const-string v1, "clipboard"
invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/content/ClipboardManager;
.line 771
.local v0, "clipboard":Landroid/content/ClipboardManager;
const-string v1, "label"
iget-object v2, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->openUrl:Ljava/lang/String;
invoke-static {v1, v2}, Landroid/content/ClipData;->newPlainText(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Landroid/content/ClipData;
move-result-object v1
.line 772
.local v1, "clip":Landroid/content/ClipData;
invoke-virtual {v0, v1}, Landroid/content/ClipboardManager;->setPrimaryClip(Landroid/content/ClipData;)V
:try_end_15
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_15} :catch_16
.line 775
.end local v0 # "clipboard":Landroid/content/ClipboardManager;
.end local v1 # "clip":Landroid/content/ClipData;
goto :goto_1a
.line 773
:catch_16
move-exception v0
.line 774
.local v0, "e":Ljava/lang/Exception;
invoke-static {v0}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V
.line 776
.end local v0 # "e":Ljava/lang/Exception;
:goto_1a
const v0, 0x7f0f0815
invoke-static {v0}, Lim/tpelyyftgw/ui/components/toast/ToastUtils;->show(I)V
.line 777
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->dismiss()V
.line 778
return-void
.end method
.method public synthetic lambda$new$6$EmbedBottomSheet(Landroid/view/View;)V
.registers 4
.param p1, "v" # Landroid/view/View;
.line 813
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->parentActivity:Landroid/app/Activity;
iget-object v1, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->openUrl:Ljava/lang/String;
invoke-static {v0, v1}, Lim/tpelyyftgw/messenger/browser/Browser;->openUrl(Landroid/content/Context;Ljava/lang/String;)V
.line 814
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->dismiss()V
.line 815
return-void
.end method
.method public onConfigurationChanged(Landroid/content/res/Configuration;)V
.registers 4
.param p1, "newConfig" # Landroid/content/res/Configuration;
.line 976
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->videoView:Lim/tpelyyftgw/ui/components/WebPlayerView;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->getVisibility()I
move-result v0
if-nez v0, :cond_38
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->videoView:Lim/tpelyyftgw/ui/components/WebPlayerView;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->isInitied()Z
move-result v0
if-eqz v0, :cond_38
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->videoView:Lim/tpelyyftgw/ui/components/WebPlayerView;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->isInline()Z
move-result v0
if-nez v0, :cond_38
.line 977
iget v0, p1, Landroid/content/res/Configuration;->orientation:I
const/4 v1, 0x2
if-ne v0, v1, :cond_2b
.line 978
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->videoView:Lim/tpelyyftgw/ui/components/WebPlayerView;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->isInFullscreen()Z
move-result v0
if-nez v0, :cond_38
.line 979
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->videoView:Lim/tpelyyftgw/ui/components/WebPlayerView;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->enterFullscreen()V
goto :goto_38
.line 982
:cond_2b
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->videoView:Lim/tpelyyftgw/ui/components/WebPlayerView;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->isInFullscreen()Z
move-result v0
if-eqz v0, :cond_38
.line 983
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->videoView:Lim/tpelyyftgw/ui/components/WebPlayerView;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->exitFullscreen()V
.line 987
:cond_38
:goto_38
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->pipVideoView:Lim/tpelyyftgw/ui/components/PipVideoView;
if-eqz v0, :cond_3f
.line 988
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/PipVideoView;->onConfigurationChanged()V
.line 990
:cond_3f
return-void
.end method
.method public onContainerDraw(Landroid/graphics/Canvas;)V
.registers 3
.param p1, "canvas" # Landroid/graphics/Canvas;
.line 1098
iget v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->waitingForDraw:I
if-eqz v0, :cond_1d
.line 1099
add-int/lit8 v0, v0, -0x1
iput v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->waitingForDraw:I
.line 1100
if-nez v0, :cond_18
.line 1101
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->videoView:Lim/tpelyyftgw/ui/components/WebPlayerView;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->updateTextureImageView()V
.line 1102
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->pipVideoView:Lim/tpelyyftgw/ui/components/PipVideoView;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/PipVideoView;->close()V
.line 1103
const/4 v0, 0x0
iput-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->pipVideoView:Lim/tpelyyftgw/ui/components/PipVideoView;
goto :goto_1d
.line 1105
:cond_18
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->container:Lim/tpelyyftgw/ui/actionbar/BottomSheet$ContainerView;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/actionbar/BottomSheet$ContainerView;->invalidate()V
.line 1108
:cond_1d
:goto_1d
return-void
.end method
.method protected onContainerTranslationYChanged(F)V
.registers 2
.param p1, "translationY" # F
.line 1069
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->updateTextureViewPosition()V
.line 1070
return-void
.end method
.method protected onCustomLayout(Landroid/view/View;IIII)Z
.registers 7
.param p1, "view" # Landroid/view/View;
.param p2, "left" # I
.param p3, "top" # I
.param p4, "right" # I
.param p5, "bottom" # I
.line 1084
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->videoView:Lim/tpelyyftgw/ui/components/WebPlayerView;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->getControlsView()Landroid/view/View;
move-result-object v0
if-ne p1, v0, :cond_b
.line 1085
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->updateTextureViewPosition()V
.line 1087
:cond_b
const/4 v0, 0x0
return v0
.end method
.method protected onCustomMeasure(Landroid/view/View;II)Z
.registers 8
.param p1, "view" # Landroid/view/View;
.param p2, "width" # I
.param p3, "height" # I
.line 1074
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->videoView:Lim/tpelyyftgw/ui/components/WebPlayerView;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->getControlsView()Landroid/view/View;
move-result-object v0
const/4 v1, 0x0
if-ne p1, v0, :cond_32
.line 1075
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v0
.line 1076
.local v0, "layoutParams":Landroid/view/ViewGroup$LayoutParams;
iget-object v2, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->videoView:Lim/tpelyyftgw/ui/components/WebPlayerView;
invoke-virtual {v2}, Lim/tpelyyftgw/ui/components/WebPlayerView;->getMeasuredWidth()I
move-result v2
iput v2, v0, Landroid/view/ViewGroup$LayoutParams;->width:I
.line 1077
iget-object v2, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->videoView:Lim/tpelyyftgw/ui/components/WebPlayerView;
invoke-virtual {v2}, Lim/tpelyyftgw/ui/components/WebPlayerView;->getAspectRatioView()Landroid/view/View;
move-result-object v2
invoke-virtual {v2}, Landroid/view/View;->getMeasuredHeight()I
move-result v2
iget-object v3, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->videoView:Lim/tpelyyftgw/ui/components/WebPlayerView;
invoke-virtual {v3}, Lim/tpelyyftgw/ui/components/WebPlayerView;->isInFullscreen()Z
move-result v3
if-eqz v3, :cond_29
const/4 v3, 0x0
goto :goto_2f
:cond_29
const/high16 v3, 0x41200000 # 10.0f
invoke-static {v3}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v3
:goto_2f
add-int/2addr v2, v3
iput v2, v0, Landroid/view/ViewGroup$LayoutParams;->height:I
.line 1079
.end local v0 # "layoutParams":Landroid/view/ViewGroup$LayoutParams;
:cond_32
return v1
.end method
.method public pause()V
.registers 2
.line 1091
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->videoView:Lim/tpelyyftgw/ui/components/WebPlayerView;
if-eqz v0, :cond_f
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->isInitied()Z
move-result v0
if-eqz v0, :cond_f
.line 1092
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->videoView:Lim/tpelyyftgw/ui/components/WebPlayerView;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->pause()V
.line 1094
:cond_f
return-void
.end method
.method public updateTextureViewPosition()V
.registers 7
.line 1040
iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->videoView:Lim/tpelyyftgw/ui/components/WebPlayerView;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->getAspectRatioView()Landroid/view/View;
move-result-object v0
.line 1041
.local v0, "view":Landroid/view/View;
iget-object v1, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->position:[I
invoke-virtual {v0, v1}, Landroid/view/View;->getLocationInWindow([I)V
.line 1042
iget-object v1, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->position:[I
const/4 v2, 0x0
aget v3, v1, v2
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->getLeftInset()I
move-result v4
sub-int/2addr v3, v4
aput v3, v1, v2
.line 1044
iget-object v1, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->videoView:Lim/tpelyyftgw/ui/components/WebPlayerView;
invoke-virtual {v1}, Lim/tpelyyftgw/ui/components/WebPlayerView;->isInline()Z
move-result v1
const/4 v3, 0x1
if-nez v1, :cond_52
iget-boolean v1, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->animationInProgress:Z
if-nez v1, :cond_52
.line 1045
iget-object v1, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->videoView:Lim/tpelyyftgw/ui/components/WebPlayerView;
invoke-virtual {v1}, Lim/tpelyyftgw/ui/components/WebPlayerView;->getTextureView()Landroid/view/TextureView;
move-result-object v1
.line 1046
.local v1, "textureView":Landroid/view/TextureView;
iget-object v4, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->position:[I
aget v4, v4, v2
int-to-float v4, v4
invoke-virtual {v1, v4}, Landroid/view/TextureView;->setTranslationX(F)V
.line 1047
iget-object v4, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->position:[I
aget v4, v4, v3
int-to-float v4, v4
invoke-virtual {v1, v4}, Landroid/view/TextureView;->setTranslationY(F)V
.line 1048
iget-object v4, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->videoView:Lim/tpelyyftgw/ui/components/WebPlayerView;
invoke-virtual {v4}, Lim/tpelyyftgw/ui/components/WebPlayerView;->getTextureImageView()Landroid/widget/ImageView;
move-result-object v4
.line 1049
.local v4, "textureImageView":Landroid/view/View;
if-eqz v4, :cond_52
.line 1050
iget-object v5, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->position:[I
aget v2, v5, v2
int-to-float v2, v2
invoke-virtual {v4, v2}, Landroid/view/View;->setTranslationX(F)V
.line 1051
iget-object v2, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->position:[I
aget v2, v2, v3
int-to-float v2, v2
invoke-virtual {v4, v2}, Landroid/view/View;->setTranslationY(F)V
.line 1054
.end local v1 # "textureView":Landroid/view/TextureView;
.end local v4 # "textureImageView":Landroid/view/View;
:cond_52
iget-object v1, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->videoView:Lim/tpelyyftgw/ui/components/WebPlayerView;
invoke-virtual {v1}, Lim/tpelyyftgw/ui/components/WebPlayerView;->getControlsView()Landroid/view/View;
move-result-object v1
.line 1055
.local v1, "controlsView":Landroid/view/View;
invoke-virtual {v1}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
move-result-object v2
iget-object v4, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->container:Lim/tpelyyftgw/ui/actionbar/BottomSheet$ContainerView;
if-ne v2, v4, :cond_69
.line 1056
iget-object v2, p0, Lim/tpelyyftgw/ui/components/EmbedBottomSheet;->position:[I
aget v2, v2, v3
int-to-float v2, v2
invoke-virtual {v1, v2}, Landroid/view/View;->setTranslationY(F)V
goto :goto_6d
.line 1058
:cond_69
const/4 v2, 0x0
invoke-virtual {v1, v2}, Landroid/view/View;->setTranslationY(F)V
.line 1060
:goto_6d
return-void
.end method