RecommendUserFragment$g.smali

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

# interfaces
.implements Lcom/imo/android/imoim/feeds/ui/views/refresh/c;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment;
.end annotation

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


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


# direct methods
.method constructor <init>(Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment;)V
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()V"
        }
    .end annotation

    .line 331
    iput-object p1, p0, Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment$g;->a:Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment;

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

    return-void
.end method


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

    const-string v0, "RecommendUserFragment"

    const-string v1, "Refresh or loadMore end!"

    .line 333
    invoke-static {v0, v1}, Lsg/bigo/log/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    return-void
.end method

.method public final a(Lcom/imo/android/imoim/feeds/ui/views/refresh/MaterialRefreshLayout;)V
    .registers 8

    const-string p1, "RecommendUserFragment"

    const-string v0, "LoadMore!"

    .line 349
    invoke-static {p1, v0}, Lsg/bigo/log/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 350
    iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment$g;->a:Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment;

    invoke-static {p1}, Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment;->g(Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment;)Z

    move-result p1

    if-eqz p1, :cond_10

    return-void

    .line 353
    :cond_10
    iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment$g;->a:Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment;

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

    move-result-object p1

    const/4 v0, -0x1

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

    .line 354
    iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment$g;->a:Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment;

    invoke-static {p1}, Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment;->h(Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment;)Ljava/lang/Integer;

    move-result-object p1

    if-nez p1, :cond_24

    const/4 p1, 0x0

    goto :goto_33

    :cond_24
    iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment$g;->a:Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment;

    invoke-static {p1}, Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment;->h(Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment;)Ljava/lang/Integer;

    move-result-object p1

    if-nez p1, :cond_2f

    invoke-static {}, Lkotlin/f/b/o;->a()V

    :cond_2f
    invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I

    move-result p1

    .line 355
    :goto_33
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment$g;->a:Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment;

    invoke-static {v0}, Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment;->i(Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment;)Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/RecommendUserViewModel;

    move-result-object v0

    .line 2111
    iget-boolean v1, v0, Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/RecommendUserViewModel;->j:Z

    if-nez v1, :cond_5d

    const/4 v1, 0x1

    .line 2114
    iput-boolean v1, v0, Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/RecommendUserViewModel;->j:Z

    .line 2115
    iget-object v1, v0, Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/RecommendUserViewModel;->c:Lcom/imo/android/imoim/feeds/ui/recommend/a/e;

    iget-boolean v2, v0, Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/RecommendUserViewModel;->f:Z

    iget v3, v0, Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/RecommendUserViewModel;->d:I

    const/4 v4, 0x2

    sget-object v5, Lcom/masala/share/uid/Uid;->b:Lcom/masala/share/uid/Uid$a;

    invoke-static {p1}, Lcom/masala/share/uid/Uid$a;->a(I)Lcom/masala/share/uid/Uid;

    move-result-object p1

    invoke-virtual {v1, v2, v3, v4, p1}, Lcom/imo/android/imoim/feeds/ui/recommend/a/e;->a(ZIILcom/masala/share/uid/Uid;)Landroidx/lifecycle/LiveData;

    move-result-object p1

    .line 2116
    iget-object v1, v0, Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/RecommendUserViewModel;->b:Landroidx/lifecycle/MediatorLiveData;

    new-instance v2, Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/RecommendUserViewModel$loadMore$1;

    invoke-direct {v2, v0, p1}, Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/RecommendUserViewModel$loadMore$1;-><init>(Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/RecommendUserViewModel;Landroidx/lifecycle/LiveData;)V

    check-cast v2, Landroidx/lifecycle/Observer;

    invoke-virtual {v1, p1, v2}, Landroidx/lifecycle/MediatorLiveData;->addSource(Landroidx/lifecycle/LiveData;Landroidx/lifecycle/Observer;)V

    :cond_5d
    return-void
.end method

.method public final b(Lcom/imo/android/imoim/feeds/ui/views/refresh/MaterialRefreshLayout;)V
    .registers 3

    const-string p1, "RecommendUserFragment"

    const-string v0, "onRefresh!"

    .line 337
    invoke-static {p1, v0}, Lsg/bigo/log/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 338
    iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment$g;->a:Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment;

    invoke-static {p1}, Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment;->g(Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment;)Z

    move-result p1

    if-eqz p1, :cond_10

    return-void

    .line 341
    :cond_10
    iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment$g;->a:Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment;

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

    move-result-object p1

    const/4 v0, -0x1

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

    .line 342
    iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment$g;->a:Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment;

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

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

    move-result-object p1

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

    const/4 v0, 0x1

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

    .line 343
    iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment$g;->a:Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment;

    invoke-static {p1}, Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment;->h(Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment;)Ljava/lang/Integer;

    move-result-object p1

    if-nez p1, :cond_32

    const/4 p1, 0x0

    goto :goto_41

    :cond_32
    iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment$g;->a:Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment;

    invoke-static {p1}, Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment;->h(Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment;)Ljava/lang/Integer;

    move-result-object p1

    if-nez p1, :cond_3d

    invoke-static {}, Lkotlin/f/b/o;->a()V

    :cond_3d
    invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I

    move-result p1

    .line 344
    :goto_41
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment$g;->a:Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment;

    invoke-static {v0}, Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment;->i(Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment;)Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/RecommendUserViewModel;

    move-result-object v0

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

    .line 345
    iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment$g;->a:Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment;

    invoke-static {p1}, Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment;->c(Lcom/imo/android/imoim/feeds/ui/recommend/RecommendUserFragment;)Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/HotRecommendEntryVM;

    move-result-object p1

    if-eqz p1, :cond_55

    invoke-virtual {p1}, Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/HotRecommendEntryVM;->b()V

    :cond_55
    return-void
.end method