RoomCoupleComponent$af.smali

.class final Lcom/imo/android/imoim/chatroom/couple/component/RoomCoupleComponent$af;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Landroidx/lifecycle/Observer;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/imo/android/imoim/chatroom/couple/component/RoomCoupleComponent;
.end annotation

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

.annotation system Ldalvik/annotation/Signature;
    value = {
        "<T:",
        "Ljava/lang/Object;",
        ">",
        "Ljava/lang/Object;",
        "Landroidx/lifecycle/Observer<",
        "Ljava/util/List<",
        "+",
        "Lcom/imo/android/imoim/mediaroom/micseat/RoomMicSeatEntity;",
        ">;>;"
    }
.end annotation


# instance fields
.field final synthetic a:Lcom/imo/android/imoim/chatroom/couple/component/RoomCoupleComponent;


# direct methods
.method constructor <init>(Lcom/imo/android/imoim/chatroom/couple/component/RoomCoupleComponent;)V
    .registers 2

    iput-object p1, p0, Lcom/imo/android/imoim/chatroom/couple/component/RoomCoupleComponent$af;->a:Lcom/imo/android/imoim/chatroom/couple/component/RoomCoupleComponent;

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

    return-void
.end method


# virtual methods
.method public final synthetic onChanged(Ljava/lang/Object;)V
    .registers 12

    .line 96
    check-cast p1, Ljava/util/List;

    if-nez p1, :cond_5

    return-void

    .line 1620
    :cond_5
    iget-object v0, p0, Lcom/imo/android/imoim/chatroom/couple/component/RoomCoupleComponent$af;->a:Lcom/imo/android/imoim/chatroom/couple/component/RoomCoupleComponent;

    invoke-static {v0}, Lcom/imo/android/imoim/chatroom/couple/component/RoomCoupleComponent;->q(Lcom/imo/android/imoim/chatroom/couple/component/RoomCoupleComponent;)Lcom/imo/android/imoim/chatroom/couple/adapter/CoupleMicAdapter;

    move-result-object v0

    const-string v1, "changedMicSeats"

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

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

    move-result-object v1

    :cond_14
    :goto_14
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_40

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

    move-result-object v2

    check-cast v2, Lcom/imo/android/imoim/mediaroom/micseat/RoomMicSeatEntity;

    .line 2145
    invoke-virtual {v0}, Lcom/imo/android/imoim/chatroom/couple/adapter/CoupleMicAdapter;->getItemCount()I

    move-result v3

    int-to-long v3, v3

    const-wide/16 v5, 0x0

    iget-wide v7, v2, Lcom/imo/android/imoim/mediaroom/micseat/RoomMicSeatEntity;->o:J

    cmp-long v9, v5, v7

    if-lez v9, :cond_2e

    goto :goto_14

    :cond_2e
    cmp-long v5, v3, v7

    if-lez v5, :cond_14

    .line 2146
    iget-wide v3, v2, Lcom/imo/android/imoim/mediaroom/micseat/RoomMicSeatEntity;->o:J

    long-to-int v4, v3

    new-instance v3, Lcom/imo/android/imoim/chatroom/couple/adapter/CoupleMicAdapter$c;

    iget-boolean v2, v2, Lcom/imo/android/imoim/mediaroom/micseat/RoomMicSeatEntity;->g:Z

    invoke-direct {v3, v2}, Lcom/imo/android/imoim/chatroom/couple/adapter/CoupleMicAdapter$c;-><init>(Z)V

    invoke-virtual {v0, v4, v3}, Lcom/imo/android/imoim/chatroom/couple/adapter/CoupleMicAdapter;->notifyItemChanged(ILjava/lang/Object;)V

    goto :goto_14

    .line 1621
    :cond_40
    iget-object v0, p0, Lcom/imo/android/imoim/chatroom/couple/component/RoomCoupleComponent$af;->a:Lcom/imo/android/imoim/chatroom/couple/component/RoomCoupleComponent;

    invoke-static {v0}, Lcom/imo/android/imoim/chatroom/couple/component/RoomCoupleComponent;->r(Lcom/imo/android/imoim/chatroom/couple/component/RoomCoupleComponent;)Lcom/imo/android/imoim/chatroom/couple/view/CoupleLayout;

    move-result-object v0

    if-eqz v0, :cond_4b

    invoke-virtual {v0, p1}, Lcom/imo/android/imoim/chatroom/couple/view/CoupleLayout;->setSpeakingChanged(Ljava/util/List;)V

    .line 1622
    :cond_4b
    iget-object v0, p0, Lcom/imo/android/imoim/chatroom/couple/component/RoomCoupleComponent$af;->a:Lcom/imo/android/imoim/chatroom/couple/component/RoomCoupleComponent;

    invoke-static {v0}, Lcom/imo/android/imoim/chatroom/couple/component/RoomCoupleComponent;->w(Lcom/imo/android/imoim/chatroom/couple/component/RoomCoupleComponent;)Lcom/imo/android/imoim/chatroom/couple/view/CoupleLayout;

    move-result-object v0

    if-eqz v0, :cond_56

    invoke-virtual {v0, p1}, Lcom/imo/android/imoim/chatroom/couple/view/CoupleLayout;->setSpeakingChanged(Ljava/util/List;)V

    :cond_56
    return-void
.end method