WaitingNextVideoComponent$c.smali

.class public final Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent$c;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent;-><init>(Lcom/imo/android/core/component/c;Landroid/view/View;)V
.end annotation

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


# instance fields
.field final synthetic a:Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent;


# direct methods
.method constructor <init>(Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent;)V
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()V"
        }
    .end annotation

    .line 59
    iput-object p1, p0, Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent$c;->a:Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent;

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

    return-void
.end method


# virtual methods
.method public final run()V
    .registers 9

    .line 61
    iget-object v0, p0, Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent$c;->a:Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent;

    invoke-static {v0}, Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent;->g(Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent;)Lcom/imo/android/core/a/b;

    move-result-object v0

    const-string v1, "mActivityServiceWrapper"

    invoke-static {v0, v1}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-interface {v0}, Lcom/imo/android/core/a/b;->h()Z

    move-result v0

    if-eqz v0, :cond_12

    return-void

    .line 65
    :cond_12
    iget-object v0, p0, Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent$c;->a:Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent;

    invoke-static {v0}, Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent;->h(Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent;)I

    move-result v0

    const/4 v1, -0x1

    if-gtz v0, :cond_75

    .line 67
    iget-object v0, p0, Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent$c;->a:Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent;

    invoke-static {v0, v1}, Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent;->a(Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent;I)V

    .line 68
    iget-object v0, p0, Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent$c;->a:Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent;

    invoke-static {v0}, Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent;->a(Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent;)Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent$b;

    move-result-object v0

    if-eqz v0, :cond_35

    .line 1236
    iget-object v0, v0, Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent$b;->a:Lkotlin/f/a/b;

    if-eqz v0, :cond_35

    .line 68
    iget-object v1, p0, Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent$c;->a:Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent;

    invoke-static {v1}, Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent;->b(Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent;)Lcom/imo/android/imoim/rooms/data/RoomsVideoInfo;

    move-result-object v1

    invoke-interface {v0, v1}, Lkotlin/f/a/b;->invoke(Ljava/lang/Object;)Ljava/lang/Object;

    .line 69
    :cond_35
    iget-object v0, p0, Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent$c;->a:Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent;

    invoke-virtual {v0}, Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent;->h()V

    .line 70
    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "count down finish, play "

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent$c;->a:Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent;

    invoke-static {v1}, Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent;->b(Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent;)Lcom/imo/android/imoim/rooms/data/RoomsVideoInfo;

    move-result-object v1

    if-eqz v1, :cond_4c

    .line 2050
    iget-object v1, v1, Lcom/imo/android/imoim/rooms/data/RoomsVideoInfo;->a:Ljava/lang/String;

    goto :goto_4d

    :cond_4c
    const/4 v1, 0x0

    .line 70
    :goto_4d
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    const-string v1, "WaitingNextVideoComponent"

    .line 2071
    invoke-static {v1, v0}, Lcom/imo/android/imoim/util/bt;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 71
    iget-object v0, p0, Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent$c;->a:Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent;

    invoke-static {v0}, Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent;->b(Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent;)Lcom/imo/android/imoim/rooms/data/RoomsVideoInfo;

    move-result-object v0

    if-eqz v0, :cond_74

    .line 3050
    iget-object v2, v0, Lcom/imo/android/imoim/rooms/data/RoomsVideoInfo;->a:Ljava/lang/String;

    .line 3058
    iget-object v3, v0, Lcom/imo/android/imoim/rooms/data/RoomsVideoInfo;->e:Ljava/lang/String;

    .line 3060
    iget-object v4, v0, Lcom/imo/android/imoim/rooms/data/RoomsVideoInfo;->f:Ljava/lang/String;

    .line 4056
    iget-wide v5, v0, Lcom/imo/android/imoim/rooms/data/RoomsVideoInfo;->d:J

    .line 73
    iget-object v0, p0, Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent$c;->a:Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent;

    invoke-static {v0}, Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent;->c(Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent;)I

    move-result v7

    const-string v1, "next_auto"

    .line 72
    invoke-static/range {v1 .. v7}, Lcom/imo/android/imoim/rooms/b/g;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;JI)V

    :cond_74
    return-void

    .line 76
    :cond_75
    iget-object v0, p0, Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent$c;->a:Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent;

    invoke-static {v0}, Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent;->i(Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent;)Landroid/widget/TextView;

    move-result-object v0

    iget-object v2, p0, Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent$c;->a:Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent;

    invoke-static {v2}, Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent;->j(Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent;)Landroid/text/Spannable;

    move-result-object v2

    check-cast v2, Ljava/lang/CharSequence;

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

    .line 77
    move-object v0, p0

    check-cast v0, Ljava/lang/Runnable;

    const-wide/16 v2, 0x3e8

    invoke-static {v0, v2, v3}, Lcom/imo/android/imoim/util/ec;->a(Ljava/lang/Runnable;J)V

    .line 78
    iget-object v0, p0, Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent$c;->a:Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent;

    invoke-static {v0}, Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent;->h(Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent;)I

    move-result v2

    add-int/2addr v2, v1

    invoke-static {v0, v2}, Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent;->a(Lcom/imo/android/imoim/rooms/av/component/WaitingNextVideoComponent;I)V

    return-void
.end method