ChatAttachAlert$17.smali

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

# interfaces
.implements Lim/tpelyyftgw/ui/components/ShutterButton$ShutterButtonDelegate;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lim/tpelyyftgw/ui/components/ChatAttachAlert;-><init>(Landroid/content/Context;Lim/tpelyyftgw/ui/actionbar/BaseFragment;)V
.end annotation

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


# instance fields
.field private outputFile:Ljava/io/File;

.field final synthetic this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

.field final synthetic val$parentFragment:Lim/tpelyyftgw/ui/actionbar/BaseFragment;

.field private zoomingWas:Z


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

    return-void
.end method

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

    .line 1590
    iput-object p1, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    iput-object p2, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->val$parentFragment:Lim/tpelyyftgw/ui/actionbar/BaseFragment;

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

    return-void
.end method


# virtual methods
.method public synthetic lambda$shutterLongPressed$0$ChatAttachAlert$17()V
    .registers 5

    .line 1617
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->videoRecordRunnable:Ljava/lang/Runnable;
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$8600(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Ljava/lang/Runnable;

    move-result-object v0

    if-nez v0, :cond_9

    .line 1618
    return-void

    .line 1620
    :cond_9
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # operator++ for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->videoRecordTime:I
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$8508(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)I

    .line 1621
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->recordTime:Landroid/widget/TextView;
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$8400(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Landroid/widget/TextView;

    move-result-object v0

    const/4 v1, 0x2

    new-array v1, v1, [Ljava/lang/Object;

    const/4 v2, 0x0

    iget-object v3, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->videoRecordTime:I
    invoke-static {v3}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$8500(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)I

    move-result v3

    div-int/lit8 v3, v3, 0x3c

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    aput-object v3, v1, v2

    const/4 v2, 0x1

    iget-object v3, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->videoRecordTime:I
    invoke-static {v3}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$8500(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)I

    move-result v3

    rem-int/lit8 v3, v3, 0x3c

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    aput-object v3, v1, v2

    const-string v2, "%02d:%02d"

    invoke-static {v2, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1622
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->videoRecordRunnable:Ljava/lang/Runnable;
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$8600(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Ljava/lang/Runnable;

    move-result-object v0

    const-wide/16 v1, 0x3e8

    invoke-static {v0, v1, v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->runOnUIThread(Ljava/lang/Runnable;J)V

    .line 1623
    return-void
.end method

.method public synthetic lambda$shutterLongPressed$1$ChatAttachAlert$17(Ljava/lang/String;J)V
    .registers 14
    .param p1, "thumbPath"    # Ljava/lang/String;
    .param p2, "duration"    # J

    .line 1626
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->outputFile:Ljava/io/File;

    if-eqz v0, :cond_31

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

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->baseFragment:Lim/tpelyyftgw/ui/actionbar/BaseFragment;
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$600(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Lim/tpelyyftgw/ui/actionbar/BaseFragment;

    move-result-object v0

    if-nez v0, :cond_d

    goto :goto_31

    .line 1629
    :cond_d
    const/4 v0, 0x0

    # setter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->mediaFromExternalCamera:Z
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$9202(Z)Z

    .line 1630
    new-instance v9, Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;

    const/4 v2, 0x0

    # operator-- for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->lastImageId:I
    invoke-static {}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$9310()I

    move-result v3

    const-wide/16 v4, 0x0

    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->outputFile:Ljava/io/File;

    invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v6

    const/4 v7, 0x0

    const/4 v8, 0x1

    move-object v1, v9

    invoke-direct/range {v1 .. v8}, Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;-><init>(IIJLjava/lang/String;IZ)V

    .line 1631
    .local v1, "photoEntry":Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;
    long-to-int v2, p2

    iput v2, v1, Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;->duration:I

    .line 1632
    iput-object p1, v1, Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;->thumbPath:Ljava/lang/String;

    .line 1633
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # invokes: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->openPhotoViewer(Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;ZZ)V
    invoke-static {v2, v1, v0, v0}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$9400(Lim/tpelyyftgw/ui/components/ChatAttachAlert;Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;ZZ)V

    .line 1634
    return-void

    .line 1627
    .end local v1    # "photoEntry":Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;
    :cond_31
    :goto_31
    return-void
.end method

.method public synthetic lambda$shutterLongPressed$2$ChatAttachAlert$17()V
    .registers 4

    .line 1634
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->videoRecordRunnable:Ljava/lang/Runnable;
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$8600(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Ljava/lang/Runnable;

    move-result-object v0

    const-wide/16 v1, 0x3e8

    invoke-static {v0, v1, v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->runOnUIThread(Ljava/lang/Runnable;J)V

    return-void
.end method

.method public synthetic lambda$shutterReleased$3$ChatAttachAlert$17(Ljava/io/File;Z)V
    .registers 15
    .param p1, "cameraFile"    # Ljava/io/File;
    .param p2, "sameTakePictureOrientation"    # Z

    .line 1668
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    const/4 v1, 0x0

    # setter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->takingPhoto:Z
    invoke-static {v0, v1}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$8102(Lim/tpelyyftgw/ui/components/ChatAttachAlert;Z)Z

    .line 1669
    if-eqz p1, :cond_59

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

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->baseFragment:Lim/tpelyyftgw/ui/actionbar/BaseFragment;
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$600(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Lim/tpelyyftgw/ui/actionbar/BaseFragment;

    move-result-object v0

    if-nez v0, :cond_11

    goto :goto_59

    .line 1672
    :cond_11
    const/4 v0, 0x0

    .line 1674
    .local v0, "orientation":I
    const/4 v2, 0x1

    :try_start_13
    new-instance v3, Landroidx/exifinterface/media/ExifInterface;

    invoke-virtual {p1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Landroidx/exifinterface/media/ExifInterface;-><init>(Ljava/lang/String;)V

    .line 1675
    .local v3, "ei":Landroidx/exifinterface/media/ExifInterface;
    const-string v4, "Orientation"

    invoke-virtual {v3, v4, v2}, Landroidx/exifinterface/media/ExifInterface;->getAttributeInt(Ljava/lang/String;I)I

    move-result v4
    :try_end_22
    .catch Ljava/lang/Exception; {:try_start_13 .. :try_end_22} :catch_37

    .line 1676
    .local v4, "exif":I
    const/4 v5, 0x3

    if-eq v4, v5, :cond_33

    const/4 v5, 0x6

    if-eq v4, v5, :cond_30

    const/16 v5, 0x8

    if-eq v4, v5, :cond_2d

    goto :goto_36

    .line 1684
    :cond_2d
    const/16 v0, 0x10e

    goto :goto_36

    .line 1678
    :cond_30
    const/16 v0, 0x5a

    .line 1679
    goto :goto_36

    .line 1681
    :cond_33
    const/16 v0, 0xb4

    .line 1682
    nop

    .line 1689
    .end local v3    # "ei":Landroidx/exifinterface/media/ExifInterface;
    .end local v4    # "exif":I
    :goto_36
    goto :goto_3b

    .line 1687
    :catch_37
    move-exception v3

    .line 1688
    .local v3, "e":Ljava/lang/Exception;
    invoke-static {v3}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V

    .line 1690
    .end local v3    # "e":Ljava/lang/Exception;
    :goto_3b
    # setter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->mediaFromExternalCamera:Z
    invoke-static {v1}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$9202(Z)Z

    .line 1691
    new-instance v3, Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;

    const/4 v5, 0x0

    # operator-- for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->lastImageId:I
    invoke-static {}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$9310()I

    move-result v6

    const-wide/16 v7, 0x0

    invoke-virtual {p1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v9

    const/4 v11, 0x0

    move-object v4, v3

    move v10, v0

    invoke-direct/range {v4 .. v11}, Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;-><init>(IIJLjava/lang/String;IZ)V

    .line 1692
    .local v3, "photoEntry":Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;
    iput-boolean v2, v3, Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;->canDeleteAfter:Z

    .line 1693
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # invokes: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->openPhotoViewer(Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;ZZ)V
    invoke-static {v2, v3, p2, v1}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$9400(Lim/tpelyyftgw/ui/components/ChatAttachAlert;Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;ZZ)V

    .line 1694
    return-void

    .line 1670
    .end local v0    # "orientation":I
    .end local v3    # "photoEntry":Lim/tpelyyftgw/messenger/MediaController$PhotoEntry;
    :cond_59
    :goto_59
    return-void
.end method

.method public onTranslationChanged(FF)Z
    .registers 11
    .param p1, "x"    # F
    .param p2, "y"    # F

    .line 1699
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->container:Lim/tpelyyftgw/ui/actionbar/BottomSheet$ContainerView;
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$8800(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Lim/tpelyyftgw/ui/actionbar/BottomSheet$ContainerView;

    move-result-object v0

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/actionbar/BottomSheet$ContainerView;->getWidth()I

    move-result v0

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

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->container:Lim/tpelyyftgw/ui/actionbar/BottomSheet$ContainerView;
    invoke-static {v1}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$8900(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Lim/tpelyyftgw/ui/actionbar/BottomSheet$ContainerView;

    move-result-object v1

    invoke-virtual {v1}, Lim/tpelyyftgw/ui/actionbar/BottomSheet$ContainerView;->getHeight()I

    move-result v1

    const/4 v2, 0x0

    const/4 v3, 0x1

    if-ge v0, v1, :cond_1a

    const/4 v0, 0x1

    goto :goto_1b

    :cond_1a
    const/4 v0, 0x0

    .line 1700
    .local v0, "isPortrait":Z
    :goto_1b
    if-eqz v0, :cond_1f

    move v1, p1

    goto :goto_20

    :cond_1f
    move v1, p2

    .line 1701
    .local v1, "val1":F
    :goto_20
    if-eqz v0, :cond_24

    move v4, p2

    goto :goto_25

    :cond_24
    move v4, p1

    .line 1702
    .local v4, "val2":F
    :goto_25
    iget-boolean v5, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->zoomingWas:Z

    if-nez v5, :cond_43

    invoke-static {v1}, Ljava/lang/Math;->abs(F)F

    move-result v5

    invoke-static {v4}, Ljava/lang/Math;->abs(F)F

    move-result v6

    cmpl-float v5, v5, v6

    if-lez v5, :cond_43

    .line 1703
    iget-object v5, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->zoomControlView:Lim/tpelyyftgw/ui/components/ZoomControlView;
    invoke-static {v5}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$9000(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Lim/tpelyyftgw/ui/components/ZoomControlView;

    move-result-object v5

    invoke-virtual {v5}, Lim/tpelyyftgw/ui/components/ZoomControlView;->getTag()Ljava/lang/Object;

    move-result-object v5

    if-nez v5, :cond_42

    const/4 v2, 0x1

    :cond_42
    return v2

    .line 1705
    :cond_43
    const/4 v5, 0x0

    cmpg-float v6, v4, v5

    if-gez v6, :cond_62

    .line 1706
    iget-object v5, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # invokes: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->showZoomControls(ZZ)V
    invoke-static {v5, v3, v3}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$9100(Lim/tpelyyftgw/ui/components/ChatAttachAlert;ZZ)V

    .line 1707
    iget-object v5, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->zoomControlView:Lim/tpelyyftgw/ui/components/ZoomControlView;
    invoke-static {v5}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$9000(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Lim/tpelyyftgw/ui/components/ZoomControlView;

    move-result-object v5

    neg-float v6, v4

    const/high16 v7, 0x43480000    # 200.0f

    invoke-static {v7}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v7

    int-to-float v7, v7

    div-float/2addr v6, v7

    invoke-virtual {v5, v6, v3}, Lim/tpelyyftgw/ui/components/ZoomControlView;->setZoom(FZ)V

    .line 1708
    iput-boolean v3, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->zoomingWas:Z

    .line 1709
    return v2

    .line 1711
    :cond_62
    iget-boolean v6, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->zoomingWas:Z

    if-eqz v6, :cond_6f

    .line 1712
    iget-object v6, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->zoomControlView:Lim/tpelyyftgw/ui/components/ZoomControlView;
    invoke-static {v6}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$9000(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Lim/tpelyyftgw/ui/components/ZoomControlView;

    move-result-object v6

    invoke-virtual {v6, v5, v3}, Lim/tpelyyftgw/ui/components/ZoomControlView;->setZoom(FZ)V

    .line 1714
    :cond_6f
    cmpl-float v6, p1, v5

    if-nez v6, :cond_79

    cmpl-float v6, p2, v5

    if-nez v6, :cond_79

    .line 1715
    iput-boolean v2, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->zoomingWas:Z

    .line 1717
    :cond_79
    iget-boolean v6, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->zoomingWas:Z

    if-nez v6, :cond_86

    cmpl-float v6, p1, v5

    if-nez v6, :cond_85

    cmpl-float v5, p2, v5

    if-eqz v5, :cond_86

    :cond_85
    const/4 v2, 0x1

    :cond_86
    return v2
.end method

.method public shutterCancel()V
    .registers 4

    .line 1641
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->mediaCaptured:Z
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$8000(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Z

    move-result v0

    if-eqz v0, :cond_9

    .line 1642
    return-void

    .line 1644
    :cond_9
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->outputFile:Ljava/io/File;

    if-eqz v0, :cond_13

    .line 1645
    invoke-virtual {v0}, Ljava/io/File;->delete()Z

    .line 1646
    const/4 v0, 0x0

    iput-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->outputFile:Ljava/io/File;

    .line 1648
    :cond_13
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # invokes: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->resetRecordState()V
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$8700(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)V

    .line 1649
    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/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->cameraView:Lim/tpelyyftgw/messenger/camera/CameraView;
    invoke-static {v1}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$8200(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Lim/tpelyyftgw/messenger/camera/CameraView;

    move-result-object v1

    invoke-virtual {v1}, Lim/tpelyyftgw/messenger/camera/CameraView;->getCameraSession()Lim/tpelyyftgw/messenger/camera/CameraSession;

    move-result-object v1

    const/4 v2, 0x1

    invoke-virtual {v0, v1, v2}, Lim/tpelyyftgw/messenger/camera/CameraController;->stopVideoRecording(Lim/tpelyyftgw/messenger/camera/CameraSession;Z)V

    .line 1650
    return-void
.end method

.method public shutterLongPressed()Z
    .registers 7

    .line 1597
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->baseFragment:Lim/tpelyyftgw/ui/actionbar/BaseFragment;
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$600(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Lim/tpelyyftgw/ui/actionbar/BaseFragment;

    move-result-object v0

    instance-of v0, v0, Lim/tpelyyftgw/ui/ChatActivity;

    const/4 v1, 0x0

    .line 1614
    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    .line 1597
    if-eqz v0, :cond_116

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

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->mediaCaptured:Z
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$8000(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Z

    move-result v0

    if-nez v0, :cond_116

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

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->takingPhoto:Z
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$8100(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Z

    move-result v0

    if-nez v0, :cond_116

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

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->baseFragment:Lim/tpelyyftgw/ui/actionbar/BaseFragment;
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$600(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Lim/tpelyyftgw/ui/actionbar/BaseFragment;

    move-result-object v0

    if-eqz v0, :cond_116

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

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->baseFragment:Lim/tpelyyftgw/ui/actionbar/BaseFragment;
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$600(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Lim/tpelyyftgw/ui/actionbar/BaseFragment;

    move-result-object v0

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->getParentActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    if-eqz v0, :cond_116

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

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->cameraView:Lim/tpelyyftgw/messenger/camera/CameraView;
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$8200(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Lim/tpelyyftgw/messenger/camera/CameraView;

    move-result-object v0

    if-nez v0, :cond_3d

    goto/16 :goto_116

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

    const/16 v3, 0x17

    const/4 v4, 0x1

    if-lt v0, v3, :cond_6f

    .line 1601
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->baseFragment:Lim/tpelyyftgw/ui/actionbar/BaseFragment;
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$600(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Lim/tpelyyftgw/ui/actionbar/BaseFragment;

    move-result-object v0

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->getParentActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

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

    invoke-virtual {v0, v3}, Landroidx/fragment/app/FragmentActivity;->checkSelfPermission(Ljava/lang/String;)I

    move-result v0

    if-eqz v0, :cond_6f

    .line 1602
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # setter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->requestingPermissions:Z
    invoke-static {v0, v4}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$8302(Lim/tpelyyftgw/ui/components/ChatAttachAlert;Z)Z

    .line 1603
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->baseFragment:Lim/tpelyyftgw/ui/actionbar/BaseFragment;
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$600(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Lim/tpelyyftgw/ui/actionbar/BaseFragment;

    move-result-object v0

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->getParentActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

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

    move-result-object v2

    const/16 v3, 0x15

    invoke-virtual {v0, v2, v3}, Landroidx/fragment/app/FragmentActivity;->requestPermissions([Ljava/lang/String;I)V

    .line 1604
    return v1

    .line 1607
    :cond_6f
    const/4 v0, 0x0

    .local v0, "a":I
    :goto_70
    const/4 v3, 0x2

    const/4 v5, 0x0

    if-ge v0, v3, :cond_82

    .line 1608
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->flashModeButton:[Landroid/widget/ImageView;
    invoke-static {v3}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$7900(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)[Landroid/widget/ImageView;

    move-result-object v3

    aget-object v3, v3, v0

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

    .line 1607
    add-int/lit8 v0, v0, 0x1

    goto :goto_70

    .line 1610
    .end local v0    # "a":I
    :cond_82
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->switchCameraButton:Landroid/widget/ImageView;
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$7800(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Landroid/widget/ImageView;

    move-result-object v0

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

    .line 1611
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->tooltipTextView:Landroid/widget/TextView;
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$7600(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Landroid/widget/TextView;

    move-result-object v0

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

    .line 1612
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->baseFragment:Lim/tpelyyftgw/ui/actionbar/BaseFragment;
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$600(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Lim/tpelyyftgw/ui/actionbar/BaseFragment;

    move-result-object v0

    instance-of v0, v0, Lim/tpelyyftgw/ui/ChatActivity;

    if-eqz v0, :cond_ae

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

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->baseFragment:Lim/tpelyyftgw/ui/actionbar/BaseFragment;
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$600(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Lim/tpelyyftgw/ui/actionbar/BaseFragment;

    move-result-object v0

    check-cast v0, Lim/tpelyyftgw/ui/ChatActivity;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/ChatActivity;->isSecretChat()Z

    move-result v0

    if-eqz v0, :cond_ae

    const/4 v0, 0x1

    goto :goto_af

    :cond_ae
    const/4 v0, 0x0

    :goto_af
    invoke-static {v0}, Lim/tpelyyftgw/messenger/AndroidUtilities;->generateVideoPath(Z)Ljava/io/File;

    move-result-object v0

    iput-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->outputFile:Ljava/io/File;

    .line 1613
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->recordTime:Landroid/widget/TextView;
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$8400(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Landroid/widget/TextView;

    move-result-object v0

    const/high16 v5, 0x3f800000    # 1.0f

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

    .line 1614
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->recordTime:Landroid/widget/TextView;
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$8400(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Landroid/widget/TextView;

    move-result-object v0

    new-array v3, v3, [Ljava/lang/Object;

    aput-object v2, v3, v1

    aput-object v2, v3, v4

    const-string v2, "%02d:%02d"

    invoke-static {v2, v3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1615
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # setter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->videoRecordTime:I
    invoke-static {v0, v1}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$8502(Lim/tpelyyftgw/ui/components/ChatAttachAlert;I)I

    .line 1616
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    new-instance v1, Lim/tpelyyftgw/ui/components/-$$Lambda$ChatAttachAlert$17$vCIgjeYiuqnzPDcxtX-65zbmC4k;

    invoke-direct {v1, p0}, Lim/tpelyyftgw/ui/components/-$$Lambda$ChatAttachAlert$17$vCIgjeYiuqnzPDcxtX-65zbmC4k;-><init>(Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;)V

    # setter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->videoRecordRunnable:Ljava/lang/Runnable;
    invoke-static {v0, v1}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$8602(Lim/tpelyyftgw/ui/components/ChatAttachAlert;Ljava/lang/Runnable;)Ljava/lang/Runnable;

    .line 1624
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->val$parentFragment:Lim/tpelyyftgw/ui/actionbar/BaseFragment;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->getParentActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    invoke-static {v0}, Lim/tpelyyftgw/messenger/AndroidUtilities;->lockOrientation(Landroid/app/Activity;)V

    .line 1625
    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/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->cameraView:Lim/tpelyyftgw/messenger/camera/CameraView;
    invoke-static {v1}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$8200(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Lim/tpelyyftgw/messenger/camera/CameraView;

    move-result-object v1

    invoke-virtual {v1}, Lim/tpelyyftgw/messenger/camera/CameraView;->getCameraSession()Lim/tpelyyftgw/messenger/camera/CameraSession;

    move-result-object v1

    iget-object v2, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->outputFile:Ljava/io/File;

    new-instance v3, Lim/tpelyyftgw/ui/components/-$$Lambda$ChatAttachAlert$17$Hpa0NQhkxqGqeRRBjAcSbviHGNk;

    invoke-direct {v3, p0}, Lim/tpelyyftgw/ui/components/-$$Lambda$ChatAttachAlert$17$Hpa0NQhkxqGqeRRBjAcSbviHGNk;-><init>(Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;)V

    new-instance v5, Lim/tpelyyftgw/ui/components/-$$Lambda$ChatAttachAlert$17$XrNoks5BKk5pmPQvMjhDissuDzM;

    invoke-direct {v5, p0}, Lim/tpelyyftgw/ui/components/-$$Lambda$ChatAttachAlert$17$XrNoks5BKk5pmPQvMjhDissuDzM;-><init>(Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;)V

    invoke-virtual {v0, v1, v2, v3, v5}, Lim/tpelyyftgw/messenger/camera/CameraController;->recordVideo(Lim/tpelyyftgw/messenger/camera/CameraSession;Ljava/io/File;Lim/tpelyyftgw/messenger/camera/CameraController$VideoTakeCallback;Ljava/lang/Runnable;)V

    .line 1635
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->shutterButton:Lim/tpelyyftgw/ui/components/ShutterButton;
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$7700(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Lim/tpelyyftgw/ui/components/ShutterButton;

    move-result-object v0

    sget-object v1, Lim/tpelyyftgw/ui/components/ShutterButton$State;->RECORDING:Lim/tpelyyftgw/ui/components/ShutterButton$State;

    invoke-virtual {v0, v1, v4}, Lim/tpelyyftgw/ui/components/ShutterButton;->setState(Lim/tpelyyftgw/ui/components/ShutterButton$State;Z)V

    .line 1636
    return v4

    .line 1598
    :cond_116
    :goto_116
    return v1
.end method

.method public shutterReleased()V
    .registers 7

    .line 1654
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->takingPhoto:Z
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$8100(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Z

    move-result v0

    if-nez v0, :cond_b7

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

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->cameraView:Lim/tpelyyftgw/messenger/camera/CameraView;
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$8200(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Lim/tpelyyftgw/messenger/camera/CameraView;

    move-result-object v0

    if-eqz v0, :cond_b7

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

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->mediaCaptured:Z
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$8000(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Z

    move-result v0

    if-nez v0, :cond_b7

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

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->cameraView:Lim/tpelyyftgw/messenger/camera/CameraView;
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$8200(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Lim/tpelyyftgw/messenger/camera/CameraView;

    move-result-object v0

    invoke-virtual {v0}, Lim/tpelyyftgw/messenger/camera/CameraView;->getCameraSession()Lim/tpelyyftgw/messenger/camera/CameraSession;

    move-result-object v0

    if-nez v0, :cond_26

    goto/16 :goto_b7

    .line 1657
    :cond_26
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    const/4 v1, 0x1

    # setter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->mediaCaptured:Z
    invoke-static {v0, v1}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$8002(Lim/tpelyyftgw/ui/components/ChatAttachAlert;Z)Z

    .line 1658
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->shutterButton:Lim/tpelyyftgw/ui/components/ShutterButton;
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$7700(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Lim/tpelyyftgw/ui/components/ShutterButton;

    move-result-object v0

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/ShutterButton;->getState()Lim/tpelyyftgw/ui/components/ShutterButton$State;

    move-result-object v0

    sget-object v2, Lim/tpelyyftgw/ui/components/ShutterButton$State;->RECORDING:Lim/tpelyyftgw/ui/components/ShutterButton$State;

    const/4 v3, 0x0

    if-ne v0, v2, :cond_5d

    .line 1659
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # invokes: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->resetRecordState()V
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$8700(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)V

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

    move-result-object v0

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

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->cameraView:Lim/tpelyyftgw/messenger/camera/CameraView;
    invoke-static {v2}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$8200(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Lim/tpelyyftgw/messenger/camera/CameraView;

    move-result-object v2

    invoke-virtual {v2}, Lim/tpelyyftgw/messenger/camera/CameraView;->getCameraSession()Lim/tpelyyftgw/messenger/camera/CameraSession;

    move-result-object v2

    invoke-virtual {v0, v2, v3}, Lim/tpelyyftgw/messenger/camera/CameraController;->stopVideoRecording(Lim/tpelyyftgw/messenger/camera/CameraSession;Z)V

    .line 1661
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->shutterButton:Lim/tpelyyftgw/ui/components/ShutterButton;
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$7700(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Lim/tpelyyftgw/ui/components/ShutterButton;

    move-result-object v0

    sget-object v2, Lim/tpelyyftgw/ui/components/ShutterButton$State;->DEFAULT:Lim/tpelyyftgw/ui/components/ShutterButton$State;

    invoke-virtual {v0, v2, v1}, Lim/tpelyyftgw/ui/components/ShutterButton;->setState(Lim/tpelyyftgw/ui/components/ShutterButton$State;Z)V

    .line 1662
    return-void

    .line 1664
    :cond_5d
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->baseFragment:Lim/tpelyyftgw/ui/actionbar/BaseFragment;
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$600(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Lim/tpelyyftgw/ui/actionbar/BaseFragment;

    move-result-object v0

    instance-of v0, v0, Lim/tpelyyftgw/ui/ChatActivity;

    if-eqz v0, :cond_76

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

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->baseFragment:Lim/tpelyyftgw/ui/actionbar/BaseFragment;
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$600(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Lim/tpelyyftgw/ui/actionbar/BaseFragment;

    move-result-object v0

    check-cast v0, Lim/tpelyyftgw/ui/ChatActivity;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/ChatActivity;->isSecretChat()Z

    move-result v0

    if-eqz v0, :cond_76

    goto :goto_77

    :cond_76
    const/4 v1, 0x0

    :goto_77
    invoke-static {v1}, Lim/tpelyyftgw/messenger/AndroidUtilities;->generatePicturePath(Z)Ljava/io/File;

    move-result-object v0

    .line 1665
    .local v0, "cameraFile":Ljava/io/File;
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->cameraView:Lim/tpelyyftgw/messenger/camera/CameraView;
    invoke-static {v1}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$8200(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Lim/tpelyyftgw/messenger/camera/CameraView;

    move-result-object v1

    invoke-virtual {v1}, Lim/tpelyyftgw/messenger/camera/CameraView;->getCameraSession()Lim/tpelyyftgw/messenger/camera/CameraSession;

    move-result-object v1

    invoke-virtual {v1}, Lim/tpelyyftgw/messenger/camera/CameraSession;->isSameTakePictureOrientation()Z

    move-result v1

    .line 1666
    .local v1, "sameTakePictureOrientation":Z
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->cameraView:Lim/tpelyyftgw/messenger/camera/CameraView;
    invoke-static {v2}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$8200(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Lim/tpelyyftgw/messenger/camera/CameraView;

    move-result-object v2

    invoke-virtual {v2}, Lim/tpelyyftgw/messenger/camera/CameraView;->getCameraSession()Lim/tpelyyftgw/messenger/camera/CameraSession;

    move-result-object v2

    iget-object v3, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->val$parentFragment:Lim/tpelyyftgw/ui/actionbar/BaseFragment;

    instance-of v3, v3, Lim/tpelyyftgw/ui/ChatActivity;

    invoke-virtual {v2, v3}, Lim/tpelyyftgw/messenger/camera/CameraSession;->setFlipFront(Z)V

    .line 1667
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

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

    move-result-object v3

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

    # getter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->cameraView:Lim/tpelyyftgw/messenger/camera/CameraView;
    invoke-static {v4}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$8200(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Lim/tpelyyftgw/messenger/camera/CameraView;

    move-result-object v4

    invoke-virtual {v4}, Lim/tpelyyftgw/messenger/camera/CameraView;->getCameraSession()Lim/tpelyyftgw/messenger/camera/CameraSession;

    move-result-object v4

    new-instance v5, Lim/tpelyyftgw/ui/components/-$$Lambda$ChatAttachAlert$17$qq3yn7iaQEwDc3dLOlxTS3R2si8;

    invoke-direct {v5, p0, v0, v1}, Lim/tpelyyftgw/ui/components/-$$Lambda$ChatAttachAlert$17$qq3yn7iaQEwDc3dLOlxTS3R2si8;-><init>(Lim/tpelyyftgw/ui/components/ChatAttachAlert$17;Ljava/io/File;Z)V

    invoke-virtual {v3, v0, v4, v5}, Lim/tpelyyftgw/messenger/camera/CameraController;->takePicture(Ljava/io/File;Lim/tpelyyftgw/messenger/camera/CameraSession;Ljava/lang/Runnable;)Z

    move-result v3

    # setter for: Lim/tpelyyftgw/ui/components/ChatAttachAlert;->takingPhoto:Z
    invoke-static {v2, v3}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$8102(Lim/tpelyyftgw/ui/components/ChatAttachAlert;Z)Z

    .line 1695
    return-void

    .line 1655
    .end local v0    # "cameraFile":Ljava/io/File;
    .end local v1    # "sameTakePictureOrientation":Z
    :cond_b7
    :goto_b7
    return-void
.end method