ChatActivityEnterView$7.smali

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

# interfaces
.implements Ljava/lang/Runnable;


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

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


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


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

    return-void
.end method

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

    .line 479
    iput-object p1, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$7;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;

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

    return-void
.end method


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

    .line 482
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$7;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$1500(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;)Lim/tpelyyftgw/ui/components/ChatActivityEnterView$ChatActivityEnterViewDelegate;

    move-result-object v0

    if-eqz v0, :cond_13f

    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$7;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$1600(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;)Landroid/app/Activity;

    move-result-object v0

    if-nez v0, :cond_12

    goto/16 :goto_13f

    .line 485
    :cond_12
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$7;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$1500(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;)Lim/tpelyyftgw/ui/components/ChatActivityEnterView$ChatActivityEnterViewDelegate;

    move-result-object v0

    invoke-interface {v0}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$ChatActivityEnterViewDelegate;->onPreAudioVideoRecord()V

    .line 486
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$7;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;

    const/4 v1, 0x1

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

    .line 487
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$7;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;

    const/4 v2, 0x0

    invoke-static {v0, v2}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$1802(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;Z)Z

    .line 488
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$7;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$1900(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;)Lim/tpelyyftgw/ui/components/ChatActivityEnterView$RecordCircle;

    move-result-object v0

    const v3, 0x461c4000    # 10000.0f

    invoke-virtual {v0, v3}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$RecordCircle;->setLockTranslation(F)I

    .line 489
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$7;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$2000(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;)Landroid/widget/TextView;

    move-result-object v0

    const/4 v3, 0x0

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setAlpha(F)V

    .line 490
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$7;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$2100(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;)Landroid/widget/LinearLayout;

    move-result-object v0

    const/high16 v4, 0x3f800000    # 1.0f

    invoke-virtual {v0, v4}, Landroid/widget/LinearLayout;->setAlpha(F)V

    .line 491
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$7;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$2100(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->setTranslationY(F)V

    .line 492
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$7;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;

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

    move-result-object v0

    const/4 v3, 0x3

    const/16 v4, 0x17

    const-string v5, "android.permission.RECORD_AUDIO"

    if-eqz v0, :cond_d7

    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$7;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;

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

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/ImageView;->getTag()Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_d7

    .line 493
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    if-lt v0, v4, :cond_b5

    .line 494
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$7;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$1600(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;)Landroid/app/Activity;

    move-result-object v0

    invoke-virtual {v0, v5}, Landroid/app/Activity;->checkSelfPermission(Ljava/lang/String;)I

    move-result v0

    if-nez v0, :cond_7c

    const/4 v0, 0x1

    goto :goto_7d

    :cond_7c
    const/4 v0, 0x0

    .line 495
    .local v0, "hasAudio":Z
    :goto_7d
    iget-object v4, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$7;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;

    invoke-static {v4}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$1600(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;)Landroid/app/Activity;

    move-result-object v4

    const-string v6, "android.permission.CAMERA"

    invoke-virtual {v4, v6}, Landroid/app/Activity;->checkSelfPermission(Ljava/lang/String;)I

    move-result v4

    if-nez v4, :cond_8d

    const/4 v4, 0x1

    goto :goto_8e

    :cond_8d
    const/4 v4, 0x0

    .line 496
    .local v4, "hasVideo":Z
    :goto_8e
    if-eqz v0, :cond_92

    if-nez v4, :cond_b5

    .line 497
    :cond_92
    if-nez v0, :cond_98

    if-nez v4, :cond_98

    const/4 v7, 0x2

    goto :goto_99

    :cond_98
    const/4 v7, 0x1

    :goto_99
    new-array v7, v7, [Ljava/lang/String;

    .line 498
    .local v7, "permissions":[Ljava/lang/String;
    if-nez v0, :cond_a4

    if-nez v4, :cond_a4

    .line 499
    aput-object v5, v7, v2

    .line 500
    aput-object v6, v7, v1

    goto :goto_ab

    .line 501
    :cond_a4
    if-nez v0, :cond_a9

    .line 502
    aput-object v5, v7, v2

    goto :goto_ab

    .line 504
    :cond_a9
    aput-object v6, v7, v2

    .line 506
    :goto_ab
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$7;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;

    invoke-static {v1}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$1600(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;)Landroid/app/Activity;

    move-result-object v1

    invoke-virtual {v1, v7, v3}, Landroid/app/Activity;->requestPermissions([Ljava/lang/String;I)V

    .line 507
    return-void

    .line 510
    .end local v0    # "hasAudio":Z
    .end local v4    # "hasVideo":Z
    .end local v7    # "permissions":[Ljava/lang/String;
    :cond_b5
    invoke-static {}, Lim/tpelyyftgw/messenger/camera/CameraController;->getInstance()Lim/tpelyyftgw/messenger/camera/CameraController;

    move-result-object v0

    invoke-virtual {v0}, Lim/tpelyyftgw/messenger/camera/CameraController;->isCameraInitied()Z

    move-result v0

    if-nez v0, :cond_cd

    .line 511
    invoke-static {}, Lim/tpelyyftgw/messenger/camera/CameraController;->getInstance()Lim/tpelyyftgw/messenger/camera/CameraController;

    move-result-object v0

    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$7;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;

    invoke-static {v1}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$2300(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;)Ljava/lang/Runnable;

    move-result-object v1

    invoke-virtual {v0, v1}, Lim/tpelyyftgw/messenger/camera/CameraController;->initCamera(Ljava/lang/Runnable;)V

    goto :goto_13e

    .line 513
    :cond_cd
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$7;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$2300(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;)Ljava/lang/Runnable;

    move-result-object v0

    invoke-interface {v0}, Ljava/lang/Runnable;->run()V

    goto :goto_13e

    .line 516
    :cond_d7
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$7;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$2400(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;)Lim/tpelyyftgw/ui/ChatActivity;

    move-result-object v0

    if-eqz v0, :cond_fd

    .line 517
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    if-lt v0, v4, :cond_fd

    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$7;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$1600(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;)Landroid/app/Activity;

    move-result-object v0

    invoke-virtual {v0, v5}, Landroid/app/Activity;->checkSelfPermission(Ljava/lang/String;)I

    move-result v0

    if-eqz v0, :cond_fd

    .line 518
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$7;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$1600(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;)Landroid/app/Activity;

    move-result-object v0

    filled-new-array {v5}, [Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1, v3}, Landroid/app/Activity;->requestPermissions([Ljava/lang/String;I)V

    .line 519
    return-void

    .line 522
    :cond_fd
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$7;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$1500(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;)Lim/tpelyyftgw/ui/components/ChatActivityEnterView$ChatActivityEnterViewDelegate;

    move-result-object v0

    invoke-interface {v0, v1}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$ChatActivityEnterViewDelegate;->needStartRecordAudio(I)V

    .line 523
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$7;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;

    const/high16 v2, -0x40800000    # -1.0f

    invoke-static {v0, v2}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$2502(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;F)F

    .line 524
    invoke-static {}, Lim/tpelyyftgw/messenger/MediaController;->getInstance()Lim/tpelyyftgw/messenger/MediaController;

    move-result-object v3

    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$7;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$2600(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;)I

    move-result v4

    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$7;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$2700(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;)J

    move-result-wide v5

    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$7;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$2800(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;)Lim/tpelyyftgw/messenger/MessageObject;

    move-result-object v7

    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$7;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatActivityEnterView;->access$2900(Lim/tpelyyftgw/ui/components/ChatActivityEnterView;)I

    move-result v8

    invoke-virtual/range {v3 .. v8}, Lim/tpelyyftgw/messenger/MediaController;->startRecording(IJLim/tpelyyftgw/messenger/MessageObject;I)V

    .line 525
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$7;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;

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

    .line 526
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatActivityEnterView$7;->this$0:Lim/tpelyyftgw/ui/components/ChatActivityEnterView;

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

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/FrameLayout;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    invoke-interface {v0, v1}, Landroid/view/ViewParent;->requestDisallowInterceptTouchEvent(Z)V

    .line 528
    :goto_13e
    return-void

    .line 483
    :cond_13f
    :goto_13f
    return-void
.end method