.class public Lcom/moji/mjweather/feed/adapter/ArticleAdapter;
.super Lcom/moji/mjweather/feed/adapter/AbsDetailAdapter;
.source "ArticleAdapter.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/moji/mjweather/feed/adapter/ArticleAdapter$onWebViewLoadFinishedListener;,
        Lcom/moji/mjweather/feed/adapter/ArticleAdapter$PraiseViewHolder;,
        Lcom/moji/mjweather/feed/adapter/ArticleAdapter$MyWebChromeClient;,
        Lcom/moji/mjweather/feed/adapter/ArticleAdapter$MyWebViewClient;,
        Lcom/moji/mjweather/feed/adapter/ArticleAdapter$WebViewHolder;
    }
.end annotation


# instance fields
.field private final D:Lcom/moji/webview/WebImageUtil;

.field private E:Lcom/moji/mjweather/feed/view/FeedDetailWebView;

.field private F:Lcom/moji/http/fdsapi/entity/ShareJS;

.field private G:Z

.field private H:Lcom/moji/webview/datause/WebViewDataUsageHelper$RxTxBytes;

.field private I:Ljava/lang/String;

.field private J:Ljava/lang/String;

.field private K:Lcom/moji/mjweather/feed/adapter/ArticleAdapter$onWebViewLoadFinishedListener;


# direct methods
.method public constructor <init>(Landroid/support/v4/app/FragmentActivity;Ljava/util/List;Lcom/moji/mjad/common/view/CommonAdView;)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/support/v4/app/FragmentActivity;",
            "Ljava/util/List<",
            "Lcom/moji/http/fdsapi/entity/FeedComment$Comment;",
            ">;",
            "Lcom/moji/mjad/common/view/CommonAdView;",
            ")V"
        }
    .end annotation

    .line 45
    invoke-direct {p0, p1, p2, p3}, Lcom/moji/mjweather/feed/adapter/AbsDetailAdapter;-><init>(Landroid/content/Context;Ljava/util/List;Lcom/moji/mjad/common/view/CommonAdView;)V

    .line 46
    new-instance p2, Lcom/moji/webview/WebImageUtil;

    invoke-direct {p2, p1}, Lcom/moji/webview/WebImageUtil;-><init>(Landroid/support/v4/app/FragmentActivity;)V

    iput-object p2, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->D:Lcom/moji/webview/WebImageUtil;

    .line 47
    new-instance p1, Lcom/moji/preferences/ProcessPrefer;

    invoke-direct {p1}, Lcom/moji/preferences/ProcessPrefer;-><init>()V

    invoke-virtual {p1}, Lcom/moji/preferences/ProcessPrefer;->g()Z

    move-result p1

    iput-boolean p1, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->a:Z

    return-void
.end method

.method static synthetic a(Lcom/moji/mjweather/feed/adapter/ArticleAdapter;Lcom/moji/mjweather/feed/view/FeedDetailWebView;)Lcom/moji/mjweather/feed/view/FeedDetailWebView;
    .locals 0

    .line 37
    iput-object p1, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->E:Lcom/moji/mjweather/feed/view/FeedDetailWebView;

    return-object p1
.end method

.method static synthetic a(Lcom/moji/mjweather/feed/adapter/ArticleAdapter;)Ljava/lang/String;
    .locals 0

    .line 37
    iget-object p0, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->I:Ljava/lang/String;

    return-object p0
.end method

.method static synthetic a(Lcom/moji/mjweather/feed/adapter/ArticleAdapter;Ljava/lang/String;)Ljava/lang/String;
    .locals 0

    .line 37
    iput-object p1, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->J:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic a(Lcom/moji/mjweather/feed/adapter/ArticleAdapter;Lcom/tencent/smtt/sdk/WebView;)V
    .locals 0

    .line 37
    invoke-direct {p0, p1}, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->a(Lcom/tencent/smtt/sdk/WebView;)V

    return-void
.end method

