361 lines
9.6 KiB
Smali
361 lines
9.6 KiB
Smali
.class public Lcom/moji/mjweather/TableScreenActivity;
|
|
.super Lcom/moji/base/MJActivity;
|
|
.source "TableScreenActivity.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/moji/mjad/splash/view/SplashAdView$OnFinishListener;
|
|
|
|
|
|
# instance fields
|
|
.field private a:Ljava/lang/String;
|
|
|
|
.field private b:Lcom/moji/mjad/splash/view/SplashAdView;
|
|
|
|
.field private c:Landroid/widget/LinearLayout;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 30
|
|
invoke-direct {p0}, Lcom/moji/base/MJActivity;-><init>()V
|
|
|
|
const-string v0, ""
|
|
|
|
.line 32
|
|
iput-object v0, p0, Lcom/moji/mjweather/TableScreenActivity;->a:Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method protected f()Z
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public finish()V
|
|
.locals 2
|
|
|
|
.line 101
|
|
invoke-super {p0}, Lcom/moji/base/MJActivity;->finish()V
|
|
|
|
.line 102
|
|
invoke-static {}, Lcom/moji/mjad/statistics/AdStatistics;->a()Lcom/moji/mjad/statistics/AdStatistics;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/moji/mjweather/TableScreenActivity;->a:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/mjad/statistics/AdStatistics;->k(Ljava/lang/String;)V
|
|
|
|
.line 103
|
|
iget-object v0, p0, Lcom/moji/mjweather/TableScreenActivity;->b:Lcom/moji/mjad/splash/view/SplashAdView;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 104
|
|
iget-object v0, p0, Lcom/moji/mjweather/TableScreenActivity;->b:Lcom/moji/mjad/splash/view/SplashAdView;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/mjad/splash/view/SplashAdView;->b()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onBackPressed()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected onCreate(Landroid/os/Bundle;)V
|
|
.locals 5
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 37
|
|
invoke-virtual {p0, v0}, Lcom/moji/mjweather/TableScreenActivity;->requestWindowFeature(I)Z
|
|
|
|
.line 38
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/TableScreenActivity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object v0
|
|
|
|
const/16 v1, 0x400
|
|
|
|
invoke-virtual {v0, v1, v1}, Landroid/view/Window;->setFlags(II)V
|
|
|
|
.line 40
|
|
invoke-super {p0, p1}, Lcom/moji/base/MJActivity;->onCreate(Landroid/os/Bundle;)V
|
|
|
|
const p1, 0x7f0b0082
|
|
|
|
.line 42
|
|
invoke-virtual {p0, p1}, Lcom/moji/mjweather/TableScreenActivity;->setContentView(I)V
|
|
|
|
.line 43
|
|
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v0, Lcom/moji/statistics/EVENT_TAG;->NEW_AD_SPLASH_SHOW_TYPE:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
const-string v1, "1"
|
|
|
|
invoke-virtual {p1, v0, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;
|
|
|
|
.line 44
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/TableScreenActivity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Landroid/view/Window;->getDecorView()Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Lcom/moji/tool/MeizuTool;->a(Landroid/view/View;)V
|
|
|
|
const p1, 0x7f090543
|
|
|
|
.line 45
|
|
invoke-virtual {p0, p1}, Lcom/moji/mjweather/TableScreenActivity;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/widget/LinearLayout;
|
|
|
|
iput-object p1, p0, Lcom/moji/mjweather/TableScreenActivity;->c:Landroid/widget/LinearLayout;
|
|
|
|
.line 46
|
|
new-instance p1, Lcom/moji/mjad/splash/view/SplashAdView;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-direct {p1, p0, v0}, Lcom/moji/mjad/splash/view/SplashAdView;-><init>(Landroid/content/Context;Z)V
|
|
|
|
iput-object p1, p0, Lcom/moji/mjweather/TableScreenActivity;->b:Lcom/moji/mjad/splash/view/SplashAdView;
|
|
|
|
.line 47
|
|
new-instance p1, Landroid/widget/LinearLayout$LayoutParams;
|
|
|
|
const/4 v0, -0x1
|
|
|
|
invoke-direct {p1, v0, v0}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V
|
|
|
|
.line 49
|
|
iget-object v0, p0, Lcom/moji/mjweather/TableScreenActivity;->c:Landroid/widget/LinearLayout;
|
|
|
|
iget-object v1, p0, Lcom/moji/mjweather/TableScreenActivity;->b:Lcom/moji/mjad/splash/view/SplashAdView;
|
|
|
|
invoke-virtual {v0, v1, p1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
.line 50
|
|
iget-object p1, p0, Lcom/moji/mjweather/TableScreenActivity;->b:Lcom/moji/mjad/splash/view/SplashAdView;
|
|
|
|
invoke-virtual {p1, p0}, Lcom/moji/mjad/splash/view/SplashAdView;->setOnFinishListener(Lcom/moji/mjad/splash/view/SplashAdView$OnFinishListener;)V
|
|
|
|
.line 51
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/TableScreenActivity;->getIntent()Landroid/content/Intent;
|
|
|
|
move-result-object p1
|
|
|
|
const-wide/16 v0, 0xc8
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 56
|
|
invoke-virtual {p1}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
const-string v2, "ad_splash_session_id"
|
|
|
|
.line 58
|
|
invoke-virtual {p1, v2}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
iput-object v2, p0, Lcom/moji/mjweather/TableScreenActivity;->a:Ljava/lang/String;
|
|
|
|
const-string v2, "ad_splash"
|
|
|
|
.line 59
|
|
invoke-virtual {p1, v2}, Landroid/os/Bundle;->getSerializable(Ljava/lang/String;)Ljava/io/Serializable;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lcom/moji/mjad/splash/data/AdMojiSplash;
|
|
|
|
const-string v3, "ad_third_time_out"
|
|
|
|
.line 60
|
|
invoke-virtual {p1, v3}, Landroid/os/Bundle;->getLong(Ljava/lang/String;)J
|
|
|
|
move-result-wide v3
|
|
|
|
cmp-long p1, v3, v0
|
|
|
|
if-gtz p1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-wide v0, v3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v2, :cond_3
|
|
|
|
.line 64
|
|
invoke-virtual {v2}, Lcom/moji/mjad/splash/data/AdMojiSplash;->isValid()Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
.line 68
|
|
:cond_2
|
|
iget-object p1, v2, Lcom/moji/mjad/splash/data/AdMojiSplash;->adPositionStat:Lcom/moji/mjad/enumdata/MojiAdPositionStat;
|
|
|
|
sget-object v3, Lcom/moji/mjad/enumdata/MojiAdPositionStat;->AD_THIRD_SDK_PRIORITY:Lcom/moji/mjad/enumdata/MojiAdPositionStat;
|
|
|
|
if-ne p1, v3, :cond_4
|
|
|
|
iget-object p1, v2, Lcom/moji/mjad/splash/data/AdMojiSplash;->thirdSpalsh:Lcom/moji/mjad/splash/data/AdSplashThird;
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
iget-object p1, v2, Lcom/moji/mjad/splash/data/AdMojiSplash;->thirdSpalsh:Lcom/moji/mjad/splash/data/AdSplashThird;
|
|
|
|
iget-object p1, p1, Lcom/moji/mjad/splash/data/AdSplashThird;->partener:Lcom/moji/mjad/enumdata/ThirdAdPartener;
|
|
|
|
sget-object v3, Lcom/moji/mjad/enumdata/ThirdAdPartener;->PARTENER_GDT:Lcom/moji/mjad/enumdata/ThirdAdPartener;
|
|
|
|
if-ne p1, v3, :cond_4
|
|
|
|
.line 69
|
|
iget-object p1, p0, Lcom/moji/mjweather/TableScreenActivity;->b:Lcom/moji/mjad/splash/view/SplashAdView;
|
|
|
|
invoke-virtual {p1, p0}, Lcom/moji/mjad/splash/view/SplashAdView;->setActivity(Landroid/app/Activity;)V
|
|
|
|
.line 70
|
|
iget-object p1, p0, Lcom/moji/mjweather/TableScreenActivity;->b:Lcom/moji/mjad/splash/view/SplashAdView;
|
|
|
|
long-to-int v0, v0
|
|
|
|
invoke-virtual {p1, v0}, Lcom/moji/mjad/splash/view/SplashAdView;->setThirdTimeOut(I)V
|
|
|
|
goto :goto_2
|
|
|
|
.line 65
|
|
:cond_3
|
|
:goto_1
|
|
invoke-static {}, Lcom/moji/mjad/statistics/AdStatistics;->a()Lcom/moji/mjad/statistics/AdStatistics;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object v0, p0, Lcom/moji/mjweather/TableScreenActivity;->a:Ljava/lang/String;
|
|
|
|
invoke-virtual {p1, v0}, Lcom/moji/mjad/statistics/AdStatistics;->e(Ljava/lang/String;)V
|
|
|
|
.line 66
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/TableScreenActivity;->finish()V
|
|
|
|
.line 73
|
|
:cond_4
|
|
:goto_2
|
|
iget-object p1, p0, Lcom/moji/mjweather/TableScreenActivity;->b:Lcom/moji/mjad/splash/view/SplashAdView;
|
|
|
|
invoke-virtual {p1, v2}, Lcom/moji/mjad/splash/view/SplashAdView;->setBgData(Lcom/moji/mjad/splash/data/AdMojiSplash;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onSplashFinish(Z)V
|
|
.locals 1
|
|
|
|
.line 77
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/TableScreenActivity;->finish()V
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const p1, 0x7f01000a
|
|
|
|
const v0, 0x7f01000b
|
|
|
|
.line 79
|
|
invoke-virtual {p0, p1, v0}, Lcom/moji/mjweather/TableScreenActivity;->overridePendingTransition(II)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onSplashVideo(Lcom/moji/mjad/splash/data/AdSplashVideo;)V
|
|
.locals 3
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 86
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
const-class v1, Lcom/moji/mjad/splash/activity/SplashVideoTransActivity;
|
|
|
|
invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
|
|
|
|
.line 87
|
|
new-instance v1, Landroid/os/Bundle;
|
|
|
|
invoke-direct {v1}, Landroid/os/Bundle;-><init>()V
|
|
|
|
const-string v2, "ad_splash"
|
|
|
|
.line 88
|
|
invoke-virtual {v1, v2, p1}, Landroid/os/Bundle;->putSerializable(Ljava/lang/String;Ljava/io/Serializable;)V
|
|
|
|
const-string p1, "if_show_default"
|
|
|
|
const/4 v2, 0x0
|
|
|
|
.line 89
|
|
invoke-virtual {v1, p1, v2}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V
|
|
|
|
.line 90
|
|
invoke-virtual {v0, v1}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;
|
|
|
|
.line 91
|
|
invoke-virtual {p0, v0}, Lcom/moji/mjweather/TableScreenActivity;->startActivity(Landroid/content/Intent;)V
|
|
|
|
.line 92
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/TableScreenActivity;->finish()V
|
|
|
|
const p1, 0x7f01000a
|
|
|
|
const v0, 0x7f010024
|
|
|
|
.line 93
|
|
invoke-virtual {p0, p1, v0}, Lcom/moji/mjweather/TableScreenActivity;->overridePendingTransition(II)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 95
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/TableScreenActivity;->finish()V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|