.class public Lcom/forum/HomePageFragment; .super Lcom/home/base/LedBleFragment; .source "HomePageFragment.java" # interfaces .implements Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout$OnRefreshListener; # static fields .field private static final TAG:Ljava/lang/String; = "HomePageFragment" .field private static toast:Landroid/widget/Toast; # instance fields .field private adapter:Lcom/forum/adapter/CommentAdapter; .field public canShowToast:Z .field private imageViewIM:Landroid/widget/ImageView; .field private isLast:Ljava/lang/String; .field private lastVisibleItem:I .field public layoutManager:Landroidx/recyclerview/widget/LinearLayoutManager; .field private list:Ljava/util/List; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/List<", "Lcom/forum/bean/CommentBean;", ">;" } .end annotation .end field .field private ll_tab_item:Landroid/widget/LinearLayout; .field lvComment:Landroidx/recyclerview/widget/RecyclerView; .annotation runtime Lbutterknife/BindView; value = 0x7f0902c1 .end annotation .end field .field private pageNum:I .field public params:Ljava/util/Map; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/Map<", "Ljava/lang/String;", "Ljava/lang/Object;", ">;" } .end annotation .end field .field srlComment:Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout; .annotation runtime Lbutterknife/BindView; value = 0x7f09049f .end annotation .end field .field private tvAdvisory:Landroid/widget/TextView; .field private tvAdvisoryLine:Landroid/widget/TextView; .field private tvConnect:Landroid/widget/TextView; .field private tvConnectLine:Landroid/widget/TextView; .field private tvHot:Landroid/widget/TextView; .field private tvHotLine:Landroid/widget/TextView; .field private tvOther:Landroid/widget/TextView; .field private tvOtherLine:Landroid/widget/TextView; .field private tvSuggest:Landroid/widget/TextView; .field private tvSuggestLine:Landroid/widget/TextView; .field private type:I # direct methods .method static bridge synthetic -$$Nest$fgetadapter(Lcom/forum/HomePageFragment;)Lcom/forum/adapter/CommentAdapter; .registers 1 iget-object p0, p0, Lcom/forum/HomePageFragment;->adapter:Lcom/forum/adapter/CommentAdapter; return-object p0 .end method .method static bridge synthetic -$$Nest$fgetisLast(Lcom/forum/HomePageFragment;)Ljava/lang/String; .registers 1 iget-object p0, p0, Lcom/forum/HomePageFragment;->isLast:Ljava/lang/String; return-object p0 .end method .method static bridge synthetic -$$Nest$fgetlastVisibleItem(Lcom/forum/HomePageFragment;)I .registers 1 iget p0, p0, Lcom/forum/HomePageFragment;->lastVisibleItem:I return p0 .end method .method static bridge synthetic -$$Nest$fgetlist(Lcom/forum/HomePageFragment;)Ljava/util/List; .registers 1 iget-object p0, p0, Lcom/forum/HomePageFragment;->list:Ljava/util/List; return-object p0 .end method .method static bridge synthetic -$$Nest$fgetpageNum(Lcom/forum/HomePageFragment;)I .registers 1 iget p0, p0, Lcom/forum/HomePageFragment;->pageNum:I return p0 .end method .method static bridge synthetic -$$Nest$fgettvAdvisoryLine(Lcom/forum/HomePageFragment;)Landroid/widget/TextView; .registers 1 iget-object p0, p0, Lcom/forum/HomePageFragment;->tvAdvisoryLine:Landroid/widget/TextView; return-object p0 .end method .method static bridge synthetic -$$Nest$fgettvConnectLine(Lcom/forum/HomePageFragment;)Landroid/widget/TextView; .registers 1 iget-object p0, p0, Lcom/forum/HomePageFragment;->tvConnectLine:Landroid/widget/TextView; return-object p0 .end method .method static bridge synthetic -$$Nest$fgettvHotLine(Lcom/forum/HomePageFragment;)Landroid/widget/TextView; .registers 1 iget-object p0, p0, Lcom/forum/HomePageFragment;->tvHotLine:Landroid/widget/TextView; return-object p0 .end method .method static bridge synthetic -$$Nest$fgettvOtherLine(Lcom/forum/HomePageFragment;)Landroid/widget/TextView; .registers 1 iget-object p0, p0, Lcom/forum/HomePageFragment;->tvOtherLine:Landroid/widget/TextView; return-object p0 .end method .method static bridge synthetic -$$Nest$fgettvSuggestLine(Lcom/forum/HomePageFragment;)Landroid/widget/TextView; .registers 1 iget-object p0, p0, Lcom/forum/HomePageFragment;->tvSuggestLine:Landroid/widget/TextView; return-object p0 .end method .method static bridge synthetic -$$Nest$fputisLast(Lcom/forum/HomePageFragment;Ljava/lang/String;)V .registers 2 iput-object p1, p0, Lcom/forum/HomePageFragment;->isLast:Ljava/lang/String; return-void .end method .method static bridge synthetic -$$Nest$fputlastVisibleItem(Lcom/forum/HomePageFragment;I)V .registers 2 iput p1, p0, Lcom/forum/HomePageFragment;->lastVisibleItem:I return-void .end method .method static bridge synthetic -$$Nest$fputpageNum(Lcom/forum/HomePageFragment;I)V .registers 2 iput p1, p0, Lcom/forum/HomePageFragment;->pageNum:I return-void .end method .method static bridge synthetic -$$Nest$fputtype(Lcom/forum/HomePageFragment;I)V .registers 2 iput p1, p0, Lcom/forum/HomePageFragment;->type:I return-void .end method .method static constructor ()V .registers 0 return-void .end method .method public constructor ()V .registers 2 .line 50 invoke-direct {p0}, Lcom/home/base/LedBleFragment;->()V .line 64 new-instance v0, Ljava/util/ArrayList; invoke-direct {v0}, Ljava/util/ArrayList;->()V iput-object v0, p0, Lcom/forum/HomePageFragment;->list:Ljava/util/List; const/4 v0, 0x1 .line 69 iput v0, p0, Lcom/forum/HomePageFragment;->pageNum:I .line 71 const-string v0, "0" iput-object v0, p0, Lcom/forum/HomePageFragment;->isLast:Ljava/lang/String; const/4 v0, 0x0 .line 73 iput-boolean v0, p0, Lcom/forum/HomePageFragment;->canShowToast:Z return-void .end method .method private onRefreshStop()V .registers 3 .line 218 iget-object v0, p0, Lcom/forum/HomePageFragment;->srlComment:Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout; if-eqz v0, :cond_8 const/4 v1, 0x0 invoke-virtual {v0, v1}, Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;->setRefreshing(Z)V :cond_8 return-void .end method .method public static shouToast(Landroid/content/Context;Ljava/lang/String;)V .registers 3 .line 395 sget-object v0, Lcom/forum/HomePageFragment;->toast:Landroid/widget/Toast; if-nez v0, :cond_c const/4 v0, 0x0 .line 396 invoke-static {p0, p1, v0}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast; move-result-object p0 sput-object p0, Lcom/forum/HomePageFragment;->toast:Landroid/widget/Toast; goto :goto_f .line 398 :cond_c invoke-virtual {v0, p1}, Landroid/widget/Toast;->setText(Ljava/lang/CharSequence;)V .line 400 :goto_f sget-object p0, Lcom/forum/HomePageFragment;->toast:Landroid/widget/Toast; invoke-virtual {p0}, Landroid/widget/Toast;->show()V return-void .end method # virtual methods .method public getCommentList(Z)V .registers 6 .line 265 invoke-virtual {p0}, Lcom/forum/HomePageFragment;->getContext()Landroid/content/Context; move-result-object v0 invoke-virtual {p0, v0}, Lcom/forum/HomePageFragment;->isNetworkConnected(Landroid/content/Context;)Z move-result v0 if-nez v0, :cond_22 .line 266 iget-boolean p1, p0, Lcom/forum/HomePageFragment;->canShowToast:Z if-eqz p1, :cond_21 .line 267 invoke-virtual {p0}, Lcom/forum/HomePageFragment;->getContext()Landroid/content/Context; move-result-object p1 const v0, 0x7f1000d8 invoke-virtual {p0, v0}, Lcom/forum/HomePageFragment;->getString(I)Ljava/lang/String; move-result-object v0 const/4 v1, 0x1 invoke-static {p1, v0, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast; move-result-object p1 invoke-virtual {p1}, Landroid/widget/Toast;->show()V :cond_21 return-void .line 273 :cond_22 invoke-virtual {p0}, Lcom/forum/HomePageFragment;->getResources()Landroid/content/res/Resources; move-result-object v0 const v1, 0x7f100133 invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String; move-result-object v0 const-string v2, "\u9996\u9875" invoke-virtual {v0, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z move-result v0 if-eqz v0, :cond_38 .line 274 const-string v0, "cn" goto :goto_4d .line 275 :cond_38 invoke-virtual {p0}, Lcom/forum/HomePageFragment;->getResources()Landroid/content/res/Resources; move-result-object v0 invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String; move-result-object v0 const-string v1, "Home" invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z move-result v0 if-eqz v0, :cond_4b .line 276 const-string v0, "en" goto :goto_4d .line 278 :cond_4b const-string v0, "other" .line 281 :goto_4d invoke-virtual {p0}, Lcom/forum/HomePageFragment;->showDialog()V .line 283 new-instance v1, Lokhttp3/OkHttpClient; invoke-direct {v1}, Lokhttp3/OkHttpClient;->()V .line 284 new-instance v2, Lokhttp3/FormBody$Builder; invoke-direct {v2}, Lokhttp3/FormBody$Builder;->()V const-string v3, "language" .line 285 invoke-virtual {v2, v3, v0}, Lokhttp3/FormBody$Builder;->add(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/FormBody$Builder; move-result-object v0 iget v2, p0, Lcom/forum/HomePageFragment;->pageNum:I .line 286 invoke-static {v2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String; move-result-object v2 const-string v3, "pageNum" invoke-virtual {v0, v3, v2}, Lokhttp3/FormBody$Builder;->add(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/FormBody$Builder; move-result-object v0 const-string v2, "pageSize" const-string v3, "10" .line 287 invoke-virtual {v0, v2, v3}, Lokhttp3/FormBody$Builder;->add(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/FormBody$Builder; move-result-object v0 iget v2, p0, Lcom/forum/HomePageFragment;->type:I .line 288 invoke-static {v2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String; move-result-object v2 const-string v3, "type" invoke-virtual {v0, v3, v2}, Lokhttp3/FormBody$Builder;->add(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/FormBody$Builder; move-result-object v0 .line 289 invoke-static {}, Lcom/home/base/LedBleActivity;->getBaseApp()Lcom/home/base/LedBleApplication; move-result-object v2 invoke-virtual {v2}, Lcom/home/base/LedBleApplication;->getUserToken()Ljava/lang/String; move-result-object v2 const-string v3, "token" invoke-virtual {v0, v3, v2}, Lokhttp3/FormBody$Builder;->add(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/FormBody$Builder; move-result-object v0 .line 290 invoke-virtual {v0}, Lokhttp3/FormBody$Builder;->build()Lokhttp3/FormBody; move-result-object v0 .line 291 new-instance v2, Lokhttp3/Request$Builder; invoke-direct {v2}, Lokhttp3/Request$Builder;->()V const-string v3, "http://api.appv2.ledspi.com/xpy-server/comment/queryCommentByApp" .line 292 invoke-virtual {v2, v3}, Lokhttp3/Request$Builder;->url(Ljava/lang/String;)Lokhttp3/Request$Builder; move-result-object v2 .line 293 invoke-virtual {v2, v0}, Lokhttp3/Request$Builder;->post(Lokhttp3/RequestBody;)Lokhttp3/Request$Builder; move-result-object v0 .line 294 invoke-virtual {v0}, Lokhttp3/Request$Builder;->build()Lokhttp3/Request; move-result-object v0 .line 295 invoke-virtual {v1, v0}, Lokhttp3/OkHttpClient;->newCall(Lokhttp3/Request;)Lokhttp3/Call; move-result-object v0 new-instance v1, Lcom/forum/HomePageFragment$9; invoke-direct {v1, p0, p1}, Lcom/forum/HomePageFragment$9;->(Lcom/forum/HomePageFragment;Z)V invoke-interface {v0, v1}, Lokhttp3/Call;->enqueue(Lokhttp3/Callback;)V return-void .end method .method public getContent()V .registers 2 .line 200 iget-object v0, p0, Lcom/forum/HomePageFragment;->params:Ljava/util/Map; invoke-interface {v0}, Ljava/util/Map;->clear()V const/4 v0, 0x1 .line 201 iput v0, p0, Lcom/forum/HomePageFragment;->pageNum:I .line 203 invoke-virtual {p0, v0}, Lcom/forum/HomePageFragment;->getCommentList(Z)V return-void .end method .method public initData()V .registers 4 .line 95 invoke-static {}, Lcom/FirstActivity;->getForumTopTabItem()Landroid/widget/LinearLayout; move-result-object v0 iput-object v0, p0, Lcom/forum/HomePageFragment;->ll_tab_item:Landroid/widget/LinearLayout; const v1, 0x7f090594 .line 96 invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View; move-result-object v0 check-cast v0, Landroid/widget/TextView; iput-object v0, p0, Lcom/forum/HomePageFragment;->tvOtherLine:Landroid/widget/TextView; .line 97 iget-object v0, p0, Lcom/forum/HomePageFragment;->ll_tab_item:Landroid/widget/LinearLayout; const v1, 0x7f09055a invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View; move-result-object v0 check-cast v0, Landroid/widget/TextView; iput-object v0, p0, Lcom/forum/HomePageFragment;->tvConnectLine:Landroid/widget/TextView; .line 98 iget-object v0, p0, Lcom/forum/HomePageFragment;->ll_tab_item:Landroid/widget/LinearLayout; const v1, 0x7f090528 invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View; move-result-object v0 check-cast v0, Landroid/widget/TextView; iput-object v0, p0, Lcom/forum/HomePageFragment;->tvAdvisoryLine:Landroid/widget/TextView; .line 99 iget-object v0, p0, Lcom/forum/HomePageFragment;->ll_tab_item:Landroid/widget/LinearLayout; const v1, 0x7f0905ca invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View; move-result-object v0 check-cast v0, Landroid/widget/TextView; iput-object v0, p0, Lcom/forum/HomePageFragment;->tvSuggestLine:Landroid/widget/TextView; .line 100 iget-object v0, p0, Lcom/forum/HomePageFragment;->ll_tab_item:Landroid/widget/LinearLayout; const v1, 0x7f09057c invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View; move-result-object v0 check-cast v0, Landroid/widget/TextView; iput-object v0, p0, Lcom/forum/HomePageFragment;->tvHotLine:Landroid/widget/TextView; .line 102 iget-object v0, p0, Lcom/forum/HomePageFragment;->ll_tab_item:Landroid/widget/LinearLayout; const v1, 0x7f090176 invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View; move-result-object v0 check-cast v0, Landroid/widget/ImageView; iput-object v0, p0, Lcom/forum/HomePageFragment;->imageViewIM:Landroid/widget/ImageView; .line 103 new-instance v1, Lcom/forum/HomePageFragment$1; invoke-direct {v1, p0}, Lcom/forum/HomePageFragment$1;->(Lcom/forum/HomePageFragment;)V invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V .line 120 iget-object v0, p0, Lcom/forum/HomePageFragment;->ll_tab_item:Landroid/widget/LinearLayout; const v1, 0x7f090593 invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View; move-result-object v0 check-cast v0, Landroid/widget/TextView; iput-object v0, p0, Lcom/forum/HomePageFragment;->tvOther:Landroid/widget/TextView; .line 121 new-instance v1, Lcom/forum/HomePageFragment$2; invoke-direct {v1, p0}, Lcom/forum/HomePageFragment$2;->(Lcom/forum/HomePageFragment;)V invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V .line 133 iget-object v0, p0, Lcom/forum/HomePageFragment;->ll_tab_item:Landroid/widget/LinearLayout; const v1, 0x7f090559 invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View; move-result-object v0 check-cast v0, Landroid/widget/TextView; iput-object v0, p0, Lcom/forum/HomePageFragment;->tvConnect:Landroid/widget/TextView; .line 134 new-instance v1, Lcom/forum/HomePageFragment$3; invoke-direct {v1, p0}, Lcom/forum/HomePageFragment$3;->(Lcom/forum/HomePageFragment;)V invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V .line 146 iget-object v0, p0, Lcom/forum/HomePageFragment;->ll_tab_item:Landroid/widget/LinearLayout; const v1, 0x7f090527 invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View; move-result-object v0 check-cast v0, Landroid/widget/TextView; iput-object v0, p0, Lcom/forum/HomePageFragment;->tvAdvisory:Landroid/widget/TextView; .line 147 new-instance v1, Lcom/forum/HomePageFragment$4; invoke-direct {v1, p0}, Lcom/forum/HomePageFragment$4;->(Lcom/forum/HomePageFragment;)V invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V .line 159 iget-object v0, p0, Lcom/forum/HomePageFragment;->ll_tab_item:Landroid/widget/LinearLayout; const v1, 0x7f0905c9 invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View; move-result-object v0 check-cast v0, Landroid/widget/TextView; iput-object v0, p0, Lcom/forum/HomePageFragment;->tvSuggest:Landroid/widget/TextView; .line 160 new-instance v1, Lcom/forum/HomePageFragment$5; invoke-direct {v1, p0}, Lcom/forum/HomePageFragment$5;->(Lcom/forum/HomePageFragment;)V invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V .line 172 iget-object v0, p0, Lcom/forum/HomePageFragment;->ll_tab_item:Landroid/widget/LinearLayout; const v1, 0x7f09057b invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View; move-result-object v0 check-cast v0, Landroid/widget/TextView; iput-object v0, p0, Lcom/forum/HomePageFragment;->tvHot:Landroid/widget/TextView; .line 173 new-instance v1, Lcom/forum/HomePageFragment$6; invoke-direct {v1, p0}, Lcom/forum/HomePageFragment$6;->(Lcom/forum/HomePageFragment;)V invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V .line 186 new-instance v0, Landroidx/recyclerview/widget/LinearLayoutManager; iget-object v1, p0, Lcom/forum/HomePageFragment;->activity:Lcom/home/base/LedBleActivity; invoke-direct {v0, v1}, Landroidx/recyclerview/widget/LinearLayoutManager;->(Landroid/content/Context;)V iput-object v0, p0, Lcom/forum/HomePageFragment;->layoutManager:Landroidx/recyclerview/widget/LinearLayoutManager; const/4 v1, 0x1 .line 187 invoke-virtual {v0, v1}, Landroidx/recyclerview/widget/LinearLayoutManager;->setOrientation(I)V .line 188 iget-object v0, p0, Lcom/forum/HomePageFragment;->lvComment:Landroidx/recyclerview/widget/RecyclerView; invoke-virtual {v0, v1}, Landroidx/recyclerview/widget/RecyclerView;->setHasFixedSize(Z)V .line 189 iget-object v0, p0, Lcom/forum/HomePageFragment;->lvComment:Landroidx/recyclerview/widget/RecyclerView; iget-object v1, p0, Lcom/forum/HomePageFragment;->layoutManager:Landroidx/recyclerview/widget/LinearLayoutManager; invoke-virtual {v0, v1}, Landroidx/recyclerview/widget/RecyclerView;->setLayoutManager(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)V .line 191 new-instance v0, Lcom/forum/adapter/CommentAdapter; iget-object v1, p0, Lcom/forum/HomePageFragment;->activity:Lcom/home/base/LedBleActivity; iget-object v2, p0, Lcom/forum/HomePageFragment;->list:Ljava/util/List; invoke-direct {v0, v1, v2}, Lcom/forum/adapter/CommentAdapter;->(Lcom/home/base/LedBleActivity;Ljava/util/List;)V iput-object v0, p0, Lcom/forum/HomePageFragment;->adapter:Lcom/forum/adapter/CommentAdapter; .line 192 iget-object v1, p0, Lcom/forum/HomePageFragment;->lvComment:Landroidx/recyclerview/widget/RecyclerView; invoke-virtual {v1, v0}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V .line 193 iget-object v0, p0, Lcom/forum/HomePageFragment;->adapter:Lcom/forum/adapter/CommentAdapter; iget-object v1, p0, Lcom/forum/HomePageFragment;->isLast:Ljava/lang/String; invoke-virtual {v0, v1}, Lcom/forum/adapter/CommentAdapter;->setIsLast(Ljava/lang/String;)V .line 194 iget-object v0, p0, Lcom/forum/HomePageFragment;->adapter:Lcom/forum/adapter/CommentAdapter; invoke-virtual {v0}, Lcom/forum/adapter/CommentAdapter;->notifyDataSetChanged()V .line 195 new-instance v0, Ljava/util/HashMap; invoke-direct {v0}, Ljava/util/HashMap;->()V iput-object v0, p0, Lcom/forum/HomePageFragment;->params:Ljava/util/Map; .line 196 invoke-virtual {p0}, Lcom/forum/HomePageFragment;->getContent()V return-void .end method .method public initEvent()V .registers 3 .line 230 iget-object v0, p0, Lcom/forum/HomePageFragment;->srlComment:Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout; new-instance v1, Lcom/forum/HomePageFragment$7; invoke-direct {v1, p0}, Lcom/forum/HomePageFragment$7;->(Lcom/forum/HomePageFragment;)V invoke-virtual {v0, v1}, Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;->setOnRefreshListener(Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout$OnRefreshListener;)V .line 242 iget-object v0, p0, Lcom/forum/HomePageFragment;->lvComment:Landroidx/recyclerview/widget/RecyclerView; new-instance v1, Lcom/forum/HomePageFragment$8; invoke-direct {v1, p0}, Lcom/forum/HomePageFragment$8;->(Lcom/forum/HomePageFragment;)V invoke-virtual {v0, v1}, Landroidx/recyclerview/widget/RecyclerView;->setOnScrollListener(Landroidx/recyclerview/widget/RecyclerView$OnScrollListener;)V return-void .end method .method public initView()V .registers 3 .line 223 iget-object v0, p0, Lcom/forum/HomePageFragment;->srlComment:Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout; if-eqz v0, :cond_e const v1, 0x7f060054 .line 224 filled-new-array {v1}, [I move-result-object v1 invoke-virtual {v0, v1}, Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;->setColorSchemeResources([I)V :cond_e return-void .end method .method public isNetworkConnected(Landroid/content/Context;)Z .registers 3 if-eqz p1, :cond_15 .line 83 const-string v0, "connectivity" invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object; move-result-object p1 check-cast p1, Landroid/net/ConnectivityManager; .line 84 invoke-virtual {p1}, Landroid/net/ConnectivityManager;->getActiveNetworkInfo()Landroid/net/NetworkInfo; move-result-object p1 if-eqz p1, :cond_15 .line 86 invoke-virtual {p1}, Landroid/net/NetworkInfo;->isAvailable()Z move-result p1 return p1 :cond_15 const/4 p1, 0x0 return p1 .end method .method public onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View; .registers 5 const p3, 0x7f0c008f const/4 v0, 0x0 .line 78 invoke-virtual {p1, p3, p2, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View; move-result-object p1 return-object p1 .end method .method public onDestroy()V .registers 2 .line 382 invoke-super {p0}, Lcom/home/base/LedBleFragment;->onDestroy()V .line 383 iget-object v0, p0, Lcom/forum/HomePageFragment;->list:Ljava/util/List; invoke-interface {v0}, Ljava/util/List;->clear()V .line 384 iget-object v0, p0, Lcom/forum/HomePageFragment;->adapter:Lcom/forum/adapter/CommentAdapter; invoke-virtual {v0}, Lcom/forum/adapter/CommentAdapter;->notifyDataSetChanged()V const/4 v0, 0x0 .line 385 iput-object v0, p0, Lcom/forum/HomePageFragment;->srlComment:Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout; return-void .end method .method public onRefresh()V .registers 5 .line 209 iget-object v0, p0, Lcom/forum/HomePageFragment;->isLast:Ljava/lang/String; const-string v1, "1" invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v0 if-eqz v0, :cond_e .line 210 const-string v0, "0" iput-object v0, p0, Lcom/forum/HomePageFragment;->isLast:Ljava/lang/String; :cond_e const/4 v0, 0x1 .line 212 iput v0, p0, Lcom/forum/HomePageFragment;->pageNum:I .line 213 iget-object v2, p0, Lcom/forum/HomePageFragment;->params:Ljava/util/Map; const-string v3, "pageNum" invoke-interface {v2, v3, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; .line 214 invoke-virtual {p0, v0}, Lcom/forum/HomePageFragment;->getCommentList(Z)V return-void .end method