WebPlayerView$3.smali

.class Lim/tpelyyftgw/ui/components/WebPlayerView$3;
.super Ljava/lang/Object;
.source "WebPlayerView.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lim/tpelyyftgw/ui/components/WebPlayerView;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lim/tpelyyftgw/ui/components/WebPlayerView;


# direct methods
.method static constructor <clinit>()V
    .registers 1

    return-void
.end method

.method constructor <init>(Lim/tpelyyftgw/ui/components/WebPlayerView;)V
    .registers 2
    .param p1, "this$0"    # Lim/tpelyyftgw/ui/components/WebPlayerView;

    .line 1187
    iput-object p1, p0, Lim/tpelyyftgw/ui/components/WebPlayerView$3;->this$0:Lim/tpelyyftgw/ui/components/WebPlayerView;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .registers 10

    .line 1190
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView$3;->this$0:Lim/tpelyyftgw/ui/components/WebPlayerView;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lim/tpelyyftgw/ui/components/WebPlayerView;->access$2702(Lim/tpelyyftgw/ui/components/WebPlayerView;Z)Z

    .line 1191
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView$3;->this$0:Lim/tpelyyftgw/ui/components/WebPlayerView;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->access$3200(Lim/tpelyyftgw/ui/components/WebPlayerView;)Landroid/graphics/Bitmap;

    move-result-object v0

    const/4 v2, 0x0

    if-eqz v0, :cond_1d

    .line 1192
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView$3;->this$0:Lim/tpelyyftgw/ui/components/WebPlayerView;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->access$3200(Lim/tpelyyftgw/ui/components/WebPlayerView;)Landroid/graphics/Bitmap;

    move-result-object v0

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->recycle()V

    .line 1193
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView$3;->this$0:Lim/tpelyyftgw/ui/components/WebPlayerView;

    invoke-static {v0, v2}, Lim/tpelyyftgw/ui/components/WebPlayerView;->access$3202(Lim/tpelyyftgw/ui/components/WebPlayerView;Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;

    .line 1196
    :cond_1d
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView$3;->this$0:Lim/tpelyyftgw/ui/components/WebPlayerView;

    const/4 v3, 0x1

    invoke-static {v0, v3}, Lim/tpelyyftgw/ui/components/WebPlayerView;->access$2602(Lim/tpelyyftgw/ui/components/WebPlayerView;Z)Z

    .line 1197
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView$3;->this$0:Lim/tpelyyftgw/ui/components/WebPlayerView;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->access$3100(Lim/tpelyyftgw/ui/components/WebPlayerView;)Landroid/widget/ImageView;

    move-result-object v0

    if-eqz v0, :cond_9e

    .line 1199
    :try_start_2b
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView$3;->this$0:Lim/tpelyyftgw/ui/components/WebPlayerView;

    iget-object v4, p0, Lim/tpelyyftgw/ui/components/WebPlayerView$3;->this$0:Lim/tpelyyftgw/ui/components/WebPlayerView;

    invoke-static {v4}, Lim/tpelyyftgw/ui/components/WebPlayerView;->access$2900(Lim/tpelyyftgw/ui/components/WebPlayerView;)Landroid/view/TextureView;

    move-result-object v4

    invoke-virtual {v4}, Landroid/view/TextureView;->getWidth()I

    move-result v4

    iget-object v5, p0, Lim/tpelyyftgw/ui/components/WebPlayerView$3;->this$0:Lim/tpelyyftgw/ui/components/WebPlayerView;

    invoke-static {v5}, Lim/tpelyyftgw/ui/components/WebPlayerView;->access$2900(Lim/tpelyyftgw/ui/components/WebPlayerView;)Landroid/view/TextureView;

    move-result-object v5

    invoke-virtual {v5}, Landroid/view/TextureView;->getHeight()I

    move-result v5

    sget-object v6, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-static {v4, v5, v6}, Lim/tpelyyftgw/messenger/Bitmaps;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v4

    invoke-static {v0, v4}, Lim/tpelyyftgw/ui/components/WebPlayerView;->access$3202(Lim/tpelyyftgw/ui/components/WebPlayerView;Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;

    .line 1200
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView$3;->this$0:Lim/tpelyyftgw/ui/components/WebPlayerView;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->access$2900(Lim/tpelyyftgw/ui/components/WebPlayerView;)Landroid/view/TextureView;

    move-result-object v0

    iget-object v4, p0, Lim/tpelyyftgw/ui/components/WebPlayerView$3;->this$0:Lim/tpelyyftgw/ui/components/WebPlayerView;

    invoke-static {v4}, Lim/tpelyyftgw/ui/components/WebPlayerView;->access$3200(Lim/tpelyyftgw/ui/components/WebPlayerView;)Landroid/graphics/Bitmap;

    move-result-object v4

    invoke-virtual {v0, v4}, Landroid/view/TextureView;->getBitmap(Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;
    :try_end_59
    .catchall {:try_start_2b .. :try_end_59} :catchall_5a

    .line 1207
    goto :goto_74

    .line 1201
    :catchall_5a
    move-exception v0

    .line 1202
    .local v0, "e":Ljava/lang/Throwable;
    iget-object v4, p0, Lim/tpelyyftgw/ui/components/WebPlayerView$3;->this$0:Lim/tpelyyftgw/ui/components/WebPlayerView;

    invoke-static {v4}, Lim/tpelyyftgw/ui/components/WebPlayerView;->access$3200(Lim/tpelyyftgw/ui/components/WebPlayerView;)Landroid/graphics/Bitmap;

    move-result-object v4

    if-eqz v4, :cond_71

    .line 1203
    iget-object v4, p0, Lim/tpelyyftgw/ui/components/WebPlayerView$3;->this$0:Lim/tpelyyftgw/ui/components/WebPlayerView;

    invoke-static {v4}, Lim/tpelyyftgw/ui/components/WebPlayerView;->access$3200(Lim/tpelyyftgw/ui/components/WebPlayerView;)Landroid/graphics/Bitmap;

    move-result-object v4

    invoke-virtual {v4}, Landroid/graphics/Bitmap;->recycle()V

    .line 1204
    iget-object v4, p0, Lim/tpelyyftgw/ui/components/WebPlayerView$3;->this$0:Lim/tpelyyftgw/ui/components/WebPlayerView;

    invoke-static {v4, v2}, Lim/tpelyyftgw/ui/components/WebPlayerView;->access$3202(Lim/tpelyyftgw/ui/components/WebPlayerView;Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;

    .line 1206
    :cond_71
    invoke-static {v0}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V

    .line 1209
    .end local v0    # "e":Ljava/lang/Throwable;
    :goto_74
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView$3;->this$0:Lim/tpelyyftgw/ui/components/WebPlayerView;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->access$3200(Lim/tpelyyftgw/ui/components/WebPlayerView;)Landroid/graphics/Bitmap;

    move-result-object v0

    if-eqz v0, :cond_95

    .line 1210
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView$3;->this$0:Lim/tpelyyftgw/ui/components/WebPlayerView;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->access$3100(Lim/tpelyyftgw/ui/components/WebPlayerView;)Landroid/widget/ImageView;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 1211
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView$3;->this$0:Lim/tpelyyftgw/ui/components/WebPlayerView;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->access$3100(Lim/tpelyyftgw/ui/components/WebPlayerView;)Landroid/widget/ImageView;

    move-result-object v0

    iget-object v2, p0, Lim/tpelyyftgw/ui/components/WebPlayerView$3;->this$0:Lim/tpelyyftgw/ui/components/WebPlayerView;

    invoke-static {v2}, Lim/tpelyyftgw/ui/components/WebPlayerView;->access$3200(Lim/tpelyyftgw/ui/components/WebPlayerView;)Landroid/graphics/Bitmap;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    goto :goto_9e

    .line 1213
    :cond_95
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView$3;->this$0:Lim/tpelyyftgw/ui/components/WebPlayerView;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->access$3100(Lim/tpelyyftgw/ui/components/WebPlayerView;)Landroid/widget/ImageView;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 1217
    :cond_9e
    :goto_9e
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView$3;->this$0:Lim/tpelyyftgw/ui/components/WebPlayerView;

    invoke-static {v0, v3}, Lim/tpelyyftgw/ui/components/WebPlayerView;->access$3402(Lim/tpelyyftgw/ui/components/WebPlayerView;Z)Z

    .line 1218
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView$3;->this$0:Lim/tpelyyftgw/ui/components/WebPlayerView;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->access$3500(Lim/tpelyyftgw/ui/components/WebPlayerView;)V

    .line 1219
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView$3;->this$0:Lim/tpelyyftgw/ui/components/WebPlayerView;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->access$3600(Lim/tpelyyftgw/ui/components/WebPlayerView;)V

    .line 1220
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView$3;->this$0:Lim/tpelyyftgw/ui/components/WebPlayerView;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->access$3700(Lim/tpelyyftgw/ui/components/WebPlayerView;)V

    .line 1221
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView$3;->this$0:Lim/tpelyyftgw/ui/components/WebPlayerView;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->access$3800(Lim/tpelyyftgw/ui/components/WebPlayerView;)V

    .line 1223
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/WebPlayerView$3;->this$0:Lim/tpelyyftgw/ui/components/WebPlayerView;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView;->access$100(Lim/tpelyyftgw/ui/components/WebPlayerView;)Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    move-result-object v0

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    .line 1224
    .local v0, "viewGroup":Landroid/view/ViewGroup;
    if-eqz v0, :cond_ce

    .line 1225
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/WebPlayerView$3;->this$0:Lim/tpelyyftgw/ui/components/WebPlayerView;

    invoke-static {v2}, Lim/tpelyyftgw/ui/components/WebPlayerView;->access$100(Lim/tpelyyftgw/ui/components/WebPlayerView;)Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    .line 1227
    :cond_ce
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/WebPlayerView$3;->this$0:Lim/tpelyyftgw/ui/components/WebPlayerView;

    invoke-static {v2}, Lim/tpelyyftgw/ui/components/WebPlayerView;->access$3300(Lim/tpelyyftgw/ui/components/WebPlayerView;)Lim/tpelyyftgw/ui/components/WebPlayerView$WebPlayerViewDelegate;

    move-result-object v3

    iget-object v4, p0, Lim/tpelyyftgw/ui/components/WebPlayerView$3;->this$0:Lim/tpelyyftgw/ui/components/WebPlayerView;

    invoke-static {v4}, Lim/tpelyyftgw/ui/components/WebPlayerView;->access$100(Lim/tpelyyftgw/ui/components/WebPlayerView;)Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    move-result-object v4

    iget-object v5, p0, Lim/tpelyyftgw/ui/components/WebPlayerView$3;->this$0:Lim/tpelyyftgw/ui/components/WebPlayerView;

    invoke-static {v5}, Lim/tpelyyftgw/ui/components/WebPlayerView;->access$3400(Lim/tpelyyftgw/ui/components/WebPlayerView;)Z

    move-result v5

    iget-object v6, p0, Lim/tpelyyftgw/ui/components/WebPlayerView$3;->this$0:Lim/tpelyyftgw/ui/components/WebPlayerView;

    invoke-static {v6}, Lim/tpelyyftgw/ui/components/WebPlayerView;->access$3900(Lim/tpelyyftgw/ui/components/WebPlayerView;)Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;

    move-result-object v6

    invoke-virtual {v6}, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->getAspectRatio()F

    move-result v6

    iget-object v7, p0, Lim/tpelyyftgw/ui/components/WebPlayerView$3;->this$0:Lim/tpelyyftgw/ui/components/WebPlayerView;

    invoke-static {v7}, Lim/tpelyyftgw/ui/components/WebPlayerView;->access$3900(Lim/tpelyyftgw/ui/components/WebPlayerView;)Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;

    move-result-object v7

    invoke-virtual {v7}, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->getVideoRotation()I

    move-result v7

    iget-object v8, p0, Lim/tpelyyftgw/ui/components/WebPlayerView$3;->this$0:Lim/tpelyyftgw/ui/components/WebPlayerView;

    invoke-static {v8}, Lim/tpelyyftgw/ui/components/WebPlayerView;->access$4000(Lim/tpelyyftgw/ui/components/WebPlayerView;)Z

    move-result v8

    invoke-interface/range {v3 .. v8}, Lim/tpelyyftgw/ui/components/WebPlayerView$WebPlayerViewDelegate;->onSwitchInlineMode(Landroid/view/View;ZFIZ)Landroid/view/TextureView;

    move-result-object v3

    invoke-static {v2, v3}, Lim/tpelyyftgw/ui/components/WebPlayerView;->access$3002(Lim/tpelyyftgw/ui/components/WebPlayerView;Landroid/view/TextureView;)Landroid/view/TextureView;

    .line 1228
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/WebPlayerView$3;->this$0:Lim/tpelyyftgw/ui/components/WebPlayerView;

    invoke-static {v2}, Lim/tpelyyftgw/ui/components/WebPlayerView;->access$3000(Lim/tpelyyftgw/ui/components/WebPlayerView;)Landroid/view/TextureView;

    move-result-object v2

    const/4 v3, 0x4

    invoke-virtual {v2, v3}, Landroid/view/TextureView;->setVisibility(I)V

    .line 1229
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/WebPlayerView$3;->this$0:Lim/tpelyyftgw/ui/components/WebPlayerView;

    invoke-static {v2}, Lim/tpelyyftgw/ui/components/WebPlayerView;->access$2900(Lim/tpelyyftgw/ui/components/WebPlayerView;)Landroid/view/TextureView;

    move-result-object v2

    invoke-virtual {v2}, Landroid/view/TextureView;->getParent()Landroid/view/ViewParent;

    move-result-object v2

    check-cast v2, Landroid/view/ViewGroup;

    .line 1230
    .local v2, "parent":Landroid/view/ViewGroup;
    if-eqz v2, :cond_122

    .line 1231
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/WebPlayerView$3;->this$0:Lim/tpelyyftgw/ui/components/WebPlayerView;

    invoke-static {v3}, Lim/tpelyyftgw/ui/components/WebPlayerView;->access$2900(Lim/tpelyyftgw/ui/components/WebPlayerView;)Landroid/view/TextureView;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    .line 1233
    :cond_122
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/WebPlayerView$3;->this$0:Lim/tpelyyftgw/ui/components/WebPlayerView;

    invoke-static {v3}, Lim/tpelyyftgw/ui/components/WebPlayerView;->access$100(Lim/tpelyyftgw/ui/components/WebPlayerView;)Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;

    move-result-object v3

    invoke-virtual {v3, v1, v1}, Lim/tpelyyftgw/ui/components/WebPlayerView$ControlsView;->show(ZZ)V

    .line 1234
    return-void
.end method