.method private a(Lcom/tencent/smtt/sdk/WebView;)V
    .locals 6

    .line 132
    invoke-virtual {p1}, Lcom/tencent/smtt/sdk/WebView;->getSettings()Lcom/tencent/smtt/sdk/WebSettings;

    move-result-object v0

    const/4 v1, 0x1

    .line 133
    invoke-virtual {v0, v1}, Lcom/tencent/smtt/sdk/WebSettings;->setJavaScriptEnabled(Z)V

    .line 134
    iget-object v2, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->c:Landroid/content/Context;

    const-string v3, "database"

    const/4 v4, 0x0

    invoke-virtual {v2, v3, v4}, Landroid/content/Context;->getDir(Ljava/lang/String;I)Ljava/io/File;

    move-result-object v2

    invoke-virtual {v2}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v2

    .line 135
    invoke-virtual {v0, v1}, Lcom/tencent/smtt/sdk/WebSettings;->setDatabaseEnabled(Z)V

    .line 136
    invoke-virtual {v0, v2}, Lcom/tencent/smtt/sdk/WebSettings;->setDatabasePath(Ljava/lang/String;)V

    .line 137
    invoke-virtual {v0, v1}, Lcom/tencent/smtt/sdk/WebSettings;->setLoadWithOverviewMode(Z)V

    .line 138
    invoke-virtual {v0, v1}, Lcom/tencent/smtt/sdk/WebSettings;->setUseWideViewPort(Z)V

    .line 139
    invoke-virtual {v0, v1}, Lcom/tencent/smtt/sdk/WebSettings;->setLightTouchEnabled(Z)V

    .line 140
    new-instance v2, Lcom/moji/preferences/ProcessPrefer;

    invoke-direct {v2}, Lcom/moji/preferences/ProcessPrefer;-><init>()V

    sget-object v3, Lcom/moji/preferences/ProcessPrefer$KeyConstant;->VERSION:Lcom/moji/preferences/ProcessPrefer$KeyConstant;

    const-string v4, ""

    invoke-virtual {v2, v3, v4}, Lcom/moji/preferences/ProcessPrefer;->a(Lcom/moji/tool/preferences/core/IPreferKey;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 141
    invoke-virtual {p1}, Lcom/tencent/smtt/sdk/WebView;->getSettings()Lcom/tencent/smtt/sdk/WebSettings;

    move-result-object v3

    new-instance v4, Ljava/lang/StringBuilder;

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

    invoke-virtual {p1}, Lcom/tencent/smtt/sdk/WebView;->getSettings()Lcom/tencent/smtt/sdk/WebSettings;

    move-result-object v5

    invoke-virtual {v5}, Lcom/tencent/smtt/sdk/WebSettings;->getUserAgentString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v5, " mojia/"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v3, v2}, Lcom/tencent/smtt/sdk/WebSettings;->setUserAgentString(Ljava/lang/String;)V

    .line 143
    invoke-virtual {v0, v1}, Lcom/tencent/smtt/sdk/WebSettings;->setDomStorageEnabled(Z)V

    const/high16 v0, 0x2000000

    .line 144
    invoke-virtual {p1, v0}, Lcom/tencent/smtt/sdk/WebView;->setScrollBarStyle(I)V

    .line 145
    new-instance v0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter$MyWebViewClient;

    const/4 v1, 0x0

    invoke-direct {v0, p0, v1}, Lcom/moji/mjweather/feed/adapter/ArticleAdapter$MyWebViewClient;-><init>(Lcom/moji/mjweather/feed/adapter/ArticleAdapter;Lcom/moji/mjweather/feed/adapter/ArticleAdapter$1;)V

    invoke-virtual {p1, v0}, Lcom/tencent/smtt/sdk/WebView;->setWebViewClient(Lcom/tencent/smtt/sdk/WebViewClient;)V

    .line 146
    new-instance v0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter$MyWebChromeClient;

    invoke-direct {v0, p0}, Lcom/moji/mjweather/feed/adapter/ArticleAdapter$MyWebChromeClient;-><init>(Lcom/moji/mjweather/feed/adapter/ArticleAdapter;)V

    invoke-virtual {p1, v0}, Lcom/tencent/smtt/sdk/WebView;->setWebChromeClient(Lcom/tencent/smtt/sdk/WebChromeClient;)V

    const-string v0, "#FFFFFF"

    .line 147
    invoke-static {v0}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v0

    invoke-virtual {p1, v0}, Lcom/tencent/smtt/sdk/WebView;->setBackgroundColor(I)V

    .line 149
    iget-boolean v0, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->G:Z

    if-eqz v0, :cond_0

    .line 150
    invoke-direct {p0}, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->m()V

    .line 152
    :cond_0
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->D:Lcom/moji/webview/WebImageUtil;

    invoke-virtual {v0, p1}, Lcom/moji/webview/WebImageUtil;->a(Lcom/tencent/smtt/sdk/WebView;)V

    return-void
