c.smali

.class public final Lsg/bigo/live/support64/component/chat/c;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Lsg/bigo/live/support64/component/chat/g;


# static fields
.field private static final a:Ljava/lang/Object;


# instance fields
.field private final b:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lsg/bigo/live/support64/controllers/chat/f;",
            ">;"
        }
    .end annotation
.end field

.field private c:Lsg/bigo/live/support64/component/chat/i;


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

    .line 30
    new-instance v0, Ljava/lang/Object;

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

    sput-object v0, Lsg/bigo/live/support64/component/chat/c;->a:Ljava/lang/Object;

    return-void
.end method

.method constructor <init>(Lsg/bigo/live/support64/component/chat/i;)V
    .registers 6

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

    .line 40
    iput-object p1, p0, Lsg/bigo/live/support64/component/chat/c;->c:Lsg/bigo/live/support64/component/chat/i;

    .line 41
    new-instance p1, Llive/sg/bigo/svcapi/a/a;

    new-instance v0, Lsg/bigo/live/support64/component/chat/c$1;

    invoke-direct {v0, p0}, Lsg/bigo/live/support64/component/chat/c$1;-><init>(Lsg/bigo/live/support64/component/chat/c;)V

    const/16 v1, 0x6a8f

    const/16 v2, 0x1e8f

    const/16 v3, 0xc8

    invoke-direct {p1, v0, v1, v2, v3}, Llive/sg/bigo/svcapi/a/a;-><init>(Llive/sg/bigo/svcapi/a/a$a;III)V

    iput-object p1, p0, Lsg/bigo/live/support64/component/chat/c;->b:Ljava/util/List;

    return-void
.end method


# virtual methods
.method public final a()V
    .registers 2

    .line 3042
    invoke-static {}, Lsg/bigo/common/ac$a;->a()Landroid/os/Handler;

    move-result-object v0

    invoke-virtual {v0, p0}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 74
    invoke-static {p0}, Lsg/bigo/common/ac;->a(Ljava/lang/Runnable;)V

    .line 75
    sget-boolean v0, Lsg/bigo/live/support64/s;->b:Z

    return-void
.end method

.method public final a(Ljava/util/List;)V
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lsg/bigo/live/support64/controllers/chat/f;",
            ">;)V"
        }
    .end annotation

    .line 98
    invoke-static {p1}, Lsg/bigo/common/o;->a(Ljava/util/Collection;)Z

    move-result v0

    if-eqz v0, :cond_7

    return-void

    .line 101
    :cond_7
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :goto_b
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_1b

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lsg/bigo/live/support64/controllers/chat/f;

    .line 102
    invoke-virtual {p0, v0}, Lsg/bigo/live/support64/component/chat/c;->a(Lsg/bigo/live/support64/controllers/chat/f;)V

    goto :goto_b

    .line 104
    :cond_1b
    sget-boolean p1, Lsg/bigo/live/support64/s;->b:Z

    return-void
.end method

.method public final a(Lsg/bigo/live/support64/controllers/chat/f;)V
    .registers 5

    if-nez p1, :cond_3

    return-void

    .line 85
    :cond_3
    sget-object v0, Lsg/bigo/live/support64/component/chat/c;->a:Ljava/lang/Object;

    monitor-enter v0

    .line 86
    :try_start_6
    iget-object v1, p0, Lsg/bigo/live/support64/component/chat/c;->b:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    const/16 v2, 0xc8

    if-lt v1, v2, :cond_14

    .line 87
    iget-boolean v1, p1, Lsg/bigo/live/support64/controllers/chat/f;->y:Z

    if-eqz v1, :cond_1b

    .line 88
    :cond_14
    iget-object v1, p0, Lsg/bigo/live/support64/component/chat/c;->b:Ljava/util/List;

    invoke-interface {v1, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 89
    sget-boolean p1, Lsg/bigo/live/support64/s;->b:Z

    .line 93
    :cond_1b
    monitor-exit v0

    return-void

    :catchall_1d
    move-exception p1

    monitor-exit v0
    :try_end_1f
    .catchall {:try_start_6 .. :try_end_1f} :catchall_1d

    throw p1
.end method

.method public final b()V
    .registers 2

    const/4 v0, 0x0

    .line 111
    iput-object v0, p0, Lsg/bigo/live/support64/component/chat/c;->c:Lsg/bigo/live/support64/component/chat/i;

    .line 4042
    invoke-static {}, Lsg/bigo/common/ac$a;->a()Landroid/os/Handler;

    move-result-object v0

    invoke-virtual {v0, p0}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 113
    invoke-virtual {p0}, Lsg/bigo/live/support64/component/chat/c;->c()V

    .line 114
    sget-boolean v0, Lsg/bigo/live/support64/s;->b:Z

    return-void
.end method

.method public final c()V
    .registers 2

    .line 121
    iget-object v0, p0, Lsg/bigo/live/support64/component/chat/c;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 122
    sget-boolean v0, Lsg/bigo/live/support64/s;->b:Z

    return-void
.end method

.method public final run()V
    .registers 6

    .line 52
    sget-boolean v0, Lsg/bigo/live/support64/s;->b:Z

    .line 55
    iget-object v0, p0, Lsg/bigo/live/support64/component/chat/c;->c:Lsg/bigo/live/support64/component/chat/i;

    if-nez v0, :cond_7

    return-void

    .line 58
    :cond_7
    iget-object v0, p0, Lsg/bigo/live/support64/component/chat/c;->b:Ljava/util/List;

    invoke-static {v0}, Lsg/bigo/common/o;->a(Ljava/util/Collection;)Z

    move-result v0

    const-wide/16 v1, 0x1f4

    if-eqz v0, :cond_1c

    .line 1042
    invoke-static {}, Lsg/bigo/common/ac$a;->a()Landroid/os/Handler;

    move-result-object v0

    invoke-virtual {v0, p0}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 60
    invoke-static {p0, v1, v2}, Lsg/bigo/common/ac;->a(Ljava/lang/Runnable;J)V

    return-void

    .line 63
    :cond_1c
    sget-object v0, Lsg/bigo/live/support64/component/chat/c;->a:Ljava/lang/Object;

    monitor-enter v0

    .line 64
    :try_start_1f
    iget-object v3, p0, Lsg/bigo/live/support64/component/chat/c;->c:Lsg/bigo/live/support64/component/chat/i;

    iget-object v4, p0, Lsg/bigo/live/support64/component/chat/c;->b:Ljava/util/List;

    invoke-interface {v3, v4}, Lsg/bigo/live/support64/component/chat/i;->a(Ljava/util/List;)V

    .line 65
    iget-object v3, p0, Lsg/bigo/live/support64/component/chat/c;->b:Ljava/util/List;

    invoke-interface {v3}, Ljava/util/List;->clear()V

    .line 66
    monitor-exit v0
    :try_end_2c
    .catchall {:try_start_1f .. :try_end_2c} :catchall_37

    .line 2042
    invoke-static {}, Lsg/bigo/common/ac$a;->a()Landroid/os/Handler;

    move-result-object v0

    invoke-virtual {v0, p0}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 68
    invoke-static {p0, v1, v2}, Lsg/bigo/common/ac;->a(Ljava/lang/Runnable;J)V

    return-void

    :catchall_37
    move-exception v1

    .line 66
    :try_start_38
    monitor-exit v0
    :try_end_39
    .catchall {:try_start_38 .. :try_end_39} :catchall_37

    throw v1
.end method