InstantCameraView$10.smali

.class Lim/tpelyyftgw/ui/components/InstantCameraView$10;
.super Ljava/util/TimerTask;
.source "InstantCameraView.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lim/tpelyyftgw/ui/components/InstantCameraView;->startProgressTimer()V
.end annotation

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


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


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

    return-void
.end method

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

    .line 888
    iput-object p1, p0, Lim/tpelyyftgw/ui/components/InstantCameraView$10;->this$0:Lim/tpelyyftgw/ui/components/InstantCameraView;

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

    return-void
.end method


# virtual methods
.method public synthetic lambda$run$0$InstantCameraView$10()V
    .registers 8

    .line 893
    :try_start_0
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/InstantCameraView$10;->this$0:Lim/tpelyyftgw/ui/components/InstantCameraView;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/InstantCameraView;->access$1000(Lim/tpelyyftgw/ui/components/InstantCameraView;)Lim/tpelyyftgw/ui/components/VideoPlayer;

    move-result-object v0

    if-eqz v0, :cond_51

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

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/InstantCameraView;->access$1100(Lim/tpelyyftgw/ui/components/InstantCameraView;)Lim/tpelyyftgw/messenger/VideoEditedInfo;

    move-result-object v0

    if-eqz v0, :cond_51

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

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/InstantCameraView;->access$1100(Lim/tpelyyftgw/ui/components/InstantCameraView;)Lim/tpelyyftgw/messenger/VideoEditedInfo;

    move-result-object v0

    iget-wide v0, v0, Lim/tpelyyftgw/messenger/VideoEditedInfo;->endTime:J

    const-wide/16 v2, 0x0

    cmp-long v4, v0, v2

    if-lez v4, :cond_51

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

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/InstantCameraView;->access$1000(Lim/tpelyyftgw/ui/components/InstantCameraView;)Lim/tpelyyftgw/ui/components/VideoPlayer;

    move-result-object v0

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/VideoPlayer;->getCurrentPosition()J

    move-result-wide v0

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

    invoke-static {v4}, Lim/tpelyyftgw/ui/components/InstantCameraView;->access$1100(Lim/tpelyyftgw/ui/components/InstantCameraView;)Lim/tpelyyftgw/messenger/VideoEditedInfo;

    move-result-object v4

    iget-wide v4, v4, Lim/tpelyyftgw/messenger/VideoEditedInfo;->endTime:J

    cmp-long v6, v0, v4

    if-ltz v6, :cond_51

    .line 894
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/InstantCameraView$10;->this$0:Lim/tpelyyftgw/ui/components/InstantCameraView;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/InstantCameraView;->access$1000(Lim/tpelyyftgw/ui/components/InstantCameraView;)Lim/tpelyyftgw/ui/components/VideoPlayer;

    move-result-object v0

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

    invoke-static {v1}, Lim/tpelyyftgw/ui/components/InstantCameraView;->access$1100(Lim/tpelyyftgw/ui/components/InstantCameraView;)Lim/tpelyyftgw/messenger/VideoEditedInfo;

    move-result-object v1

    iget-wide v4, v1, Lim/tpelyyftgw/messenger/VideoEditedInfo;->startTime:J

    cmp-long v1, v4, v2

    if-lez v1, :cond_4e

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

    invoke-static {v1}, Lim/tpelyyftgw/ui/components/InstantCameraView;->access$1100(Lim/tpelyyftgw/ui/components/InstantCameraView;)Lim/tpelyyftgw/messenger/VideoEditedInfo;

    move-result-object v1

    iget-wide v2, v1, Lim/tpelyyftgw/messenger/VideoEditedInfo;->startTime:J

    :cond_4e
    invoke-virtual {v0, v2, v3}, Lim/tpelyyftgw/ui/components/VideoPlayer;->seekTo(J)V
    :try_end_51
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_51} :catch_52

    .line 898
    :cond_51
    goto :goto_56

    .line 896
    :catch_52
    move-exception v0

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

    .line 899
    .end local v0    # "e":Ljava/lang/Exception;
    :goto_56
    return-void
.end method

.method public run()V
    .registers 2

    .line 891
    new-instance v0, Lim/tpelyyftgw/ui/components/-$$Lambda$InstantCameraView$10$5D1tyemqPHR7pXp3eh-3x_JWcvw;

    invoke-direct {v0, p0}, Lim/tpelyyftgw/ui/components/-$$Lambda$InstantCameraView$10$5D1tyemqPHR7pXp3eh-3x_JWcvw;-><init>(Lim/tpelyyftgw/ui/components/InstantCameraView$10;)V

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

    .line 900
    return-void
.end method