.end method

.method static synthetic b(Lcom/moji/mjweather/feed/adapter/ArticleAdapter;)Ljava/lang/String;
    .locals 0

    .line 37
    iget-object p0, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->J:Ljava/lang/String;

    return-object p0
.end method

.method static synthetic b(Lcom/moji/mjweather/feed/adapter/ArticleAdapter;Ljava/lang/String;)Ljava/lang/String;
    .locals 0

    .line 37
    iput-object p1, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->I:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic c(Lcom/moji/mjweather/feed/adapter/ArticleAdapter;)Lcom/moji/mjweather/feed/adapter/ArticleAdapter$onWebViewLoadFinishedListener;
    .locals 0

    .line 37
    iget-object p0, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->K:Lcom/moji/mjweather/feed/adapter/ArticleAdapter$onWebViewLoadFinishedListener;

    return-object p0
.end method

.method static synthetic d(Lcom/moji/mjweather/feed/adapter/ArticleAdapter;)Lcom/moji/http/fdsapi/entity/ShareJS;
    .locals 0

    .line 37
    iget-object p0, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->F:Lcom/moji/http/fdsapi/entity/ShareJS;

    return-object p0
.end method

.method private m()V
    .locals 3
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "AddJavascriptInterface"
        }
    .end annotation

    .line 158
    new-instance v0, Lcom/moji/http/fdsapi/entity/ShareJS;

    invoke-direct {v0}, Lcom/moji/http/fdsapi/entity/ShareJS;-><init>()V

    iput-object v0, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->F:Lcom/moji/http/fdsapi/entity/ShareJS;

    .line 159
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->E:Lcom/moji/mjweather/feed/view/FeedDetailWebView;

    iget-object v1, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->F:Lcom/moji/http/fdsapi/entity/ShareJS;

    const-string v2, "jsObj"

    invoke-virtual {v0, v1, v2}, Lcom/moji/mjweather/feed/view/FeedDetailWebView;->addJavascriptInterface(Ljava/lang/Object;Ljava/lang/String;)V

    return-void
.end method


# virtual methods
.method public a()I
    .locals 1

    const/4 v0, 0x5

    return v0
.end method

.method public a(I)I
    .locals 2

    const/4 v0, 0x2

    .line 57
    iput v0, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->v:I

    if-nez p1, :cond_0

    const/4 p1, 0x0

    return p1

    :cond_0
    const/4 v1, 0x1

    if-ne p1, v1, :cond_1

    return v1

    :cond_1
    if-ne p1, v0, :cond_2

    return v0

    :cond_2
    const/4 v0, 0x3

    if-ne p1, v0, :cond_3

    return v0

    :cond_3
    const/4 p1, 0x5

    return p1
.end method

