Weather/smali_classes2/com/moji/mjweather/feed/ChannelRommendFragment$1.smali
2021-05-10 10:13:34 +02:00

432 lines
13 KiB
Smali

.class Lcom/moji/mjweather/feed/ChannelRommendFragment$1;
.super Ljava/lang/Object;
.source "ChannelRommendFragment.java"
# interfaces
.implements Lcom/moji/mjweather/feed/adapter/ChannelCommendFragmentListAdapter$OnItemClickListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/moji/mjweather/feed/ChannelRommendFragment;->b()V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic a:Lcom/moji/mjweather/feed/ChannelRommendFragment;
# direct methods
.method constructor <init>(Lcom/moji/mjweather/feed/ChannelRommendFragment;)V
.locals 0
.line 41
iput-object p1, p0, Lcom/moji/mjweather/feed/ChannelRommendFragment$1;->a:Lcom/moji/mjweather/feed/ChannelRommendFragment;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public a(Lcom/moji/mjweather/feed/data/ZakerFeed;II)V
.locals 6
.line 44
new-instance p3, Lorg/json/JSONObject;
invoke-direct {p3}, Lorg/json/JSONObject;-><init>()V
:try_start_0
const-string v0, "property1"
.line 46
iget v1, p1, Lcom/moji/mjweather/feed/data/ZakerFeed;->from_type:I
const/4 v2, 0x4
if-eq v1, v2, :cond_1
iget v1, p1, Lcom/moji/mjweather/feed/data/ZakerFeed;->from_type:I
const/4 v2, 0x5
if-ne v1, v2, :cond_0
goto :goto_0
:cond_0
iget-wide v1, p1, Lcom/moji/mjweather/feed/data/ZakerFeed;->feed_id:J
invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v1
goto :goto_1
:cond_1
:goto_0
iget-object v1, p1, Lcom/moji/mjweather/feed/data/ZakerFeed;->full_feed_url:Ljava/lang/String;
:goto_1
invoke-virtual {p3, v0, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
const-string v0, "property2"
.line 47
iget-object v1, p1, Lcom/moji/mjweather/feed/data/ZakerFeed;->previous_feed:Ljava/lang/String;
invoke-virtual {p3, v0, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
const-string v0, "property3"
.line 48
iget-object v1, p1, Lcom/moji/mjweather/feed/data/ZakerFeed;->next_feed:Ljava/lang/String;
invoke-virtual {p3, v0, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
:try_end_0
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_2
:catch_0
move-exception v0
const-string v1, "ChannelRommendFragment"
.line 50
invoke-static {v1, v0}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V
.line 52
:goto_2
iget-object v0, p0, Lcom/moji/mjweather/feed/ChannelRommendFragment$1;->a:Lcom/moji/mjweather/feed/ChannelRommendFragment;
iget v0, v0, Lcom/moji/mjweather/feed/ChannelRommendFragment;->p:I
const/4 v1, 0x1
if-ne v0, v1, :cond_2
.line 53
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
move-result-object v0
sget-object v2, Lcom/moji/statistics/EVENT_TAG;->FEEDS_CATEGORYL_NEW_CLICK:Lcom/moji/statistics/EVENT_TAG;
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
const-string v4, ""
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v4, p0, Lcom/moji/mjweather/feed/ChannelRommendFragment$1;->a:Lcom/moji/mjweather/feed/ChannelRommendFragment;
iget v4, v4, Lcom/moji/mjweather/feed/ChannelRommendFragment;->m:I
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
invoke-virtual {v0, v2, v3, p3}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;Lorg/json/JSONObject;)Lcom/moji/statistics/EventManager;
goto :goto_3
.line 55
:cond_2
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
move-result-object v0
sget-object v2, Lcom/moji/statistics/EVENT_TAG;->FEEDS_CATEGORYL_CLICK:Lcom/moji/statistics/EVENT_TAG;
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
const-string v4, ""
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v4, p0, Lcom/moji/mjweather/feed/ChannelRommendFragment$1;->a:Lcom/moji/mjweather/feed/ChannelRommendFragment;
iget v4, v4, Lcom/moji/mjweather/feed/ChannelRommendFragment;->m:I
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
invoke-virtual {v0, v2, v3, p3}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;Lorg/json/JSONObject;)Lcom/moji/statistics/EventManager;
.line 57
:goto_3
iget v0, p1, Lcom/moji/mjweather/feed/data/ZakerFeed;->reco_type:I
if-ne v0, v1, :cond_3
.line 58
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
move-result-object v0
sget-object v2, Lcom/moji/statistics/EVENT_TAG;->FEEDS_CATEGORYL_OPERATION_CLICK:Lcom/moji/statistics/EVENT_TAG;
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
const-string v4, ""
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-wide v4, p1, Lcom/moji/mjweather/feed/data/ZakerFeed;->feed_id:J
invoke-virtual {v3, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
invoke-virtual {v0, v2, v3, p3}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;Lorg/json/JSONObject;)Lcom/moji/statistics/EventManager;
:cond_3
const/16 p3, 0xa
if-ne p2, p3, :cond_4
.line 61
new-instance p2, Landroid/content/Intent;
invoke-direct {p2}, Landroid/content/Intent;-><init>()V
.line 62
new-instance p3, Landroid/content/ComponentName;
iget-object v0, p0, Lcom/moji/mjweather/feed/ChannelRommendFragment$1;->a:Lcom/moji/mjweather/feed/ChannelRommendFragment;
invoke-virtual {v0}, Lcom/moji/mjweather/feed/ChannelRommendFragment;->getContext()Landroid/content/Context;
move-result-object v0
const-string v2, "com.moji.forum.ui.TopicActivity"
invoke-direct {p3, v0, v2}, Landroid/content/ComponentName;-><init>(Landroid/content/Context;Ljava/lang/String;)V
invoke-virtual {p2, p3}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;
const-string p3, "topic_id"
.line 63
iget-wide v2, p1, Lcom/moji/mjweather/feed/data/ZakerFeed;->id:J
invoke-static {v2, v3}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
move-result-object v0
invoke-virtual {p2, p3, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
.line 64
iget-object p3, p0, Lcom/moji/mjweather/feed/ChannelRommendFragment$1;->a:Lcom/moji/mjweather/feed/ChannelRommendFragment;
invoke-virtual {p3}, Lcom/moji/mjweather/feed/ChannelRommendFragment;->getContext()Landroid/content/Context;
move-result-object p3
invoke-virtual {p3, p2}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
goto :goto_4
.line 67
:cond_4
iget-object p2, p1, Lcom/moji/mjweather/feed/data/ZakerFeed;->feedExpand:Lcom/moji/http/fdsapi/entity/FeedExpand;
if-nez p2, :cond_5
.line 68
iget-object p2, p0, Lcom/moji/mjweather/feed/ChannelRommendFragment$1;->a:Lcom/moji/mjweather/feed/ChannelRommendFragment;
invoke-virtual {p2, p1, v1}, Lcom/moji/mjweather/feed/ChannelRommendFragment;->a(Lcom/moji/mjweather/feed/data/ZakerFeed;Z)V
goto :goto_4
.line 70
:cond_5
iget-object p2, p1, Lcom/moji/mjweather/feed/data/ZakerFeed;->feedExpand:Lcom/moji/http/fdsapi/entity/FeedExpand;
iget p2, p2, Lcom/moji/http/fdsapi/entity/FeedExpand;->wapType:I
if-nez p2, :cond_6
.line 71
iget-object p2, p0, Lcom/moji/mjweather/feed/ChannelRommendFragment$1;->a:Lcom/moji/mjweather/feed/ChannelRommendFragment;
invoke-virtual {p2, p1, v1}, Lcom/moji/mjweather/feed/ChannelRommendFragment;->a(Lcom/moji/mjweather/feed/data/ZakerFeed;Z)V
goto :goto_4
.line 72
:cond_6
iget-object p2, p1, Lcom/moji/mjweather/feed/data/ZakerFeed;->feedExpand:Lcom/moji/http/fdsapi/entity/FeedExpand;
iget p2, p2, Lcom/moji/http/fdsapi/entity/FeedExpand;->wapType:I
if-ne p2, v1, :cond_7
.line 73
iget-object p2, p0, Lcom/moji/mjweather/feed/ChannelRommendFragment$1;->a:Lcom/moji/mjweather/feed/ChannelRommendFragment;
iget-object p3, p1, Lcom/moji/mjweather/feed/data/ZakerFeed;->feedExpand:Lcom/moji/http/fdsapi/entity/FeedExpand;
iget-object p3, p3, Lcom/moji/http/fdsapi/entity/FeedExpand;->thirdUrl:Ljava/lang/String;
invoke-virtual {p2, p3}, Lcom/moji/mjweather/feed/ChannelRommendFragment;->a(Ljava/lang/String;)V
goto :goto_4
.line 74
:cond_7
iget-object p2, p1, Lcom/moji/mjweather/feed/data/ZakerFeed;->feedExpand:Lcom/moji/http/fdsapi/entity/FeedExpand;
iget p2, p2, Lcom/moji/http/fdsapi/entity/FeedExpand;->wapType:I
const/4 p3, 0x2
if-ne p2, p3, :cond_8
.line 75
iget-object p2, p0, Lcom/moji/mjweather/feed/ChannelRommendFragment$1;->a:Lcom/moji/mjweather/feed/ChannelRommendFragment;
iget-object p3, p1, Lcom/moji/mjweather/feed/data/ZakerFeed;->feedExpand:Lcom/moji/http/fdsapi/entity/FeedExpand;
iget-object p3, p3, Lcom/moji/http/fdsapi/entity/FeedExpand;->thirdUrl:Ljava/lang/String;
invoke-virtual {p2, p3}, Lcom/moji/mjweather/feed/ChannelRommendFragment;->b(Ljava/lang/String;)V
goto :goto_4
.line 76
:cond_8
iget-object p2, p1, Lcom/moji/mjweather/feed/data/ZakerFeed;->feedExpand:Lcom/moji/http/fdsapi/entity/FeedExpand;
iget p2, p2, Lcom/moji/http/fdsapi/entity/FeedExpand;->wapType:I
const/4 p3, 0x3
if-ne p2, p3, :cond_9
.line 77
new-instance p2, Lcom/moji/credit/util/GoToCreditPage;
invoke-direct {p2}, Lcom/moji/credit/util/GoToCreditPage;-><init>()V
iget-object p3, p1, Lcom/moji/mjweather/feed/data/ZakerFeed;->feedExpand:Lcom/moji/http/fdsapi/entity/FeedExpand;
iget-object p3, p3, Lcom/moji/http/fdsapi/entity/FeedExpand;->thirdUrl:Ljava/lang/String;
iget-object v0, p0, Lcom/moji/mjweather/feed/ChannelRommendFragment$1;->a:Lcom/moji/mjweather/feed/ChannelRommendFragment;
invoke-virtual {v0}, Lcom/moji/mjweather/feed/ChannelRommendFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;
move-result-object v0
invoke-virtual {p2, p3, v0}, Lcom/moji/credit/util/GoToCreditPage;->a(Ljava/lang/String;Landroid/content/Context;)V
goto :goto_4
.line 79
:cond_9
iget-object p2, p0, Lcom/moji/mjweather/feed/ChannelRommendFragment$1;->a:Lcom/moji/mjweather/feed/ChannelRommendFragment;
invoke-virtual {p2, p1, v1}, Lcom/moji/mjweather/feed/ChannelRommendFragment;->a(Lcom/moji/mjweather/feed/data/ZakerFeed;Z)V
:goto_4
if-eqz p1, :cond_d
.line 83
iget p2, p1, Lcom/moji/mjweather/feed/data/ZakerFeed;->show_type:I
const/4 p3, -0x2
if-eq p2, p3, :cond_d
.line 87
iget p2, p1, Lcom/moji/mjweather/feed/data/ZakerFeed;->show_type:I
const/4 p3, 0x7
if-eq p2, p3, :cond_b
iget p2, p1, Lcom/moji/mjweather/feed/data/ZakerFeed;->show_type:I
const/16 p3, 0x9
if-ne p2, p3, :cond_a
goto :goto_5
:cond_a
const/4 p2, 0x0
goto :goto_6
:cond_b
:goto_5
const/4 p2, 0x1
.line 92
:goto_6
iget-object p3, p0, Lcom/moji/mjweather/feed/ChannelRommendFragment$1;->a:Lcom/moji/mjweather/feed/ChannelRommendFragment;
iget p3, p3, Lcom/moji/mjweather/feed/ChannelRommendFragment;->p:I
if-nez p3, :cond_c
const/16 p3, 0xfa4
goto :goto_7
:cond_c
const/16 p3, 0xfa7
.line 97
:goto_7
invoke-static {}, Lcom/moji/mjad/statistics/StatReportManager;->a()Lcom/moji/mjad/statistics/StatReportManager;
move-result-object v0
iget-object v2, p1, Lcom/moji/mjweather/feed/data/ZakerFeed;->full_feed_url:Ljava/lang/String;
invoke-virtual {v0, v2, p3, p2}, Lcom/moji/mjad/statistics/StatReportManager;->a(Ljava/lang/String;IZ)V
.line 101
:cond_d
iput-boolean v1, p1, Lcom/moji/mjweather/feed/data/ZakerFeed;->clicked:Z
.line 102
iget-object p1, p0, Lcom/moji/mjweather/feed/ChannelRommendFragment$1;->a:Lcom/moji/mjweather/feed/ChannelRommendFragment;
iget-object p1, p1, Lcom/moji/mjweather/feed/ChannelRommendFragment;->b:Landroid/support/v7/widget/RecyclerView;
new-instance p2, Lcom/moji/mjweather/feed/ChannelRommendFragment$1$1;
invoke-direct {p2, p0}, Lcom/moji/mjweather/feed/ChannelRommendFragment$1$1;-><init>(Lcom/moji/mjweather/feed/ChannelRommendFragment$1;)V
const-wide/16 v0, 0x1f4
invoke-virtual {p1, p2, v0, v1}, Landroid/support/v7/widget/RecyclerView;->postDelayed(Ljava/lang/Runnable;J)Z
return-void
.end method