NewsFragment.smali
.class public Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;
.super Lcom/imo/android/imoim/feeds/ui/home/base/BaseVideoFragment;
.source "SourceFile"
# interfaces
.implements Lcom/imo/android/imoim/feeds/ui/home/follow/e;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/imo/android/imoim/feeds/ui/home/base/BaseVideoFragment<",
"Lcom/imo/android/imoim/feeds/ui/home/follow/e;",
"Lcom/imo/android/imoim/feeds/ui/home/news/a;",
">;",
"Lcom/imo/android/imoim/feeds/ui/home/follow/e;"
}
.end annotation
# instance fields
.field private c:Lcom/masala/share/utils/b/f;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/masala/share/utils/b/f<",
"Lcom/masala/share/proto/model/VideoSimpleItem;",
">;"
}
.end annotation
.end field
.field private w:Lcom/masala/share/utils/b/a;
.field private x:Lcom/imo/android/imoim/feeds/ui/home/news/NewVHBridge;
.field private y:Lcom/masala/share/utils/a/a/b;
# direct methods
.method public constructor <init>()V
.registers 1
.line 68
invoke-direct {p0}, Lcom/imo/android/imoim/feeds/ui/home/base/BaseVideoFragment;-><init>()V
return-void
.end method
.method static synthetic a(Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;)Lcom/masala/share/utils/a/a/b;
.registers 1
.line 68
iget-object p0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->y:Lcom/masala/share/utils/a/a/b;
return-object p0
.end method
.method static synthetic a(Lcom/imo/android/imoim/feeds/ui/views/refresh/MaterialRefreshLayout;)V
.registers 3
.line 15370
iget-boolean p0, p0, Lcom/imo/android/imoim/feeds/ui/views/refresh/MaterialRefreshLayout;->g:Z
if-nez p0, :cond_17
.line 14488
sget-byte p0, Lcom/masala/share/stat/n;->j:B
invoke-static {p0}, Lcom/masala/share/stat/n;->a(I)Lcom/masala/share/stat/n;
move-result-object p0
sget-object v0, Lcom/masala/share/stat/n;->H:Ljava/lang/String;
sget-object v1, Lcom/masala/share/stat/n;->V:Ljava/lang/String;
.line 14489
invoke-virtual {p0, v0, v1}, Lcom/masala/share/stat/n;->with(Ljava/lang/String;Ljava/lang/Object;)Lcom/masala/share/stat/LikeBaseReporter;
move-result-object p0
check-cast p0, Lcom/masala/share/stat/n;
.line 14490
invoke-virtual {p0}, Lcom/masala/share/stat/n;->report()V
:cond_17
return-void
.end method
.method private a(Ljava/util/List;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/masala/share/proto/model/VideoSimpleItem;",
">;)V"
}
.end annotation
.line 433
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "setData items size : "
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
const-string v1, "NewsFragment"
invoke-static {v1, v0}, Lsg/bigo/log/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
.line 434
invoke-static {p1}, Lsg/bigo/common/o;->a(Ljava/util/Collection;)Z
move-result v0
if-nez v0, :cond_23
.line 435
iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->y:Lcom/masala/share/utils/a/a/b;
const/4 v1, -0x1
.line 13051
invoke-virtual {v0, v1}, Lcom/masala/share/utils/a/a/b;->a(I)V
.line 437
:cond_23
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
.line 438
invoke-interface {v0, p1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
.line 439
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->j:Lcom/imo/android/imoim/feeds/ui/vhadapter/a;
invoke-virtual {p1, v0}, Lcom/imo/android/imoim/feeds/ui/vhadapter/a;->a(Ljava/util/List;)V
return-void
.end method
.method static synthetic b(Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;)Lsg/bigo/core/mvp/presenter/a;
.registers 1
.line 68
iget-object p0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->v:Lsg/bigo/core/mvp/presenter/a;
return-object p0
.end method
.method static synthetic c(Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;)Lcom/masala/share/stat/p;
.registers 1
.line 68
iget-object p0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->o:Lcom/masala/share/stat/p;
return-object p0
.end method
.method static synthetic d(Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;)Lcom/masala/share/stat/p;
.registers 1
.line 68
iget-object p0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->o:Lcom/masala/share/stat/p;
return-object p0
.end method
.method static synthetic e(Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;)Lcom/masala/share/stat/p;
.registers 1
.line 68
iget-object p0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->o:Lcom/masala/share/stat/p;
return-object p0
.end method
.method static synthetic f(Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;)Lsg/bigo/core/mvp/presenter/a;
.registers 1
.line 68
iget-object p0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->v:Lsg/bigo/core/mvp/presenter/a;
return-object p0
.end method
.method static synthetic g(Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;)Lcom/imo/android/imoim/feeds/ui/vhadapter/a;
.registers 1
.line 68
iget-object p0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->j:Lcom/imo/android/imoim/feeds/ui/vhadapter/a;
return-object p0
.end method
.method static synthetic h(Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;)Lcom/imo/android/imoim/feeds/ui/vhadapter/a;
.registers 1
.line 68
iget-object p0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->j:Lcom/imo/android/imoim/feeds/ui/vhadapter/a;
return-object p0
.end method
.method static synthetic i(Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;)Lcom/masala/share/utils/b/f;
.registers 1
.line 68
iget-object p0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->c:Lcom/masala/share/utils/b/f;
return-object p0
.end method
.method static synthetic j(Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;)Lcom/masala/share/utils/b/a;
.registers 1
.line 68
iget-object p0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->w:Lcom/masala/share/utils/b/a;
return-object p0
.end method
.method static synthetic k(Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;)V
.registers 1
.line 68
invoke-direct {p0}, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->r()V
return-void
.end method
.method static synthetic l(Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;)Lsg/bigo/core/mvp/presenter/a;
.registers 1
.line 68
iget-object p0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->v:Lsg/bigo/core/mvp/presenter/a;
return-object p0
.end method
.method public static synthetic lambda$gSXp9FrEsEzL-0CJ66xHXstPeAY(Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;)V
.registers 1
invoke-direct {p0}, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->r()V
return-void
.end method
.method static synthetic m(Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;)I
.registers 1
.line 68
iget p0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->g:I
return p0
.end method
.method static synthetic n(Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;)Z
.registers 1
.line 16199
iget-object p0, p0, Lcom/imo/android/imoim/feeds/ui/home/base/BaseVideoFragment;->l:Landroidx/recyclerview/widget/RecyclerView;
invoke-static {p0}, Lcom/imo/android/imoim/feeds/ui/utils/rv/a;->d(Landroidx/recyclerview/widget/RecyclerView;)Z
move-result p0
return p0
.end method
.method public static o()Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;
.registers 4
.line 80
new-instance v0, Landroid/os/Bundle;
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
.line 81
new-instance v1, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;
invoke-direct {v1}, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;-><init>()V
const-string v2, "lazy_load"
const/4 v3, 0x1
.line 82
invoke-virtual {v0, v2, v3}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V
.line 83
invoke-virtual {v1, v0}, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->setArguments(Landroid/os/Bundle;)V
return-object v1
.end method
.method static synthetic o(Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;)Lsg/bigo/core/mvp/presenter/a;
.registers 1
.line 68
iget-object p0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->v:Lsg/bigo/core/mvp/presenter/a;
return-object p0
.end method
.method static synthetic p(Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;)V
.registers 1
.line 68
invoke-virtual {p0}, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->B()V
return-void
.end method
.method static synthetic q(Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;)V
.registers 1
.line 68
invoke-virtual {p0}, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->C()V
return-void
.end method
.method private static q()Z
.registers 1
.line 116
sget-boolean v0, Lcom/masala/share/utils/x;->a:Z
if-nez v0, :cond_c
invoke-static {}, Lcom/imo/android/imoim/feeds/develop/a;->j()Z
move-result v0
if-eqz v0, :cond_c
const/4 v0, 0x1
return v0
:cond_c
const/4 v0, 0x0
return v0
.end method
.method private r()V
.registers 10
const-string v0, "NewsFragment"
const-string v1, "checkExposeItem"
.line 300
invoke-static {v0, v1}, Lsg/bigo/log/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
.line 301
iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->k:Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
instance-of v0, v0, Landroidx/recyclerview/widget/LinearLayoutManager;
if-eqz v0, :cond_6b
.line 302
iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->k:Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
check-cast v0, Landroidx/recyclerview/widget/LinearLayoutManager;
.line 303
invoke-virtual {v0}, Landroidx/recyclerview/widget/LinearLayoutManager;->findFirstVisibleItemPosition()I
move-result v1
.line 304
invoke-virtual {v0}, Landroidx/recyclerview/widget/LinearLayoutManager;->findLastVisibleItemPosition()I
move-result v0
.line 306
new-instance v2, Landroid/graphics/Rect;
invoke-direct {v2}, Landroid/graphics/Rect;-><init>()V
:goto_1e
if-gt v1, v0, :cond_6b
.line 308
iget-object v3, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->l:Landroidx/recyclerview/widget/RecyclerView;
invoke-virtual {v3, v1}, Landroidx/recyclerview/widget/RecyclerView;->findViewHolderForLayoutPosition(I)Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
move-result-object v3
.line 309
instance-of v4, v3, Lcom/imo/android/imoim/feeds/ui/home/news/NewVHBridge$NewsVHolder;
if-eqz v4, :cond_68
.line 310
check-cast v3, Lcom/imo/android/imoim/feeds/ui/home/news/NewVHBridge$NewsVHolder;
.line 311
iget-object v4, v3, Lcom/imo/android/imoim/feeds/ui/home/news/NewVHBridge$NewsVHolder;->itemView:Landroid/view/View;
invoke-virtual {v4, v2}, Landroid/view/View;->getGlobalVisibleRect(Landroid/graphics/Rect;)Z
.line 312
invoke-virtual {v2}, Landroid/graphics/Rect;->height()I
move-result v4
if-lez v4, :cond_68
.line 313
iget-object v5, v3, Lcom/imo/android/imoim/feeds/ui/home/news/NewVHBridge$NewsVHolder;->itemView:Landroid/view/View;
invoke-virtual {v5}, Landroid/view/View;->getHeight()I
move-result v5
int-to-double v5, v5
const-wide v7, 0x3fe6666666666666L # 0.7
invoke-static {v5, v6}, Ljava/lang/Double;->isNaN(D)Z
mul-double v5, v5, v7
int-to-double v7, v4
cmpg-double v4, v5, v7
if-gtz v4, :cond_68
.line 5042
iget-object v4, v3, Lcom/imo/android/imoim/feeds/ui/vhadapter/VHolder;->g:Ljava/lang/Object;
if-eqz v4, :cond_68
.line 6042
iget-object v4, v3, Lcom/imo/android/imoim/feeds/ui/vhadapter/VHolder;->g:Ljava/lang/Object;
.line 313
check-cast v4, Lcom/masala/share/proto/model/VideoSimpleItem;
invoke-virtual {v4}, Lcom/masala/share/proto/model/VideoSimpleItem;->isStickTopVideo()Z
move-result v4
if-eqz v4, :cond_68
.line 314
iget-object v4, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->v:Lsg/bigo/core/mvp/presenter/a;
check-cast v4, Lcom/imo/android/imoim/feeds/ui/home/news/a;
.line 7042
iget-object v3, v3, Lcom/imo/android/imoim/feeds/ui/vhadapter/VHolder;->g:Ljava/lang/Object;
.line 314
check-cast v3, Lcom/masala/share/proto/model/VideoSimpleItem;
iget-wide v5, v3, Lcom/masala/share/proto/model/VideoSimpleItem;->post_id:J
invoke-virtual {v4, v5, v6}, Lcom/imo/android/imoim/feeds/ui/home/news/a;->a(J)V
:cond_68
add-int/lit8 v1, v1, 0x1
goto :goto_1e
:cond_6b
return-void
.end method
# virtual methods
.method public final P_()V
.registers 1
return-void
.end method
.method public final a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;)Landroid/view/View;
.registers 5
.line 1049
invoke-virtual {p0}, Lcom/imo/android/imoim/feeds/ui/AppBaseFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object p1
check-cast p1, Lcom/imo/android/imoim/feeds/ui/AppBaseActivity;
const v0, 0x7e090022
const/4 v1, 0x0
.line 108
invoke-static {p1, v0, p2, v1}, Lsg/bigo/mobile/android/aab/c/b;->a(Landroid/content/Context;ILandroid/view/ViewGroup;Z)Landroid/view/View;
move-result-object p1
return-object p1
.end method
.method public final a(I)V
.registers 6
.line 341
iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->i:Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;
if-eqz v0, :cond_2b
iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->x:Lcom/imo/android/imoim/feeds/ui/home/news/NewVHBridge;
if-nez v0, :cond_9
goto :goto_2b
:cond_9
const/4 v0, -0x1
const/4 v1, 0x0
.line 344
:goto_b
iget-object v2, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->i:Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;
invoke-virtual {v2}, Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;->getItemCount()I
move-result v2
if-ge v1, v2, :cond_26
.line 345
iget-object v2, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->i:Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;
invoke-virtual {v2, v1}, Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;->getItemViewType(I)I
move-result v2
iget-object v3, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->x:Lcom/imo/android/imoim/feeds/ui/home/news/NewVHBridge;
.line 8041
iget v3, v3, Lcom/imo/android/imoim/feeds/ui/vhadapter/c;->h:I
if-ne v2, v3, :cond_21
add-int/lit8 v0, v0, 0x1
:cond_21
if-eq v0, p1, :cond_26
add-int/lit8 v1, v1, 0x1
goto :goto_b
.line 352
:cond_26
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->k:Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
invoke-virtual {p1, v1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->scrollToPosition(I)V
:cond_2b
:goto_2b
return-void
.end method
.method public final a(IZ)V
.registers 4
.line 357
invoke-virtual {p0}, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->d()Z
move-result p1
if-eqz p1, :cond_7
return-void
:cond_7
if-nez p2, :cond_f
.line 361
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->m:Lcom/imo/android/imoim/feeds/ui/views/refresh/MaterialRefreshLayout;
.line 8656
iget-boolean p1, p1, Lcom/imo/android/imoim/feeds/ui/views/refresh/MaterialRefreshLayout;->e:Z
if-eqz p1, :cond_28
.line 362
:cond_f
invoke-virtual {p0}, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->getContext()Landroid/content/Context;
move-result-object p1
if-eqz p1, :cond_28
.line 363
invoke-static {}, Lcom/imo/android/imoim/util/ei;->I()Z
move-result p1
if-nez p1, :cond_28
const p1, 0x7e0b0094
const/4 p2, 0x0
new-array v0, p2, [Ljava/lang/Object;
.line 364
invoke-static {p1, v0}, Lsg/bigo/mobile/android/aab/c/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
.line 9026
invoke-static {p1, p2}, Lsg/bigo/common/ae;->a(Ljava/lang/CharSequence;I)V
.line 367
:cond_28
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->m:Lcom/imo/android/imoim/feeds/ui/views/refresh/MaterialRefreshLayout;
invoke-virtual {p1}, Lcom/imo/android/imoim/feeds/ui/views/refresh/MaterialRefreshLayout;->e()V
.line 368
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->m:Lcom/imo/android/imoim/feeds/ui/views/refresh/MaterialRefreshLayout;
invoke-virtual {p1}, Lcom/imo/android/imoim/feeds/ui/views/refresh/MaterialRefreshLayout;->f()V
.line 369
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->i:Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;
invoke-virtual {p1}, Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;->getItemCount()I
move-result p1
if-nez p1, :cond_40
.line 370
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->y:Lcom/masala/share/utils/a/a/b;
const/4 p2, 0x1
.line 9047
invoke-virtual {p1, p2}, Lcom/masala/share/utils/a/a/b;->a(I)V
:cond_40
return-void
.end method
.method public final a(Landroid/os/Bundle;)V
.registers 4
.line 102
invoke-super {p0, p1}, Lcom/imo/android/imoim/feeds/ui/home/base/BaseVideoFragment;->a(Landroid/os/Bundle;)V
.line 103
new-instance p1, Lcom/imo/android/imoim/feeds/ui/home/news/a;
invoke-virtual {p0}, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->A()Ljava/util/List;
move-result-object v0
iget-object v1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->s:Ljava/lang/String;
invoke-direct {p1, p0, v0, v1}, Lcom/imo/android/imoim/feeds/ui/home/news/a;-><init>(Lcom/imo/android/imoim/feeds/ui/home/follow/e;Ljava/util/List;Ljava/lang/String;)V
iput-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->v:Lsg/bigo/core/mvp/presenter/a;
return-void
.end method
.method public final bridge synthetic a(Ljava/lang/Object;)V
.registers 5
.line 68
check-cast p1, Lcom/masala/share/proto/model/VideoSimpleItem;
.line 13476
iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->i:Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;
if-eqz v0, :cond_11
.line 13477
iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->j:Lcom/imo/android/imoim/feeds/ui/vhadapter/a;
const/4 v1, 0x1
new-array v1, v1, [Lcom/masala/share/proto/model/VideoSimpleItem;
const/4 v2, 0x0
aput-object p1, v1, v2
invoke-virtual {v0, v1}, Lcom/imo/android/imoim/feeds/ui/vhadapter/a;->a([Ljava/lang/Object;)V
:cond_11
return-void
.end method
.method public final synthetic a(Ljava/lang/Object;I)V
.registers 4
.line 68
check-cast p1, Lcom/masala/share/proto/model/VideoSimpleItem;
.line 14468
iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->i:Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;
if-eqz v0, :cond_10
.line 14469
iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->j:Lcom/imo/android/imoim/feeds/ui/vhadapter/a;
invoke-virtual {v0, p2, p1}, Lcom/imo/android/imoim/feeds/ui/vhadapter/a;->a(ILjava/lang/Object;)V
.line 14470
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->k:Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
invoke-virtual {p1, p2}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->scrollToPosition(I)V
:cond_10
return-void
.end method
.method public final varargs a(Ljava/util/List;[Lcom/imo/android/imoim/feeds/ui/vhadapter/b;)V
.registers 9
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/masala/share/proto/model/VideoSimpleItem;",
">;[",
"Lcom/imo/android/imoim/feeds/ui/vhadapter/b;",
")V"
}
.end annotation
.line 454
iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->i:Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;
if-nez v0, :cond_5
return-void
.line 457
:cond_5
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v0
const/4 v1, 0x1
if-le v0, v1, :cond_18
.line 458
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->v:Lsg/bigo/core/mvp/presenter/a;
check-cast p1, Lcom/imo/android/imoim/feeds/ui/home/news/a;
invoke-virtual {p1}, Lcom/imo/android/imoim/feeds/ui/home/news/a;->d()Ljava/util/List;
move-result-object p1
invoke-direct {p0, p1}, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->a(Ljava/util/List;)V
return-void
.line 459
:cond_18
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v0
if-ne v0, v1, :cond_31
.line 460
array-length v0, p2
const/4 v1, 0x0
const/4 v2, 0x0
:goto_21
if-ge v2, v0, :cond_31
aget-object v3, p2, v2
.line 461
iget-object v4, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->j:Lcom/imo/android/imoim/feeds/ui/vhadapter/a;
invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v5
invoke-virtual {v4, v5, v3}, Lcom/imo/android/imoim/feeds/ui/vhadapter/a;->a(Ljava/lang/Object;Lcom/imo/android/imoim/feeds/ui/vhadapter/b;)V
add-int/lit8 v2, v2, 0x1
goto :goto_21
:cond_31
return-void
.end method
.method public final a(Z)V
.registers 4
.line 183
invoke-super {p0, p1}, Lcom/imo/android/imoim/feeds/ui/home/base/BaseVideoFragment;->a(Z)V
if-eqz p1, :cond_15
.line 185
invoke-static {}, Lcom/masala/share/stat/ad;->a()Lcom/masala/share/stat/ad;
move-result-object v0
const-string v1, "m09"
invoke-virtual {v0, v1}, Lcom/masala/share/stat/ad;->a(Ljava/lang/String;)V
.line 186
sget-object v0, Lcom/masala/share/stat/u;->a:Lcom/masala/share/stat/u;
const-string v0, "news"
invoke-static {v0}, Lcom/masala/share/stat/u;->a(Ljava/lang/String;)V
:cond_15
if-eqz p1, :cond_1d
.line 189
iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->w:Lcom/masala/share/utils/b/a;
invoke-virtual {v0}, Lcom/masala/share/utils/b/a;->b()V
goto :goto_28
.line 191
:cond_1d
iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->w:Lcom/masala/share/utils/b/a;
.line 1182
iget-object v0, v0, Lcom/masala/share/utils/b/a;->a:Ljava/lang/Runnable;
.line 2042
invoke-static {}, Lsg/bigo/common/ac$a;->a()Landroid/os/Handler;
move-result-object v1
invoke-virtual {v1, v0}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V
:goto_28
if-eqz p1, :cond_30
const/16 p1, 0x64
.line 194
invoke-virtual {p0, p1}, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->b(I)V
return-void
.line 196
:cond_30
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->n:Lcom/masala/share/stat/q;
invoke-virtual {p1}, Lcom/masala/share/stat/q;->b()V
return-void
.end method
.method public final a(ZI)V
.registers 5
.line 376
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "onVideoPullSuccess isReload : "
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
const-string p1, ", newCount : "
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
const-string v0, "NewsFragment"
invoke-static {v0, p1}, Lsg/bigo/log/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
.line 377
invoke-virtual {p0}, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->d()Z
move-result p1
if-eqz p1, :cond_22
return-void
.line 380
:cond_22
invoke-virtual {p0, p2}, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->c(I)V
.line 381
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->n:Lcom/masala/share/stat/q;
if-eqz p1, :cond_2e
.line 382
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->n:Lcom/masala/share/stat/q;
invoke-virtual {p1}, Lcom/masala/share/stat/q;->b()V
.line 9139
:cond_2e
iget-boolean p1, p0, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->e:Z
if-eqz p1, :cond_37
const/16 p1, 0x64
.line 385
invoke-virtual {p0, p1}, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->b(I)V
.line 387
:cond_37
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->m:Lcom/imo/android/imoim/feeds/ui/views/refresh/MaterialRefreshLayout;
invoke-virtual {p1}, Lcom/imo/android/imoim/feeds/ui/views/refresh/MaterialRefreshLayout;->e()V
.line 388
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->m:Lcom/imo/android/imoim/feeds/ui/views/refresh/MaterialRefreshLayout;
invoke-virtual {p1}, Lcom/imo/android/imoim/feeds/ui/views/refresh/MaterialRefreshLayout;->f()V
.line 389
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->i:Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;
invoke-virtual {p1}, Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;->getItemCount()I
move-result p1
if-nez p1, :cond_56
.line 390
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->m:Lcom/imo/android/imoim/feeds/ui/views/refresh/MaterialRefreshLayout;
const/4 p2, 0x0
invoke-virtual {p1, p2}, Lcom/imo/android/imoim/feeds/ui/views/refresh/MaterialRefreshLayout;->setLoadMore(Z)V
.line 391
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->y:Lcom/masala/share/utils/a/a/b;
const/4 p2, 0x2
.line 10043
invoke-virtual {p1, p2}, Lcom/masala/share/utils/a/a/b;->a(I)V
return-void
.line 394
:cond_56
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->y:Lcom/masala/share/utils/a/a/b;
const/4 p2, -0x1
.line 10051
invoke-virtual {p1, p2}, Lcom/masala/share/utils/a/a/b;->a(I)V
return-void
.end method
.method public final a(ZLjava/util/List;)V
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(Z",
"Ljava/util/List<",
"Lcom/masala/share/proto/model/VideoSimpleItem;",
">;)V"
}
.end annotation
.line 405
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "onVideoItemLoad isRefresh : "
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-interface {p2}, Ljava/util/List;->size()I
move-result v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v1, ", items size : "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-interface {p2}, Ljava/util/List;->size()I
move-result v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
const-string v1, "NewsFragment"
invoke-static {v1, v0}, Lsg/bigo/log/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
.line 406
iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->i:Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;
if-nez v0, :cond_28
return-void
:cond_28
const/4 v0, -0x1
if-eqz p1, :cond_51
.line 410
sget-object p1, Lcom/masala/share/stat/h;->g:Lcom/masala/share/stat/h;
invoke-virtual {p1, p2}, Lcom/masala/share/stat/h;->a(Ljava/util/List;)V
.line 411
invoke-direct {p0, p2}, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->a(Ljava/util/List;)V
.line 412
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->c:Lcom/masala/share/utils/b/f;
const/4 p2, 0x0
.line 10072
iput-object p2, p1, Lcom/masala/share/utils/b/f;->e:Ljava/util/List;
.line 10139
iget-boolean p1, p0, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->e:Z
if-eqz p1, :cond_41
.line 415
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->w:Lcom/masala/share/utils/b/a;
invoke-virtual {p1}, Lcom/masala/share/utils/b/a;->b()V
:cond_41
const/16 p1, 0x64
.line 417
invoke-virtual {p0, p1}, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->b(I)V
.line 418
new-instance p1, Lcom/imo/android/imoim/feeds/ui/home/news/-$$Lambda$NewsFragment$gSXp9FrEsEzL-0CJ66xHXstPeAY;
invoke-direct {p1, p0}, Lcom/imo/android/imoim/feeds/ui/home/news/-$$Lambda$NewsFragment$gSXp9FrEsEzL-0CJ66xHXstPeAY;-><init>(Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;)V
const-wide/16 v1, 0x40
invoke-static {p1, v1, v2}, Lsg/bigo/common/ac;->a(Ljava/lang/Runnable;J)V
goto :goto_8e
.line 421
:cond_51
invoke-virtual {p0}, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->z()Z
move-result p1
if-eqz p1, :cond_63
invoke-interface {p2}, Ljava/util/List;->size()I
move-result p1
if-lez p1, :cond_63
.line 422
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->j:Lcom/imo/android/imoim/feeds/ui/vhadapter/a;
const/4 v2, 0x1
invoke-virtual {p1, v2}, Lcom/imo/android/imoim/feeds/ui/vhadapter/a;->a(I)V
.line 10443
:cond_63
invoke-static {p2}, Lsg/bigo/common/o;->a(Ljava/util/Collection;)Z
move-result p1
if-eqz p1, :cond_6f
const-string p1, "appendData size : 0"
.line 10444
invoke-static {v1, p1}, Lsg/bigo/log/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
goto :goto_8e
.line 10447
:cond_6f
new-instance p1, Ljava/lang/StringBuilder;
const-string v2, "appendData size : "
invoke-direct {p1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-interface {p2}, Ljava/util/List;->size()I
move-result v2
invoke-virtual {p1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-static {v1, p1}, Lsg/bigo/log/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
.line 10448
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->y:Lcom/masala/share/utils/a/a/b;
.line 11051
invoke-virtual {p1, v0}, Lcom/masala/share/utils/a/a/b;->a(I)V
.line 10449
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->j:Lcom/imo/android/imoim/feeds/ui/vhadapter/a;
invoke-virtual {p1, p2}, Lcom/imo/android/imoim/feeds/ui/vhadapter/a;->b(Ljava/util/List;)V
.line 427
:goto_8e
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->i:Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;
invoke-virtual {p1}, Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;->getItemCount()I
move-result p1
if-lez p1, :cond_9b
.line 428
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->y:Lcom/masala/share/utils/a/a/b;
.line 12051
invoke-virtual {p1, v0}, Lcom/masala/share/utils/a/a/b;->a(I)V
:cond_9b
return-void
.end method
.method public final b(Landroid/os/Bundle;)V
.registers 6
.line 204
invoke-virtual {p0}, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->getView()Landroid/view/View;
move-result-object v0
if-nez v0, :cond_7
return-void
:cond_7
const v1, 0x7e080075
.line 206
invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v1
iput-object v1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->p:Landroid/view/View;
.line 207
invoke-super {p0, p1}, Lcom/imo/android/imoim/feeds/ui/home/base/BaseVideoFragment;->b(Landroid/os/Bundle;)V
const p1, 0x7e080134
.line 208
invoke-virtual {v0, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object p1
check-cast p1, Lcom/imo/android/imoim/feeds/ui/views/refresh/MaterialRefreshLayout;
iput-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->m:Lcom/imo/android/imoim/feeds/ui/views/refresh/MaterialRefreshLayout;
const p1, 0x7e080132
.line 209
invoke-virtual {v0, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object p1
check-cast p1, Landroidx/recyclerview/widget/RecyclerView;
iput-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->l:Landroidx/recyclerview/widget/RecyclerView;
.line 2323
new-instance p1, Lcom/masala/share/utils/a/a/b$a;
invoke-direct {p1}, Lcom/masala/share/utils/a/a/b$a;-><init>()V
new-instance v0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment$4;
invoke-direct {v0, p0}, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment$4;-><init>(Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;)V
.line 2324
invoke-virtual {p1, v0}, Lcom/masala/share/utils/a/a/b$a;->a(Lcom/masala/share/utils/a/a/a;)Lcom/masala/share/utils/a/a/b$a;
move-result-object p1
new-instance v0, Lcom/masala/share/utils/a/a/c;
const v1, 0x7e090063
invoke-direct {v0, v1}, Lcom/masala/share/utils/a/a/c;-><init>(I)V
.line 2330
invoke-virtual {p1, v0}, Lcom/masala/share/utils/a/a/b$a;->a(Lcom/masala/share/utils/a/a/a;)Lcom/masala/share/utils/a/a/b$a;
move-result-object p1
iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->l:Landroidx/recyclerview/widget/RecyclerView;
.line 3184
iput-object v0, p1, Lcom/masala/share/utils/a/a/b$a;->b:Landroid/view/View;
.line 2332
invoke-virtual {p1}, Lcom/masala/share/utils/a/a/b$a;->a()Lcom/masala/share/utils/a/a/b;
move-result-object p1
iput-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->y:Lcom/masala/share/utils/a/a/b;
.line 211
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->m: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 212
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->m:Lcom/imo/android/imoim/feeds/ui/views/refresh/MaterialRefreshLayout;
const/4 v1, 0x0
invoke-virtual {p1, v1}, Lcom/imo/android/imoim/feeds/ui/views/refresh/MaterialRefreshLayout;->setLoadMoreRepeatMode(Z)V
.line 213
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->m:Lcom/imo/android/imoim/feeds/ui/views/refresh/MaterialRefreshLayout;
new-instance v2, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment$1;
invoke-direct {v2, p0}, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment$1;-><init>(Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;)V
invoke-virtual {p1, v2}, Lcom/imo/android/imoim/feeds/ui/views/refresh/MaterialRefreshLayout;->setMaterialRefreshListener(Lcom/imo/android/imoim/feeds/ui/views/refresh/c;)V
.line 236
new-instance p1, Lcom/imo/android/imoim/feeds/ui/views/LinearLayoutManagerWrapper;
invoke-virtual {p0}, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->getContext()Landroid/content/Context;
move-result-object v2
invoke-direct {p1, v2, v0, v1}, Lcom/imo/android/imoim/feeds/ui/views/LinearLayoutManagerWrapper;-><init>(Landroid/content/Context;IZ)V
iput-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->k:Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
.line 237
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->l:Landroidx/recyclerview/widget/RecyclerView;
iget-object v1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->k:Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
invoke-virtual {p1, v1}, Landroidx/recyclerview/widget/RecyclerView;->setLayoutManager(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)V
.line 238
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->l:Landroidx/recyclerview/widget/RecyclerView;
invoke-virtual {p1, v0}, Landroidx/recyclerview/widget/RecyclerView;->setHasFixedSize(Z)V
.line 239
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->l:Landroidx/recyclerview/widget/RecyclerView;
const/4 v1, 0x0
invoke-virtual {p1, v1}, Landroidx/recyclerview/widget/RecyclerView;->setItemAnimator(Landroidx/recyclerview/widget/RecyclerView$ItemAnimator;)V
.line 240
new-instance p1, Lcom/imo/android/imoim/feeds/ui/home/news/NewVHBridge;
sget-object v1, Lcom/imo/android/imoim/feeds/ui/home/news/config/a;->a:Lcom/imo/android/imoim/feeds/ui/home/news/config/a;
invoke-static {}, Lcom/imo/android/imoim/feeds/ui/home/news/config/a;->b()Z
move-result v1
invoke-direct {p1, v1}, Lcom/imo/android/imoim/feeds/ui/home/news/NewVHBridge;-><init>(Z)V
iput-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->x:Lcom/imo/android/imoim/feeds/ui/home/news/NewVHBridge;
.line 241
new-instance p1, Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;
invoke-direct {p1}, Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;-><init>()V
iput-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->i:Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;
.line 242
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->i:Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;
.line 4149
iget-object p1, p1, Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;->c:Lcom/imo/android/imoim/feeds/ui/vhadapter/a;
.line 242
iput-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->j:Lcom/imo/android/imoim/feeds/ui/vhadapter/a;
.line 243
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->i:Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;
const-class v1, Lcom/masala/share/proto/model/VideoSimpleItem;
iget-object v2, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->x:Lcom/imo/android/imoim/feeds/ui/home/news/NewVHBridge;
invoke-virtual {p1, v1, v2}, Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;->a(Ljava/lang/Class;Lcom/imo/android/imoim/feeds/ui/vhadapter/c;)V
.line 244
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->i:Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;
const-class v1, Lcom/imo/android/imoim/feeds/ui/home/FooterVBridge$a;
new-instance v2, Lcom/imo/android/imoim/feeds/ui/home/FooterVBridge;
iget-object v3, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->l:Landroidx/recyclerview/widget/RecyclerView;
invoke-direct {v2, v3}, Lcom/imo/android/imoim/feeds/ui/home/FooterVBridge;-><init>(Landroidx/recyclerview/widget/RecyclerView;)V
invoke-virtual {p1, v1, v2}, Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;->a(Ljava/lang/Class;Lcom/imo/android/imoim/feeds/ui/vhadapter/c;)V
.line 245
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->l:Landroidx/recyclerview/widget/RecyclerView;
new-instance v1, Lcom/imo/android/imoim/feeds/ui/views/SpacesItemDecoration;
const-wide/high16 v2, 0x3fe0000000000000L # 0.5
invoke-static {v2, v3}, Lcom/masala/share/utils/l;->a(D)I
move-result v2
int-to-byte v2, v2
const v3, 0x7e050009
.line 246
invoke-static {v3}, Lsg/bigo/mobile/android/aab/c/b;->b(I)I
move-result v3
invoke-direct {v1, v0, v2, v3, v0}, Lcom/imo/android/imoim/feeds/ui/views/SpacesItemDecoration;-><init>(BBII)V
.line 245
invoke-virtual {p1, v1}, Landroidx/recyclerview/widget/RecyclerView;->addItemDecoration(Landroidx/recyclerview/widget/RecyclerView$ItemDecoration;)V
.line 247
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->l:Landroidx/recyclerview/widget/RecyclerView;
iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->i:Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;
invoke-virtual {p1, v0}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V
.line 248
new-instance p1, Lcom/masala/share/stat/q;
iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->l:Landroidx/recyclerview/widget/RecyclerView;
iget-object v1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->k:Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
check-cast v1, Landroidx/recyclerview/widget/LinearLayoutManager;
iget-object v2, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->q:Lcom/imo/android/imoim/feeds/ui/home/f;
const-string v3, "news_list"
invoke-direct {p1, v0, v1, v2, v3}, Lcom/masala/share/stat/q;-><init>(Landroidx/recyclerview/widget/RecyclerView;Landroidx/recyclerview/widget/LinearLayoutManager;Lcom/imo/android/imoim/feeds/ui/home/f;Ljava/lang/String;)V
iput-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->n:Lcom/masala/share/stat/q;
.line 249
new-instance p1, Lcom/masala/share/stat/p;
iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->l:Landroidx/recyclerview/widget/RecyclerView;
iget-object v1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->k:Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
check-cast v1, Landroidx/recyclerview/widget/LinearLayoutManager;
iget-object v2, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->q:Lcom/imo/android/imoim/feeds/ui/home/f;
invoke-direct {p1, v0, v1, v2, v3}, Lcom/masala/share/stat/p;-><init>(Landroidx/recyclerview/widget/RecyclerView;Landroidx/recyclerview/widget/LinearLayoutManager;Lcom/imo/android/imoim/feeds/ui/home/f;Ljava/lang/String;)V
iput-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->o:Lcom/masala/share/stat/p;
.line 250
new-instance p1, Lcom/masala/share/utils/b/f;
iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->l:Landroidx/recyclerview/widget/RecyclerView;
iget-object v1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->k:Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
check-cast v1, Landroidx/recyclerview/widget/LinearLayoutManager;
.line 251
invoke-static {v1}, Lcom/masala/share/utils/b/f;->a(Landroidx/recyclerview/widget/LinearLayoutManager;)Lcom/masala/share/utils/b/d;
move-result-object v1
new-instance v2, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment$2;
invoke-direct {v2, p0}, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment$2;-><init>(Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;)V
const v3, 0x3f28f5c3 # 0.66f
invoke-direct {p1, v0, v1, v2, v3}, Lcom/masala/share/utils/b/f;-><init>(Landroidx/recyclerview/widget/RecyclerView;Lcom/masala/share/utils/b/c;Lcom/masala/share/utils/b/f$a;F)V
iput-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->c:Lcom/masala/share/utils/b/f;
.line 263
new-instance v0, Lcom/masala/share/utils/b/a;
invoke-direct {v0, p1}, Lcom/masala/share/utils/b/a;-><init>(Lcom/masala/share/utils/b/f;)V
iput-object v0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->w:Lcom/masala/share/utils/b/a;
.line 264
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->l:Landroidx/recyclerview/widget/RecyclerView;
iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->r:Landroidx/recyclerview/widget/RecyclerView$OnScrollListener;
invoke-virtual {p1, v0}, Landroidx/recyclerview/widget/RecyclerView;->addOnScrollListener(Landroidx/recyclerview/widget/RecyclerView$OnScrollListener;)V
.line 265
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->l:Landroidx/recyclerview/widget/RecyclerView;
new-instance v0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment$3;
invoke-direct {v0, p0}, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment$3;-><init>(Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;)V
invoke-virtual {p1, v0}, Landroidx/recyclerview/widget/RecyclerView;->addOnScrollListener(Landroidx/recyclerview/widget/RecyclerView$OnScrollListener;)V
.line 295
invoke-virtual {p0}, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->D()V
return-void
.end method
.method public final f()V
.registers 4
.line 121
invoke-super {p0}, Lcom/imo/android/imoim/feeds/ui/home/base/BaseVideoFragment;->f()V
.line 123
sget-object v0, Lcom/masala/share/utils/d/a;->b:Lcom/masala/share/utils/d/a/a;
iget-object v0, v0, Lcom/masala/share/utils/d/a/a;->af:Lcom/masala/share/utils/d/a/d;
invoke-virtual {v0}, Lcom/masala/share/utils/d/a/d;->a()Z
move-result v0
if-eqz v0, :cond_13
invoke-static {}, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->q()Z
move-result v0
if-eqz v0, :cond_2f
.line 124
:cond_13
sget-object v0, Lcom/masala/share/utils/d/a;->b:Lcom/masala/share/utils/d/a/a;
iget-object v0, v0, Lcom/masala/share/utils/d/a/a;->af:Lcom/masala/share/utils/d/a/d;
const/4 v1, 0x1
invoke-virtual {v0, v1}, Lcom/masala/share/utils/d/a/d;->a(Z)V
.line 125
new-instance v0, Landroid/os/Bundle;
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
const/4 v1, 0x0
const-string v2, "key_show_green_point"
.line 126
invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V
.line 127
invoke-static {}, Lcom/masala/share/eventbus/b;->a()Lcom/masala/share/eventbus/c;
move-result-object v1
const-string v2, "news_tab_green_point_changed"
invoke-interface {v1, v2, v0}, Lcom/masala/share/eventbus/c;->a(Ljava/lang/String;Landroid/os/Bundle;)V
.line 129
:cond_2f
iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->v:Lsg/bigo/core/mvp/presenter/a;
check-cast v0, Lcom/imo/android/imoim/feeds/ui/home/news/a;
invoke-virtual {v0}, Lcom/imo/android/imoim/feeds/ui/home/news/a;->j()Z
move-result v0
if-nez v0, :cond_45
.line 130
iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->v:Lsg/bigo/core/mvp/presenter/a;
check-cast v0, Lcom/imo/android/imoim/feeds/ui/home/news/a;
invoke-virtual {v0}, Lcom/imo/android/imoim/feeds/ui/home/news/a;->d()Ljava/util/List;
move-result-object v0
invoke-direct {p0, v0}, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->a(Ljava/util/List;)V
goto :goto_4c
.line 132
:cond_45
iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->v:Lsg/bigo/core/mvp/presenter/a;
check-cast v0, Lcom/imo/android/imoim/feeds/ui/home/news/a;
invoke-virtual {v0}, Lcom/imo/android/imoim/feeds/ui/home/news/a;->g()V
.line 134
:goto_4c
invoke-static {}, Lcom/masala/share/proto/u;->b()Z
move-result v0
if-eqz v0, :cond_55
.line 135
invoke-virtual {p0}, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->w()V
:cond_55
return-void
.end method
.method public final h()V
.registers 1
.line 152
invoke-super {p0}, Lcom/imo/android/imoim/feeds/ui/home/base/BaseVideoFragment;->h()V
return-void
.end method
.method public final i()V
.registers 2
.line 157
iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->v:Lsg/bigo/core/mvp/presenter/a;
check-cast v0, Lcom/imo/android/imoim/feeds/ui/home/news/a;
invoke-virtual {v0}, Lcom/imo/android/imoim/feeds/ui/home/news/a;->h()V
.line 158
invoke-super {p0}, Lcom/imo/android/imoim/feeds/ui/home/base/BaseVideoFragment;->i()V
return-void
.end method
.method public final j()V
.registers 1
.line 164
invoke-super {p0}, Lcom/imo/android/imoim/feeds/ui/home/base/BaseVideoFragment;->j()V
return-void
.end method
.method public final k()V
.registers 5
.line 141
invoke-super {p0}, Lcom/imo/android/imoim/feeds/ui/home/base/BaseVideoFragment;->k()V
.line 142
invoke-static {}, Lcom/masala/share/eventbus/b;->a()Lcom/masala/share/eventbus/c;
move-result-object v0
const-string v1, "local_event_publish_comment"
const-string v2, "local_event_delete_comment"
const-string v3, "local_event_comment_like_change"
filled-new-array {v1, v2, v3}, [Ljava/lang/String;
move-result-object v1
invoke-interface {v0, p0, v1}, Lcom/masala/share/eventbus/c;->a(Lcom/masala/share/eventbus/c$a;[Ljava/lang/String;)V
return-void
.end method
.method public final l()V
.registers 1
.line 147
invoke-super {p0}, Lcom/imo/android/imoim/feeds/ui/home/base/BaseVideoFragment;->l()V
return-void
.end method
.method public final n()V
.registers 1
return-void
.end method
.method public onCreate(Landroid/os/Bundle;)V
.registers 4
.line 89
invoke-super {p0, p1}, Lcom/imo/android/imoim/feeds/ui/home/base/BaseVideoFragment;->onCreate(Landroid/os/Bundle;)V
.line 90
new-instance p1, Landroid/os/Bundle;
invoke-direct {p1}, Landroid/os/Bundle;-><init>()V
.line 92
sget-object v0, Lcom/masala/share/utils/d/a;->b:Lcom/masala/share/utils/d/a/a;
iget-object v0, v0, Lcom/masala/share/utils/d/a/a;->af:Lcom/masala/share/utils/d/a/d;
invoke-virtual {v0}, Lcom/masala/share/utils/d/a/d;->a()Z
move-result v0
const-string v1, "key_show_green_point"
if-eqz v0, :cond_20
invoke-static {}, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->q()Z
move-result v0
if-eqz v0, :cond_1b
goto :goto_20
:cond_1b
const/4 v0, 0x0
.line 95
invoke-virtual {p1, v1, v0}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V
goto :goto_24
:cond_20
:goto_20
const/4 v0, 0x1
.line 93
invoke-virtual {p1, v1, v0}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V
.line 97
:goto_24
invoke-static {}, Lcom/masala/share/eventbus/b;->a()Lcom/masala/share/eventbus/c;
move-result-object v0
const-string v1, "news_tab_green_point_changed"
invoke-interface {v0, v1, p1}, Lcom/masala/share/eventbus/c;->a(Ljava/lang/String;Landroid/os/Bundle;)V
return-void
.end method
.method public onLinkdConnStat(I)V
.registers 4
.line 170
invoke-super {p0, p1}, Lcom/imo/android/imoim/feeds/ui/home/base/BaseVideoFragment;->onLinkdConnStat(I)V
.line 171
invoke-virtual {p0}, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->v()Z
move-result v0
const/4 v1, 0x2
if-eqz v0, :cond_1f
if-ne p1, v1, :cond_1f
iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->m:Lcom/imo/android/imoim/feeds/ui/views/refresh/MaterialRefreshLayout;
if-eqz v0, :cond_1f
iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->i:Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;
if-eqz v0, :cond_1f
iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->j:Lcom/imo/android/imoim/feeds/ui/vhadapter/a;
.line 172
invoke-virtual {v0}, Lcom/imo/android/imoim/feeds/ui/vhadapter/a;->b()I
move-result v0
if-nez v0, :cond_1f
.line 173
invoke-virtual {p0}, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->w()V
.line 175
:cond_1f
iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->i:Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;
if-eqz v0, :cond_32
iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->j:Lcom/imo/android/imoim/feeds/ui/vhadapter/a;
invoke-virtual {v0}, Lcom/imo/android/imoim/feeds/ui/vhadapter/a;->b()I
move-result v0
if-lez v0, :cond_32
if-ne p1, v1, :cond_32
.line 176
iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/home/news/NewsFragment;->i:Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;
invoke-virtual {p1}, Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;->notifyDataSetChanged()V
:cond_32
return-void
.end method
.method public final p()I
.registers 2
const/4 v0, 0x5
return v0
.end method