.method a(Landroid/view/ViewGroup;)Landroid/support/v7/widget/RecyclerView$ViewHolder;
    .locals 3

    .line 77
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->b:Landroid/view/LayoutInflater;

    sget v1, Lcom/moji/mjweather/feed/R$layout;->details_item_webview:I

    const/4 v2, 0x0

    invoke-virtual {v0, v1, p1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p1

    .line 78
    new-instance v0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter$WebViewHolder;

    invoke-direct {v0, p0, p1}, Lcom/moji/mjweather/feed/adapter/ArticleAdapter$WebViewHolder;-><init>(Lcom/moji/mjweather/feed/adapter/ArticleAdapter;Landroid/view/View;)V

    return-object v0
.end method

.method public a(Lcom/moji/mjweather/feed/adapter/ArticleAdapter$onWebViewLoadFinishedListener;)V
    .locals 0

    .line 255
    iput-object p1, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->K:Lcom/moji/mjweather/feed/adapter/ArticleAdapter$onWebViewLoadFinishedListener;

    return-void
.end method

.method public a(Ljava/lang/String;Landroid/view/View;)V
    .locals 3

    .line 100
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->E:Lcom/moji/mjweather/feed/view/FeedDetailWebView;

    if-eqz v0, :cond_0

    .line 101
    iget-object p2, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->H:Lcom/moji/webview/datause/WebViewDataUsageHelper$RxTxBytes;

    invoke-static {p2}, Lcom/moji/webview/datause/WebViewDataUsageHelper;->a(Lcom/moji/webview/datause/WebViewDataUsageHelper$RxTxBytes;)V

    .line 102
    invoke-static {p1}, Lcom/moji/webview/datause/WebViewDataUsageHelper;->a(Ljava/lang/String;)Lcom/moji/webview/datause/WebViewDataUsageHelper$RxTxBytes;

    move-result-object p2

    iput-object p2, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->H:Lcom/moji/webview/datause/WebViewDataUsageHelper$RxTxBytes;

    .line 103
    iget-object p2, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->E:Lcom/moji/mjweather/feed/view/FeedDetailWebView;

    invoke-virtual {p2, p1}, Lcom/moji/mjweather/feed/view/FeedDetailWebView;->loadUrl(Ljava/lang/String;)V

    goto :goto_0

    .line 105
    :cond_0
    new-instance v0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter$1;

    invoke-direct {v0, p0, p1, p2}, Lcom/moji/mjweather/feed/adapter/ArticleAdapter$1;-><init>(Lcom/moji/mjweather/feed/adapter/ArticleAdapter;Ljava/lang/String;Landroid/view/View;)V

    const-wide/16 v1, 0x12c

    invoke-virtual {p2, v0, v1, v2}, Landroid/view/View;->postDelayed(Ljava/lang/Runnable;J)Z

    :goto_0
    return-void
.end method

.method protected b(Landroid/view/ViewGroup;)Landroid/support/v7/widget/RecyclerView$ViewHolder;
    .locals 3

    .line 83
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->b:Landroid/view/LayoutInflater;

    sget v1, Lcom/moji/mjweather/feed/R$layout;->details_item_praise:I

    const/4 v2, 0x0

    invoke-virtual {v0, v1, p1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p1

    .line 84
    new-instance v0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter$PraiseViewHolder;

    invoke-direct {v0, p0, p1}, Lcom/moji/mjweather/feed/adapter/ArticleAdapter$PraiseViewHolder;-><init>(Lcom/moji/mjweather/feed/adapter/ArticleAdapter;Landroid/view/View;)V

    return-object v0
.end method

.method public d(Z)V
    .locals 0

    .line 72
    iput-boolean p1, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->G:Z

    return-void
.end method

.method protected e(Landroid/support/v7/widget/RecyclerView$ViewHolder;)V
    .locals 2

    .line 89
    check-cast p1, Lcom/moji/mjweather/feed/adapter/ArticleAdapter$PraiseViewHolder;

    .line 90
    iget-boolean v0, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->A:Z

    if-nez v0, :cond_0

    .line 91
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/ArticleAdapter$PraiseViewHolder;->a(Lcom/moji/mjweather/feed/adapter/ArticleAdapter$PraiseViewHolder;)Landroid/view/View;

    move-result-object v0

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 92
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/ArticleAdapter$PraiseViewHolder;->b(Lcom/moji/mjweather/feed/adapter/ArticleAdapter$PraiseViewHolder;)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 94
    :cond_0
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/ArticleAdapter$PraiseViewHolder;->a(Lcom/moji/mjweather/feed/adapter/ArticleAdapter$PraiseViewHolder;)Landroid/view/View;

    move-result-object v0

    iget-boolean v1, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->A:Z

    invoke-virtual {v0, v1}, Landroid/view/View;->setEnabled(Z)V

    .line 95
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/ArticleAdapter$PraiseViewHolder;->b(Lcom/moji/mjweather/feed/adapter/ArticleAdapter$PraiseViewHolder;)Landroid/view/View;

    move-result-object v0

    iget-boolean v1, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->A:Z

    invoke-virtual {v0, v1}, Landroid/view/View;->setEnabled(Z)V

    .line 96
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/ArticleAdapter$PraiseViewHolder;->c(Lcom/moji/mjweather/feed/adapter/ArticleAdapter$PraiseViewHolder;)Landroid/view/View;

    move-result-object p1

    iget-boolean v0, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->B:Z

    invoke-virtual {p1, v0}, Landroid/view/View;->setEnabled(Z)V

    return-void
.end method

.method public h()V
    .locals 1

    .line 264
    invoke-super {p0}, Lcom/moji/mjweather/feed/adapter/AbsDetailAdapter;->h()V

    .line 265
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->H:Lcom/moji/webview/datause/WebViewDataUsageHelper$RxTxBytes;

    if-eqz v0, :cond_0

    .line 266
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->H:Lcom/moji/webview/datause/WebViewDataUsageHelper$RxTxBytes;

    iget-object v0, v0, Lcom/moji/webview/datause/WebViewDataUsageHelper$RxTxBytes;->c:Ljava/lang/String;

    invoke-static {v0}, Lcom/moji/webview/datause/WebViewDataUsageHelper;->a(Ljava/lang/String;)Lcom/moji/webview/datause/WebViewDataUsageHelper$RxTxBytes;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->H:Lcom/moji/webview/datause/WebViewDataUsageHelper$RxTxBytes;

    .line 268
    :cond_0
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->E:Lcom/moji/mjweather/feed/view/FeedDetailWebView;

    if-eqz v0, :cond_1

    .line 269
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->E:Lcom/moji/mjweather/feed/view/FeedDetailWebView;

    invoke-virtual {v0}, Lcom/moji/mjweather/feed/view/FeedDetailWebView;->onResume()V

    :cond_1
    return-void
.end method

.method public i()V
    .locals 1

    .line 275
    invoke-super {p0}, Lcom/moji/mjweather/feed/adapter/AbsDetailAdapter;->i()V

    .line 276
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->E:Lcom/moji/mjweather/feed/view/FeedDetailWebView;

    if-eqz v0, :cond_0

    .line 277
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->E:Lcom/moji/mjweather/feed/view/FeedDetailWebView;

    invoke-virtual {v0}, Lcom/moji/mjweather/feed/view/FeedDetailWebView;->onPause()V

    .line 279
    :cond_0
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->H:Lcom/moji/webview/datause/WebViewDataUsageHelper$RxTxBytes;

    invoke-static {v0}, Lcom/moji/webview/datause/WebViewDataUsageHelper;->a(Lcom/moji/webview/datause/WebViewDataUsageHelper$RxTxBytes;)V

    return-void
.end method

.method public j()V
    .locals 2

    .line 284
    invoke-super {p0}, Lcom/moji/mjweather/feed/adapter/AbsDetailAdapter;->j()V

    const/4 v0, 0x0

    .line 285
    iput-object v0, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->K:Lcom/moji/mjweather/feed/adapter/ArticleAdapter$onWebViewLoadFinishedListener;

    .line 286
    iget-object v1, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->E:Lcom/moji/mjweather/feed/view/FeedDetailWebView;

    if-eqz v1, :cond_1

    .line 287
    iget-object v1, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->E:Lcom/moji/mjweather/feed/view/FeedDetailWebView;

    invoke-virtual {v1, v0}, Lcom/moji/mjweather/feed/view/FeedDetailWebView;->setWebChromeClient(Lcom/tencent/smtt/sdk/WebChromeClient;)V

    .line 288
    iget-object v1, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->E:Lcom/moji/mjweather/feed/view/FeedDetailWebView;

    invoke-virtual {v1, v0}, Lcom/moji/mjweather/feed/view/FeedDetailWebView;->setWebViewClient(Lcom/tencent/smtt/sdk/WebViewClient;)V

    .line 289
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->E:Lcom/moji/mjweather/feed/view/FeedDetailWebView;

    invoke-virtual {v0}, Lcom/moji/mjweather/feed/view/FeedDetailWebView;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 290
    instance-of v1, v0, Landroid/view/ViewGroup;

    if-eqz v1, :cond_0

    .line 291
    check-cast v0, Landroid/view/ViewGroup;

    invoke-virtual {v0}, Landroid/view/ViewGroup;->removeAllViews()V

    .line 293
    :cond_0
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->E:Lcom/moji/mjweather/feed/view/FeedDetailWebView;

    invoke-virtual {v0}, Lcom/moji/mjweather/feed/view/FeedDetailWebView;->destroy()V

    .line 294
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->I:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_1

    .line 295
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->I:Ljava/lang/String;

    invoke-static {v0}, Lcom/moji/webview/umeng/UMHybrid;->onPageChanged(Ljava/lang/String;)V

    :cond_1
    return-void
.end method

.method public l()V
    .locals 1

    .line 115
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->D:Lcom/moji/webview/WebImageUtil;

    if-eqz v0, :cond_0

    .line 116
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ArticleAdapter;->D:Lcom/moji/webview/WebImageUtil;

    invoke-virtual {v0}, Lcom/moji/webview/WebImageUtil;->b()V

    :cond_0
    return-void
.end method
