PopularUserFragment$i.smali

.class final Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment$i;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Landroidx/lifecycle/Observer;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;->b(Landroid/os/Bundle;)V
.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<",
        "Lcom/imo/android/imoim/feeds/g<",
        "+",
        "Ljava/util/List<",
        "Lcom/masala/share/proto/user/RecUserInfo;",
        ">;>;>;"
    }
.end annotation


# instance fields
.field final synthetic a:Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;


# direct methods
.method constructor <init>(Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;)V
    .registers 2

    iput-object p1, p0, Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment$i;->a:Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;

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

    return-void
.end method


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

    .line 42
    check-cast p1, Lcom/imo/android/imoim/feeds/g;

    .line 1092
    invoke-virtual {p1}, Lcom/imo/android/imoim/feeds/g;->a()Z

    move-result v0

    const/4 v1, -0x1

    const/4 v2, 0x1

    const/4 v3, 0x0

    if-eqz v0, :cond_32

    .line 2006
    iget-object v0, p1, Lcom/imo/android/imoim/feeds/g;->b:Ljava/lang/Object;

    .line 1093
    check-cast v0, Ljava/util/Collection;

    if-eqz v0, :cond_1a

    invoke-interface {v0}, Ljava/util/Collection;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_18

    goto :goto_1a

    :cond_18
    const/4 v0, 0x0

    goto :goto_1b

    :cond_1a
    :goto_1a
    const/4 v0, 0x1

    :goto_1b
    if-eqz v0, :cond_28

    .line 1094
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment$i;->a:Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;

    invoke-static {v0}, Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;->a(Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;)Lcom/masala/share/utils/a/a/b;

    move-result-object v0

    const/4 v4, 0x2

    .line 2043
    invoke-virtual {v0, v4}, Lcom/masala/share/utils/a/a/b;->a(I)V

    goto :goto_63

    .line 1096
    :cond_28
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment$i;->a:Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;

    invoke-static {v0}, Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;->a(Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;)Lcom/masala/share/utils/a/a/b;

    move-result-object v0

    .line 2051
    invoke-virtual {v0, v1}, Lcom/masala/share/utils/a/a/b;->a(I)V

    goto :goto_63

    :cond_32
    const v0, 0x7e0b0094

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

    .line 1099
    invoke-static {v0, v4}, Lsg/bigo/mobile/android/aab/c/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lsg/bigo/common/p;->a(Ljava/lang/String;)Z

    .line 3006
    iget-object v0, p1, Lcom/imo/android/imoim/feeds/g;->b:Ljava/lang/Object;

    .line 1100
    check-cast v0, Ljava/util/Collection;

    if-eqz v0, :cond_4d

    invoke-interface {v0}, Ljava/util/Collection;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_4b

    goto :goto_4d

    :cond_4b
    const/4 v0, 0x0

    goto :goto_4e

    :cond_4d
    :goto_4d
    const/4 v0, 0x1

    :goto_4e
    if-eqz v0, :cond_5a

    .line 1101
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment$i;->a:Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;

    invoke-static {v0}, Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;->a(Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;)Lcom/masala/share/utils/a/a/b;

    move-result-object v0

    .line 3047
    invoke-virtual {v0, v2}, Lcom/masala/share/utils/a/a/b;->a(I)V

    goto :goto_63

    .line 1103
    :cond_5a
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment$i;->a:Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;

    invoke-static {v0}, Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;->a(Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;)Lcom/masala/share/utils/a/a/b;

    move-result-object v0

    .line 3051
    invoke-virtual {v0, v1}, Lcom/masala/share/utils/a/a/b;->a(I)V

    .line 4006
    :goto_63
    iget-object v0, p1, Lcom/imo/android/imoim/feeds/g;->b:Ljava/lang/Object;

    .line 1106
    check-cast v0, Ljava/util/Collection;

    if-eqz v0, :cond_71

    invoke-interface {v0}, Ljava/util/Collection;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_70

    goto :goto_71

    :cond_70
    const/4 v2, 0x0

    :cond_71
    :goto_71
    if-nez v2, :cond_159

    .line 1107
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment$i;->a:Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;

    invoke-static {v0}, Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;->b(Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;)Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/PopularUserPageVM;

    move-result-object v0

    invoke-virtual {v0}, Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/PopularUserPageVM;->a()Landroidx/lifecycle/LiveData;

    move-result-object v0

    invoke-virtual {v0}, Landroidx/lifecycle/LiveData;->getValue()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/imo/android/imoim/feeds/g;

    const/4 v2, 0x0

    if-eqz v0, :cond_97

    .line 5006
    iget-object v0, v0, Lcom/imo/android/imoim/feeds/g;->b:Ljava/lang/Object;

    .line 1107
    check-cast v0, Ljava/util/List;

    if-eqz v0, :cond_97

    invoke-interface {v0, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/masala/share/proto/model/a;

    if-eqz v0, :cond_97

    .line 5014
    iget-object v0, v0, Lcom/masala/share/proto/model/a;->d:Ljava/lang/String;

    goto :goto_98

    :cond_97
    move-object v0, v2

    .line 1107
    :goto_98
    iget-object v4, p0, Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment$i;->a:Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;

    invoke-static {v4}, Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;->c(Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;)Ljava/lang/String;

    move-result-object v4

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

    move-result v0

    if-eqz v0, :cond_e4

    .line 1108
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment$i;->a:Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;

    const-string v4, "key_top_user"

    invoke-virtual {v0, v4}, Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/masala/share/proto/user/RecUserInfo;

    if-eqz v0, :cond_e4

    .line 6006
    iget-object v4, p1, Lcom/imo/android/imoim/feeds/g;->b:Ljava/lang/Object;

    .line 1111
    check-cast v4, Ljava/util/Collection;

    invoke-interface {v4}, Ljava/util/Collection;->size()I

    move-result v4

    const/4 v5, 0x0

    :goto_b9
    if-ge v5, v4, :cond_d3

    .line 7006
    iget-object v6, p1, Lcom/imo/android/imoim/feeds/g;->b:Ljava/lang/Object;

    .line 1112
    check-cast v6, Ljava/util/List;

    invoke-interface {v6, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/masala/share/proto/user/RecUserInfo;

    iget-object v6, v6, Lcom/masala/share/proto/user/RecUserInfo;->a:Lcom/masala/share/uid/Uid;

    iget-object v7, v0, Lcom/masala/share/proto/user/RecUserInfo;->a:Lcom/masala/share/uid/Uid;

    invoke-static {v6, v7}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_d0

    goto :goto_d4

    :cond_d0
    add-int/lit8 v5, v5, 0x1

    goto :goto_b9

    :cond_d3
    const/4 v5, -0x1

    :goto_d4
    if-eq v5, v1, :cond_e4

    .line 8006
    iget-object v1, p1, Lcom/imo/android/imoim/feeds/g;->b:Ljava/lang/Object;

    .line 1118
    check-cast v1, Ljava/util/List;

    invoke-interface {v1, v5}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    .line 9006
    iget-object v1, p1, Lcom/imo/android/imoim/feeds/g;->b:Ljava/lang/Object;

    .line 1119
    check-cast v1, Ljava/util/List;

    invoke-interface {v1, v3, v0}, Ljava/util/List;->add(ILjava/lang/Object;)V

    .line 1123
    :cond_e4
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment$i;->a:Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;

    invoke-static {v0}, Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;->d(Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;)Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;

    move-result-object v0

    .line 9149
    iget-object v0, v0, Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;->c:Lcom/imo/android/imoim/feeds/ui/vhadapter/a;

    .line 10006
    iget-object p1, p1, Lcom/imo/android/imoim/feeds/g;->b:Ljava/lang/Object;

    if-eqz p1, :cond_151

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

    new-instance v1, Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment$i$1;

    invoke-direct {v1}, Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment$i$1;-><init>()V

    check-cast v1, Lcom/imo/android/imoim/feeds/ui/vhadapter/a$b;

    invoke-virtual {v0, p1, v1}, Lcom/imo/android/imoim/feeds/ui/vhadapter/a;->a(Ljava/util/List;Lcom/imo/android/imoim/feeds/ui/vhadapter/a$b;)V

    .line 1144
    iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment$i;->a:Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;

    invoke-static {p1}, Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;->b(Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;)Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/PopularUserPageVM;

    move-result-object p1

    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment$i;->a:Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;

    invoke-static {v0}, Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;->c(Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "areaCode"

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

    .line 10146
    invoke-virtual {p1, v0}, Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/PopularUserPageVM;->c(Ljava/lang/String;)Landroidx/lifecycle/MutableLiveData;

    move-result-object p1

    check-cast p1, Landroidx/lifecycle/LiveData;

    if-eqz p1, :cond_11c

    .line 1144
    invoke-virtual {p1}, Landroidx/lifecycle/LiveData;->getValue()Ljava/lang/Object;

    move-result-object p1

    move-object v2, p1

    check-cast v2, Ljava/lang/Boolean;

    :cond_11c
    sget-object p1, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;

    invoke-static {v2, p1}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_141

    .line 1145
    iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment$i;->a:Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;

    invoke-static {p1}, Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;->d(Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;)Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;

    move-result-object p1

    .line 10149
    iget-object p1, p1, Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;->c:Lcom/imo/android/imoim/feeds/ui/vhadapter/a;

    .line 1145
    new-instance v0, Lcom/imo/android/imoim/feeds/ui/home/FooterVBridge$a;

    invoke-direct {v0}, Lcom/imo/android/imoim/feeds/ui/home/FooterVBridge$a;-><init>()V

    invoke-virtual {p1, v0}, Lcom/imo/android/imoim/feeds/ui/vhadapter/a;->a(Ljava/lang/Object;)V

    .line 1146
    iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment$i;->a:Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;

    sget v0, Lcom/masala/share/b$a;->refresh_layout:I

    invoke-virtual {p1, v0}, Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;->a(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Lcom/imo/android/imoim/feeds/ui/views/refresh/MaterialRefreshLayout;

    invoke-virtual {p1, v3}, Lcom/imo/android/imoim/feeds/ui/views/refresh/MaterialRefreshLayout;->setLoadMore(Z)V

    .line 1148
    :cond_141
    iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment$i;->a:Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;

    invoke-static {p1}, Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;->d(Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;)Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;

    move-result-object v0

    .line 11149
    iget-object v0, v0, Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;->c:Lcom/imo/android/imoim/feeds/ui/vhadapter/a;

    .line 1148
    invoke-virtual {v0}, Lcom/imo/android/imoim/feeds/ui/vhadapter/a;->b()I

    move-result v0

    invoke-static {p1, v0}, Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;->a(Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;I)V

    goto :goto_164

    .line 1123
    :cond_151
    new-instance p1, Lkotlin/TypeCastException;

    const-string v0, "null cannot be cast to non-null type kotlin.collections.List<kotlin.Any>"

    invoke-direct {p1, v0}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V

    throw p1

    .line 1150
    :cond_159
    iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment$i;->a:Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;

    invoke-static {p1}, Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;->d(Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;)Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;

    move-result-object p1

    .line 12149
    iget-object p1, p1, Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;->c:Lcom/imo/android/imoim/feeds/ui/vhadapter/a;

    .line 1150
    invoke-virtual {p1}, Lcom/imo/android/imoim/feeds/ui/vhadapter/a;->a()V

    .line 1152
    :goto_164
    iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment$i;->a:Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;

    sget v0, Lcom/masala/share/b$a;->refresh_layout:I

    invoke-virtual {p1, v0}, Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;->a(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Lcom/imo/android/imoim/feeds/ui/views/refresh/MaterialRefreshLayout;

    invoke-virtual {p1}, Lcom/imo/android/imoim/feeds/ui/views/refresh/MaterialRefreshLayout;->e()V

    .line 1153
    iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment$i;->a:Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;

    sget v0, Lcom/masala/share/b$a;->refresh_layout:I

    invoke-virtual {p1, v0}, Lcom/imo/android/imoim/feeds/ui/recommend/PopularUserFragment;->a(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Lcom/imo/android/imoim/feeds/ui/views/refresh/MaterialRefreshLayout;

    invoke-virtual {p1}, Lcom/imo/android/imoim/feeds/ui/views/refresh/MaterialRefreshLayout;->f()V

    return-void
.end method