835 lines
21 KiB
Smali
835 lines
21 KiB
Smali
.class public Lcom/moji/index/IndexActivity;
|
|
.super Lcom/moji/base/MJActivity;
|
|
.source "IndexActivity.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/moji/base/ISwitchFrontAndBack;
|
|
|
|
|
|
# annotations
|
|
.annotation build Lcom/moji/router/annotation/Router;
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final INDEX_ID:Ljava/lang/String; = "index_type"
|
|
|
|
.field public static final INDEX_SENSE:Ljava/lang/String; = "sense"
|
|
|
|
|
|
# instance fields
|
|
.field private a:Landroid/support/v4/view/ViewPager;
|
|
|
|
.field private b:Lcom/moji/index/IndexPagerAdapter;
|
|
|
|
.field private c:Lcom/moji/viewpagerindicator/UnderlinePageIndicator;
|
|
|
|
.field private i:Landroid/widget/RadioGroup;
|
|
|
|
.field private j:Ljava/lang/String;
|
|
|
|
.field private k:J
|
|
|
|
.field private l:Lorg/json/JSONObject;
|
|
|
|
.field private m:Z
|
|
|
|
.field private n:Ljava/lang/String;
|
|
|
|
.field private o:Ljava/lang/String;
|
|
|
|
.field private p:Ljava/lang/String;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 26
|
|
invoke-direct {p0}, Lcom/moji/base/MJActivity;-><init>()V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 39
|
|
iput-boolean v0, p0, Lcom/moji/index/IndexActivity;->m:Z
|
|
|
|
const-string v0, ""
|
|
|
|
.line 42
|
|
iput-object v0, p0, Lcom/moji/index/IndexActivity;->p:Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/index/IndexActivity;)Landroid/support/v4/view/ViewPager;
|
|
.locals 0
|
|
|
|
.line 26
|
|
iget-object p0, p0, Lcom/moji/index/IndexActivity;->a:Landroid/support/v4/view/ViewPager;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private a()V
|
|
.locals 7
|
|
|
|
.line 125
|
|
sget v0, Lcom/moji/index/R$id;->index_title:I
|
|
|
|
invoke-virtual {p0, v0}, Lcom/moji/index/IndexActivity;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/moji/titlebar/MJTitleBar;
|
|
|
|
.line 126
|
|
iget-object v1, p0, Lcom/moji/index/IndexActivity;->n:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/titlebar/MJTitleBar;->setTitleText(Ljava/lang/CharSequence;)V
|
|
|
|
.line 134
|
|
sget v0, Lcom/moji/index/R$id;->viewpage:I
|
|
|
|
invoke-virtual {p0, v0}, Lcom/moji/index/IndexActivity;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/support/v4/view/ViewPager;
|
|
|
|
iput-object v0, p0, Lcom/moji/index/IndexActivity;->a:Landroid/support/v4/view/ViewPager;
|
|
|
|
.line 135
|
|
new-instance v0, Lcom/moji/index/IndexPagerAdapter;
|
|
|
|
invoke-virtual {p0}, Lcom/moji/index/IndexActivity;->getSupportFragmentManager()Landroid/support/v4/app/FragmentManager;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v3, p0, Lcom/moji/index/IndexActivity;->j:Ljava/lang/String;
|
|
|
|
iget-object v4, p0, Lcom/moji/index/IndexActivity;->o:Ljava/lang/String;
|
|
|
|
iget-object v5, p0, Lcom/moji/index/IndexActivity;->n:Ljava/lang/String;
|
|
|
|
iget-object v6, p0, Lcom/moji/index/IndexActivity;->p:Ljava/lang/String;
|
|
|
|
move-object v1, v0
|
|
|
|
invoke-direct/range {v1 .. v6}, Lcom/moji/index/IndexPagerAdapter;-><init>(Landroid/support/v4/app/FragmentManager;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
iput-object v0, p0, Lcom/moji/index/IndexActivity;->b:Lcom/moji/index/IndexPagerAdapter;
|
|
|
|
.line 136
|
|
iget-object v0, p0, Lcom/moji/index/IndexActivity;->a:Landroid/support/v4/view/ViewPager;
|
|
|
|
iget-object v1, p0, Lcom/moji/index/IndexActivity;->b:Lcom/moji/index/IndexPagerAdapter;
|
|
|
|
invoke-virtual {v0, v1}, Landroid/support/v4/view/ViewPager;->setAdapter(Landroid/support/v4/view/PagerAdapter;)V
|
|
|
|
.line 137
|
|
iget-object v0, p0, Lcom/moji/index/IndexActivity;->a:Landroid/support/v4/view/ViewPager;
|
|
|
|
const/4 v1, 0x2
|
|
|
|
invoke-virtual {v0, v1}, Landroid/support/v4/view/ViewPager;->setOffscreenPageLimit(I)V
|
|
|
|
.line 138
|
|
sget v0, Lcom/moji/index/R$id;->indicator:I
|
|
|
|
invoke-virtual {p0, v0}, Lcom/moji/index/IndexActivity;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/moji/viewpagerindicator/UnderlinePageIndicator;
|
|
|
|
iput-object v0, p0, Lcom/moji/index/IndexActivity;->c:Lcom/moji/viewpagerindicator/UnderlinePageIndicator;
|
|
|
|
.line 139
|
|
iget-object v0, p0, Lcom/moji/index/IndexActivity;->c:Lcom/moji/viewpagerindicator/UnderlinePageIndicator;
|
|
|
|
iget-object v1, p0, Lcom/moji/index/IndexActivity;->a:Landroid/support/v4/view/ViewPager;
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/viewpagerindicator/UnderlinePageIndicator;->setViewPager(Landroid/support/v4/view/ViewPager;)V
|
|
|
|
.line 140
|
|
sget v0, Lcom/moji/index/R$id;->radio_group:I
|
|
|
|
invoke-virtual {p0, v0}, Lcom/moji/index/IndexActivity;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/RadioGroup;
|
|
|
|
iput-object v0, p0, Lcom/moji/index/IndexActivity;->i:Landroid/widget/RadioGroup;
|
|
|
|
.line 141
|
|
iget-object v0, p0, Lcom/moji/index/IndexActivity;->i:Landroid/widget/RadioGroup;
|
|
|
|
new-instance v1, Lcom/moji/index/IndexActivity$2;
|
|
|
|
invoke-direct {v1, p0}, Lcom/moji/index/IndexActivity$2;-><init>(Lcom/moji/index/IndexActivity;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/RadioGroup;->setOnCheckedChangeListener(Landroid/widget/RadioGroup$OnCheckedChangeListener;)V
|
|
|
|
.line 149
|
|
iget-object v0, p0, Lcom/moji/index/IndexActivity;->a:Landroid/support/v4/view/ViewPager;
|
|
|
|
new-instance v1, Lcom/moji/index/IndexActivity$3;
|
|
|
|
invoke-direct {v1, p0}, Lcom/moji/index/IndexActivity$3;-><init>(Lcom/moji/index/IndexActivity;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/support/v4/view/ViewPager;->addOnPageChangeListener(Landroid/support/v4/view/ViewPager$OnPageChangeListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/index/IndexActivity;Ljava/lang/String;)V
|
|
.locals 0
|
|
|
|
.line 26
|
|
invoke-direct {p0, p1}, Lcom/moji/index/IndexActivity;->a(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private a(Ljava/lang/String;)V
|
|
.locals 3
|
|
|
|
.line 75
|
|
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v1, Lcom/moji/statistics/EVENT_TAG;->INDEX_VIEW_SHOW:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
iget-object v2, p0, Lcom/moji/index/IndexActivity;->l:Lorg/json/JSONObject;
|
|
|
|
invoke-virtual {v0, v1, p1, v2}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;Lorg/json/JSONObject;)Lcom/moji/statistics/EventManager;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private a(Z)Z
|
|
.locals 0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 112
|
|
invoke-static {}, Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayer;->o()Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
|
|
.line 114
|
|
:cond_0
|
|
invoke-static {}, Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayer;->t()V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method static synthetic b(Lcom/moji/index/IndexActivity;)Landroid/widget/RadioGroup;
|
|
.locals 0
|
|
|
|
.line 26
|
|
iget-object p0, p0, Lcom/moji/index/IndexActivity;->i:Landroid/widget/RadioGroup;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static start(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
|
|
.locals 2
|
|
|
|
.line 45
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
const-class v1, Lcom/moji/index/IndexActivity;
|
|
|
|
invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
|
|
|
|
const-string v1, "index_type"
|
|
|
|
.line 46
|
|
invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
const-string p1, "title"
|
|
|
|
.line 47
|
|
invoke-virtual {v0, p1, p3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
const-string p1, "level"
|
|
|
|
.line 48
|
|
invoke-virtual {v0, p1, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
.line 49
|
|
invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public StatisticShow()V
|
|
.locals 3
|
|
|
|
.line 197
|
|
iget-object v0, p0, Lcom/moji/index/IndexActivity;->j:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v1
|
|
|
|
const/16 v2, 0x37
|
|
|
|
if-eq v1, v2, :cond_2
|
|
|
|
const/16 v2, 0x63e
|
|
|
|
if-eq v1, v2, :cond_1
|
|
|
|
const/16 v2, 0x646
|
|
|
|
if-eq v1, v2, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-string v1, "28"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const-string v1, "20"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const-string v1, "7"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
const/4 v0, 0x2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
:goto_0
|
|
const/4 v0, -0x1
|
|
|
|
:goto_1
|
|
packed-switch v0, :pswitch_data_0
|
|
|
|
goto :goto_2
|
|
|
|
.line 205
|
|
:pswitch_0
|
|
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v1, Lcom/moji/statistics/EVENT_TAG;->INDEX_FACE_SHOW:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;)Lcom/moji/statistics/EventManager;
|
|
|
|
goto :goto_2
|
|
|
|
.line 202
|
|
:pswitch_1
|
|
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v1, Lcom/moji/statistics/EVENT_TAG;->INDEX_FISH_SHOW:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;)Lcom/moji/statistics/EventManager;
|
|
|
|
goto :goto_2
|
|
|
|
.line 199
|
|
:pswitch_2
|
|
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v1, Lcom/moji/statistics/EVENT_TAG;->INDEX_DRESS_SHOW:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;)Lcom/moji/statistics/EventManager;
|
|
|
|
:goto_2
|
|
return-void
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x0
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method public onBackPressed()V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 187
|
|
:try_start_0
|
|
invoke-direct {p0, v0}, Lcom/moji/index/IndexActivity;->a(Z)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 190
|
|
:cond_0
|
|
invoke-super {p0}, Lcom/moji/base/MJActivity;->onBackPressed()V
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
:catch_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onBackToForeground()V
|
|
.locals 1
|
|
|
|
.line 173
|
|
iget-object v0, p0, Lcom/moji/index/IndexActivity;->b:Lcom/moji/index/IndexPagerAdapter;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/moji/index/IndexActivity;->b:Lcom/moji/index/IndexPagerAdapter;
|
|
|
|
iget-object v0, v0, Lcom/moji/index/IndexPagerAdapter;->a:Lcom/moji/index/IndexFragment;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 174
|
|
iget-object v0, p0, Lcom/moji/index/IndexActivity;->b:Lcom/moji/index/IndexPagerAdapter;
|
|
|
|
iget-object v0, v0, Lcom/moji/index/IndexPagerAdapter;->a:Lcom/moji/index/IndexFragment;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/index/IndexFragment;->d()V
|
|
|
|
.line 175
|
|
iget-object v0, p0, Lcom/moji/index/IndexActivity;->b:Lcom/moji/index/IndexPagerAdapter;
|
|
|
|
iget-object v0, v0, Lcom/moji/index/IndexPagerAdapter;->a:Lcom/moji/index/IndexFragment;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/index/IndexFragment;->c()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method protected onCreate(Landroid/os/Bundle;)V
|
|
.locals 2
|
|
|
|
.line 54
|
|
invoke-super {p0, p1}, Lcom/moji/base/MJActivity;->onCreate(Landroid/os/Bundle;)V
|
|
|
|
.line 55
|
|
iput-object p0, p0, Lcom/moji/index/IndexActivity;->f:Lcom/moji/base/ISwitchFrontAndBack;
|
|
|
|
.line 56
|
|
sget p1, Lcom/moji/index/R$layout;->activity_index:I
|
|
|
|
invoke-virtual {p0, p1}, Lcom/moji/index/IndexActivity;->setContentView(I)V
|
|
|
|
.line 57
|
|
new-instance p1, Lorg/json/JSONObject;
|
|
|
|
invoke-direct {p1}, Lorg/json/JSONObject;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/moji/index/IndexActivity;->l:Lorg/json/JSONObject;
|
|
|
|
.line 58
|
|
invoke-virtual {p0}, Lcom/moji/index/IndexActivity;->getIntent()Landroid/content/Intent;
|
|
|
|
move-result-object p1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string v0, "index_type"
|
|
|
|
.line 60
|
|
invoke-virtual {p1, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/moji/index/IndexActivity;->j:Ljava/lang/String;
|
|
|
|
const-string v0, "title"
|
|
|
|
.line 61
|
|
invoke-virtual {p1, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/moji/index/IndexActivity;->n:Ljava/lang/String;
|
|
|
|
const-string v0, "level"
|
|
|
|
.line 62
|
|
invoke-virtual {p1, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/moji/index/IndexActivity;->o:Ljava/lang/String;
|
|
|
|
const-string v0, "sense"
|
|
|
|
.line 63
|
|
invoke-virtual {p1, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/moji/index/IndexActivity;->p:Ljava/lang/String;
|
|
|
|
.line 65
|
|
:try_start_0
|
|
iget-object p1, p0, Lcom/moji/index/IndexActivity;->l:Lorg/json/JSONObject;
|
|
|
|
const-string v0, "property1"
|
|
|
|
iget-object v1, p0, Lcom/moji/index/IndexActivity;->j:Ljava/lang/String;
|
|
|
|
invoke-virtual {p1, 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_0
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
const-string v0, "IndexActivity"
|
|
|
|
.line 67
|
|
invoke-static {v0, p1}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
:goto_0
|
|
const-string p1, "1"
|
|
|
|
.line 69
|
|
invoke-direct {p0, p1}, Lcom/moji/index/IndexActivity;->a(Ljava/lang/String;)V
|
|
|
|
.line 70
|
|
invoke-virtual {p0}, Lcom/moji/index/IndexActivity;->StatisticShow()V
|
|
|
|
.line 71
|
|
invoke-direct {p0}, Lcom/moji/index/IndexActivity;->a()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onForeToBackground()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected onPause()V
|
|
.locals 2
|
|
|
|
.line 101
|
|
invoke-super {p0}, Lcom/moji/base/MJActivity;->onPause()V
|
|
|
|
.line 102
|
|
new-instance v0, Lcom/moji/mjad/AdSdk;
|
|
|
|
invoke-direct {v0}, Lcom/moji/mjad/AdSdk;-><init>()V
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, v1, p0}, Lcom/moji/mjad/AdSdk;->a(ZLandroid/content/Context;)V
|
|
|
|
.line 103
|
|
iget-object v0, p0, Lcom/moji/index/IndexActivity;->b:Lcom/moji/index/IndexPagerAdapter;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 104
|
|
iget-object v0, p0, Lcom/moji/index/IndexActivity;->b:Lcom/moji/index/IndexPagerAdapter;
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/index/IndexPagerAdapter;->a(Z)V
|
|
|
|
.line 106
|
|
:cond_0
|
|
invoke-static {}, Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayer;->s()V
|
|
|
|
.line 107
|
|
invoke-virtual {p0}, Lcom/moji/index/IndexActivity;->showTime()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected onResume()V
|
|
.locals 5
|
|
|
|
.line 80
|
|
invoke-super {p0}, Lcom/moji/base/MJActivity;->onResume()V
|
|
|
|
.line 81
|
|
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
|
|
|
move-result-wide v0
|
|
|
|
iput-wide v0, p0, Lcom/moji/index/IndexActivity;->k:J
|
|
|
|
.line 82
|
|
iget-object v0, p0, Lcom/moji/index/IndexActivity;->b:Lcom/moji/index/IndexPagerAdapter;
|
|
|
|
iget-object v1, p0, Lcom/moji/index/IndexActivity;->a:Landroid/support/v4/view/ViewPager;
|
|
|
|
invoke-virtual {v1}, Landroid/support/v4/view/ViewPager;->getCurrentItem()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/index/IndexPagerAdapter;->a(I)Lcom/moji/index/IndexFragment;
|
|
|
|
move-result-object v0
|
|
|
|
.line 83
|
|
iget-boolean v1, p0, Lcom/moji/index/IndexActivity;->m:Z
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 84
|
|
iget-object v1, p0, Lcom/moji/index/IndexActivity;->a:Landroid/support/v4/view/ViewPager;
|
|
|
|
new-instance v2, Lcom/moji/index/IndexActivity$1;
|
|
|
|
invoke-direct {v2, p0, v0}, Lcom/moji/index/IndexActivity$1;-><init>(Lcom/moji/index/IndexActivity;Lcom/moji/index/IndexFragment;)V
|
|
|
|
const-wide/16 v3, 0x1f4
|
|
|
|
invoke-virtual {v1, v2, v3, v4}, Landroid/support/v4/view/ViewPager;->postDelayed(Ljava/lang/Runnable;J)Z
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 91
|
|
iput-boolean v0, p0, Lcom/moji/index/IndexActivity;->m:Z
|
|
|
|
.line 92
|
|
new-instance v1, Lcom/moji/mjad/AdSdk;
|
|
|
|
invoke-direct {v1}, Lcom/moji/mjad/AdSdk;-><init>()V
|
|
|
|
const/4 v2, 0x1
|
|
|
|
invoke-virtual {v1, v2, p0}, Lcom/moji/mjad/AdSdk;->a(ZLandroid/content/Context;)V
|
|
|
|
.line 93
|
|
iget-object v1, p0, Lcom/moji/index/IndexActivity;->b:Lcom/moji/index/IndexPagerAdapter;
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 94
|
|
iget-object v1, p0, Lcom/moji/index/IndexActivity;->b:Lcom/moji/index/IndexPagerAdapter;
|
|
|
|
invoke-virtual {v1, v2}, Lcom/moji/index/IndexPagerAdapter;->a(Z)V
|
|
|
|
.line 96
|
|
:cond_1
|
|
invoke-direct {p0, v0}, Lcom/moji/index/IndexActivity;->a(Z)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected onStop()V
|
|
.locals 7
|
|
|
|
.line 120
|
|
invoke-super {p0}, Lcom/moji/base/MJActivity;->onStop()V
|
|
|
|
.line 121
|
|
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v1, Lcom/moji/statistics/EVENT_TAG;->WEATHER_INDEX_TIME:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
iget-object v2, p0, Lcom/moji/index/IndexActivity;->j:Ljava/lang/String;
|
|
|
|
invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
|
|
|
move-result-wide v3
|
|
|
|
iget-wide v5, p0, Lcom/moji/index/IndexActivity;->k:J
|
|
|
|
sub-long/2addr v3, v5
|
|
|
|
invoke-virtual {v0, v1, v2, v3, v4}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;J)Lcom/moji/statistics/EventManager;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public showTime()V
|
|
.locals 5
|
|
|
|
.line 211
|
|
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
|
|
|
move-result-wide v0
|
|
|
|
iget-wide v2, p0, Lcom/moji/index/IndexActivity;->k:J
|
|
|
|
sub-long/2addr v0, v2
|
|
|
|
.line 212
|
|
iget-object v2, p0, Lcom/moji/index/IndexActivity;->j:Ljava/lang/String;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v3
|
|
|
|
const/16 v4, 0x37
|
|
|
|
if-eq v3, v4, :cond_2
|
|
|
|
const/16 v4, 0x63e
|
|
|
|
if-eq v3, v4, :cond_1
|
|
|
|
const/16 v4, 0x646
|
|
|
|
if-eq v3, v4, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-string v3, "28"
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
const/4 v2, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const-string v3, "20"
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
const/4 v2, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const-string v3, "7"
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
const/4 v2, 0x2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
:goto_0
|
|
const/4 v2, -0x1
|
|
|
|
:goto_1
|
|
packed-switch v2, :pswitch_data_0
|
|
|
|
goto :goto_2
|
|
|
|
.line 220
|
|
:pswitch_0
|
|
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
|
|
|
|
move-result-object v2
|
|
|
|
sget-object v3, Lcom/moji/statistics/EVENT_TAG;->INDEX_FACE_TIME:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
const-string v4, ""
|
|
|
|
invoke-virtual {v2, v3, v4, v0, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;J)Lcom/moji/statistics/EventManager;
|
|
|
|
goto :goto_2
|
|
|
|
.line 217
|
|
:pswitch_1
|
|
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
|
|
|
|
move-result-object v2
|
|
|
|
sget-object v3, Lcom/moji/statistics/EVENT_TAG;->INDEX_FISH_TIME:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
const-string v4, ""
|
|
|
|
invoke-virtual {v2, v3, v4, v0, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;J)Lcom/moji/statistics/EventManager;
|
|
|
|
goto :goto_2
|
|
|
|
.line 214
|
|
:pswitch_2
|
|
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
|
|
|
|
move-result-object v2
|
|
|
|
sget-object v3, Lcom/moji/statistics/EVENT_TAG;->INDEX_DRESS_TIME:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
const-string v4, ""
|
|
|
|
invoke-virtual {v2, v3, v4, v0, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;J)Lcom/moji/statistics/EventManager;
|
|
|
|
:goto_2
|
|
return-void
|
|
|
|
nop
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x0
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|