1607 lines
41 KiB
Smali
1607 lines
41 KiB
Smali
.class public Lcom/moji/weathersence/MJSceneManager;
|
|
.super Ljava/lang/Object;
|
|
.source "MJSceneManager.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/moji/weathersence/MJSceneManager$AvatarScreenShotListener;,
|
|
Lcom/moji/weathersence/MJSceneManager$AdAnimationPlayStatus;,
|
|
Lcom/moji/weathersence/MJSceneManager$MJSceneManagerHolder;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public a:Lcom/moji/preferences/ProcessPrefer;
|
|
|
|
.field private b:I
|
|
|
|
.field private c:Lcom/moji/weathersence/screen/MJScreen;
|
|
|
|
.field private d:Z
|
|
|
|
.field private e:Landroid/widget/ImageView;
|
|
|
|
.field private f:Landroid/widget/ImageView;
|
|
|
|
.field private g:Lcom/moji/weathersence/data/SceneData;
|
|
|
|
.field private h:Ljava/lang/Boolean;
|
|
|
|
.field private i:Ljava/lang/Boolean;
|
|
|
|
.field private j:Lcom/moji/weathersence/MJSceneDataManager;
|
|
|
|
.field private k:Lcom/moji/weathersence/adavatar/AdAvatarControl;
|
|
|
|
.field private l:Ljava/lang/Boolean;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 36
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 50
|
|
invoke-static {}, Lcom/moji/weathersence/MJSceneDataManager;->b()Lcom/moji/weathersence/MJSceneDataManager;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/moji/weathersence/MJSceneManager;->j:Lcom/moji/weathersence/MJSceneDataManager;
|
|
|
|
.line 58
|
|
new-instance v0, Lcom/moji/preferences/ProcessPrefer;
|
|
|
|
invoke-direct {v0}, Lcom/moji/preferences/ProcessPrefer;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/moji/weathersence/MJSceneManager;->a:Lcom/moji/preferences/ProcessPrefer;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a()Lcom/moji/weathersence/MJSceneManager;
|
|
.locals 1
|
|
|
|
.line 55
|
|
sget-object v0, Lcom/moji/weathersence/MJSceneManager$MJSceneManagerHolder;->a:Lcom/moji/weathersence/MJSceneManager;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/weathersence/MJSceneManager;)Lcom/moji/weathersence/screen/MJScreen;
|
|
.locals 0
|
|
|
|
.line 36
|
|
iget-object p0, p0, Lcom/moji/weathersence/MJSceneManager;->c:Lcom/moji/weathersence/screen/MJScreen;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic b(Lcom/moji/weathersence/MJSceneManager;)Landroid/widget/ImageView;
|
|
.locals 0
|
|
|
|
.line 36
|
|
iget-object p0, p0, Lcom/moji/weathersence/MJSceneManager;->f:Landroid/widget/ImageView;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method a(FF)Lcom/moji/weathersence/sceneegg/EggData;
|
|
.locals 1
|
|
.annotation build Landroid/support/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 187
|
|
iget-object v0, p0, Lcom/moji/weathersence/MJSceneManager;->c:Lcom/moji/weathersence/screen/MJScreen;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return-object p1
|
|
|
|
.line 190
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/moji/weathersence/MJSceneManager;->c:Lcom/moji/weathersence/screen/MJScreen;
|
|
|
|
invoke-virtual {v0, p1, p2}, Lcom/moji/weathersence/screen/MJScreen;->a(FF)Lcom/moji/weathersence/sceneegg/EggData;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public a(F)V
|
|
.locals 3
|
|
|
|
.line 384
|
|
iget-boolean v0, p0, Lcom/moji/weathersence/MJSceneManager;->d:Z
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 385
|
|
sget-object v0, Lcom/badlogic/gdx/Gdx;->a:Lcom/badlogic/gdx/Application;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
cmpg-float v0, p1, v0
|
|
|
|
if-gtz v0, :cond_1
|
|
|
|
.line 388
|
|
sget-object v0, Lcom/badlogic/gdx/Gdx;->b:Lcom/badlogic/gdx/Graphics;
|
|
|
|
invoke-interface {v0}, Lcom/badlogic/gdx/Graphics;->h()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
return-void
|
|
|
|
.line 394
|
|
:cond_1
|
|
sget-object v0, Lcom/badlogic/gdx/Gdx;->a:Lcom/badlogic/gdx/Application;
|
|
|
|
new-instance v1, Lcom/moji/weathersence/MJSceneManager$12;
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/moji/weathersence/MJSceneManager$12;-><init>(Lcom/moji/weathersence/MJSceneManager;F)V
|
|
|
|
invoke-interface {v0, v1}, Lcom/badlogic/gdx/Application;->postRunnable(Ljava/lang/Runnable;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 405
|
|
:cond_2
|
|
invoke-static {}, Lcom/moji/weatherprovider/provider/WeatherProvider;->b()Lcom/moji/weatherprovider/provider/WeatherProvider;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->a()Lcom/moji/common/area/AreaInfo;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/weatherprovider/provider/WeatherProvider;->a(Lcom/moji/common/area/AreaInfo;)Lcom/moji/weatherprovider/data/Weather;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 406
|
|
iget-object v1, v0, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
.line 407
|
|
iget-object v1, p0, Lcom/moji/weathersence/MJSceneManager;->j:Lcom/moji/weathersence/MJSceneDataManager;
|
|
|
|
iget-object v2, v0, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;
|
|
|
|
iget-object v2, v2, Lcom/moji/weatherprovider/data/Detail;->mCondition:Lcom/moji/weatherprovider/data/Condition;
|
|
|
|
iget v2, v2, Lcom/moji/weatherprovider/data/Condition;->mIcon:I
|
|
|
|
iget-object v0, v0, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/weatherprovider/data/Detail;->isDay()Z
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {v1, v2, v0}, Lcom/moji/weathersence/MJSceneDataManager;->a(IZ)Lcom/moji/weathersence/data/SceneData;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/moji/weathersence/MJSceneManager;->g:Lcom/moji/weathersence/data/SceneData;
|
|
|
|
.line 408
|
|
invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Lcom/squareup/picasso/Picasso;->a(Landroid/content/Context;)Lcom/squareup/picasso/Picasso;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/moji/weathersence/MJSceneManager;->g:Lcom/moji/weathersence/data/SceneData;
|
|
|
|
invoke-virtual {v1}, Lcom/moji/weathersence/data/SceneData;->e()Landroid/net/Uri;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Lcom/squareup/picasso/Picasso;->a(Landroid/net/Uri;)Lcom/squareup/picasso/RequestCreator;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/moji/weathersence/MJSceneManager;->e:Landroid/widget/ImageView;
|
|
|
|
invoke-virtual {v0, v1}, Lcom/squareup/picasso/RequestCreator;->a(Landroid/widget/ImageView;)V
|
|
|
|
.line 409
|
|
iget-object v0, p0, Lcom/moji/weathersence/MJSceneManager;->e:Landroid/widget/ImageView;
|
|
|
|
const/high16 v1, 0x3f800000 # 1.0f
|
|
|
|
sub-float/2addr v1, p1
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setAlpha(F)V
|
|
|
|
:cond_3
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(IIFIII)V
|
|
.locals 7
|
|
|
|
.line 182
|
|
new-instance v0, Lcom/moji/weathersence/avatar/SceneAvatarSizeHelper;
|
|
|
|
invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Lcom/moji/weathersence/avatar/SceneAvatarSizeHelper;-><init>(Landroid/content/Context;)V
|
|
|
|
move v1, p1
|
|
|
|
move v2, p2
|
|
|
|
move v3, p3
|
|
|
|
move v4, p4
|
|
|
|
move v5, p5
|
|
|
|
move v6, p6
|
|
|
|
invoke-virtual/range {v0 .. v6}, Lcom/moji/weathersence/avatar/SceneAvatarSizeHelper;->a(IIFIII)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(IZ)V
|
|
.locals 3
|
|
|
|
.line 291
|
|
iget-boolean v0, p0, Lcom/moji/weathersence/MJSceneManager;->d:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
const-string v0, "chao"
|
|
|
|
.line 292
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v2, "switchScreen iconID:"
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, ", daytime:"
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 293
|
|
sget-object v0, Lcom/badlogic/gdx/Gdx;->a:Lcom/badlogic/gdx/Application;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 296
|
|
:cond_0
|
|
sget-object v0, Lcom/badlogic/gdx/Gdx;->a:Lcom/badlogic/gdx/Application;
|
|
|
|
new-instance v1, Lcom/moji/weathersence/MJSceneManager$9;
|
|
|
|
invoke-direct {v1, p0, p1, p2}, Lcom/moji/weathersence/MJSceneManager$9;-><init>(Lcom/moji/weathersence/MJSceneManager;IZ)V
|
|
|
|
invoke-interface {v0, v1}, Lcom/badlogic/gdx/Application;->postRunnable(Ljava/lang/Runnable;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 306
|
|
:cond_1
|
|
iget-object v0, p0, Lcom/moji/weathersence/MJSceneManager;->j:Lcom/moji/weathersence/MJSceneDataManager;
|
|
|
|
invoke-virtual {v0, p1, p2}, Lcom/moji/weathersence/MJSceneDataManager;->a(IZ)Lcom/moji/weathersence/data/SceneData;
|
|
|
|
move-result-object p1
|
|
|
|
.line 307
|
|
iget-object p2, p0, Lcom/moji/weathersence/MJSceneManager;->f:Landroid/widget/ImageView;
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
.line 308
|
|
iget-object p2, p0, Lcom/moji/weathersence/MJSceneManager;->f:Landroid/widget/ImageView;
|
|
|
|
new-instance v0, Lcom/moji/weathersence/MJSceneManager$10;
|
|
|
|
invoke-direct {v0, p0, p1}, Lcom/moji/weathersence/MJSceneManager$10;-><init>(Lcom/moji/weathersence/MJSceneManager;Lcom/moji/weathersence/data/SceneData;)V
|
|
|
|
invoke-virtual {p2, v0}, Landroid/widget/ImageView;->post(Ljava/lang/Runnable;)Z
|
|
|
|
:cond_2
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(IZF)V
|
|
.locals 2
|
|
|
|
.line 361
|
|
iget-boolean v0, p0, Lcom/moji/weathersence/MJSceneManager;->d:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
const-string v0, "chao"
|
|
|
|
const-string v1, "switchScreenalpha"
|
|
|
|
.line 362
|
|
invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 363
|
|
sget-object v0, Lcom/badlogic/gdx/Gdx;->a:Lcom/badlogic/gdx/Application;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 366
|
|
:cond_0
|
|
sget-object v0, Lcom/badlogic/gdx/Gdx;->a:Lcom/badlogic/gdx/Application;
|
|
|
|
new-instance v1, Lcom/moji/weathersence/MJSceneManager$11;
|
|
|
|
invoke-direct {v1, p0, p1, p2, p3}, Lcom/moji/weathersence/MJSceneManager$11;-><init>(Lcom/moji/weathersence/MJSceneManager;IZF)V
|
|
|
|
invoke-interface {v0, v1}, Lcom/badlogic/gdx/Application;->postRunnable(Ljava/lang/Runnable;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
cmpl-float p3, p3, v0
|
|
|
|
if-nez p3, :cond_2
|
|
|
|
.line 377
|
|
iget-object p3, p0, Lcom/moji/weathersence/MJSceneManager;->j:Lcom/moji/weathersence/MJSceneDataManager;
|
|
|
|
invoke-virtual {p3, p1, p2}, Lcom/moji/weathersence/MJSceneDataManager;->a(IZ)Lcom/moji/weathersence/data/SceneData;
|
|
|
|
move-result-object p1
|
|
|
|
.line 378
|
|
invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-static {p2}, Lcom/squareup/picasso/Picasso;->a(Landroid/content/Context;)Lcom/squareup/picasso/Picasso;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p1}, Lcom/moji/weathersence/data/SceneData;->f()Landroid/net/Uri;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p2, p1}, Lcom/squareup/picasso/Picasso;->a(Landroid/net/Uri;)Lcom/squareup/picasso/RequestCreator;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object p2, p0, Lcom/moji/weathersence/MJSceneManager;->f:Landroid/widget/ImageView;
|
|
|
|
invoke-virtual {p1, p2}, Lcom/squareup/picasso/RequestCreator;->a(Landroid/widget/ImageView;)V
|
|
|
|
:cond_2
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(J)V
|
|
.locals 2
|
|
|
|
.line 195
|
|
iget-boolean v0, p0, Lcom/moji/weathersence/MJSceneManager;->d:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 196
|
|
sget-object v0, Lcom/badlogic/gdx/Gdx;->a:Lcom/badlogic/gdx/Application;
|
|
|
|
new-instance v1, Lcom/moji/weathersence/MJSceneManager$6;
|
|
|
|
invoke-direct {v1, p0, p1, p2}, Lcom/moji/weathersence/MJSceneManager$6;-><init>(Lcom/moji/weathersence/MJSceneManager;J)V
|
|
|
|
invoke-interface {v0, v1}, Lcom/badlogic/gdx/Application;->postRunnable(Ljava/lang/Runnable;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Landroid/graphics/Bitmap;Lcom/moji/weathersence/adbg/AdBgType;)V
|
|
.locals 2
|
|
|
|
.line 128
|
|
iget-boolean v0, p0, Lcom/moji/weathersence/MJSceneManager;->d:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 129
|
|
sget-object v0, Lcom/badlogic/gdx/Gdx;->a:Lcom/badlogic/gdx/Application;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 130
|
|
sget-object v0, Lcom/badlogic/gdx/Gdx;->a:Lcom/badlogic/gdx/Application;
|
|
|
|
new-instance v1, Lcom/moji/weathersence/MJSceneManager$3;
|
|
|
|
invoke-direct {v1, p0, p1, p2}, Lcom/moji/weathersence/MJSceneManager$3;-><init>(Lcom/moji/weathersence/MJSceneManager;Landroid/graphics/Bitmap;Lcom/moji/weathersence/adbg/AdBgType;)V
|
|
|
|
invoke-interface {v0, v1}, Lcom/badlogic/gdx/Application;->postRunnable(Ljava/lang/Runnable;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Landroid/widget/ImageView;Landroid/widget/ImageView;)V
|
|
.locals 0
|
|
|
|
.line 261
|
|
iput-object p1, p0, Lcom/moji/weathersence/MJSceneManager;->e:Landroid/widget/ImageView;
|
|
|
|
.line 262
|
|
iput-object p2, p0, Lcom/moji/weathersence/MJSceneManager;->f:Landroid/widget/ImageView;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Ljava/lang/String;Landroid/graphics/Rect;ILcom/moji/weathersence/MJSceneManager$AvatarScreenShotListener;)V
|
|
.locals 8
|
|
|
|
if-nez p4, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
if-nez p2, :cond_1
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 166
|
|
invoke-interface {p4, p1}, Lcom/moji/weathersence/MJSceneManager$AvatarScreenShotListener;->a(Landroid/graphics/Bitmap;)V
|
|
|
|
return-void
|
|
|
|
.line 169
|
|
:cond_1
|
|
iget-boolean v0, p0, Lcom/moji/weathersence/MJSceneManager;->d:Z
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 170
|
|
iget-object v0, p0, Lcom/moji/weathersence/MJSceneManager;->c:Lcom/moji/weathersence/screen/MJScreen;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 171
|
|
sget-object v0, Lcom/badlogic/gdx/Gdx;->a:Lcom/badlogic/gdx/Application;
|
|
|
|
new-instance v7, Lcom/moji/weathersence/MJSceneManager$5;
|
|
|
|
move-object v1, v7
|
|
|
|
move-object v2, p0
|
|
|
|
move-object v3, p1
|
|
|
|
move-object v4, p2
|
|
|
|
move v5, p3
|
|
|
|
move-object v6, p4
|
|
|
|
invoke-direct/range {v1 .. v6}, Lcom/moji/weathersence/MJSceneManager$5;-><init>(Lcom/moji/weathersence/MJSceneManager;Ljava/lang/String;Landroid/graphics/Rect;ILcom/moji/weathersence/MJSceneManager$AvatarScreenShotListener;)V
|
|
|
|
invoke-interface {v0, v7}, Lcom/badlogic/gdx/Application;->postRunnable(Ljava/lang/Runnable;)V
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Ljava/util/List;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/Long;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 226
|
|
iget-boolean v0, p0, Lcom/moji/weathersence/MJSceneManager;->d:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 227
|
|
iget-object v0, p0, Lcom/moji/weathersence/MJSceneManager;->c:Lcom/moji/weathersence/screen/MJScreen;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
sget-object v0, Lcom/badlogic/gdx/Gdx;->a:Lcom/badlogic/gdx/Application;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 228
|
|
sget-object v0, Lcom/badlogic/gdx/Gdx;->a:Lcom/badlogic/gdx/Application;
|
|
|
|
new-instance v1, Lcom/moji/weathersence/MJSceneManager$8;
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/moji/weathersence/MJSceneManager$8;-><init>(Lcom/moji/weathersence/MJSceneManager;Ljava/util/List;)V
|
|
|
|
invoke-interface {v0, v1}, Lcom/badlogic/gdx/Application;->postRunnable(Ljava/lang/Runnable;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Ljava/util/List;Lcom/moji/weathersence/adbg/BgAdAnimationPlayListener;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"Lcom/moji/weathersence/adbg/AdAnimationLayer;",
|
|
">;",
|
|
"Lcom/moji/weathersence/adbg/BgAdAnimationPlayListener;",
|
|
")V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 63
|
|
iget-boolean v0, p0, Lcom/moji/weathersence/MJSceneManager;->d:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 64
|
|
iget-object v0, p0, Lcom/moji/weathersence/MJSceneManager;->c:Lcom/moji/weathersence/screen/MJScreen;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 65
|
|
sget-object v0, Lcom/badlogic/gdx/Gdx;->a:Lcom/badlogic/gdx/Application;
|
|
|
|
new-instance v1, Lcom/moji/weathersence/MJSceneManager$1;
|
|
|
|
invoke-direct {v1, p0, p1, p2}, Lcom/moji/weathersence/MJSceneManager$1;-><init>(Lcom/moji/weathersence/MJSceneManager;Ljava/util/List;Lcom/moji/weathersence/adbg/BgAdAnimationPlayListener;)V
|
|
|
|
invoke-interface {v0, v1}, Lcom/badlogic/gdx/Application;->postRunnable(Ljava/lang/Runnable;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 72
|
|
:cond_0
|
|
invoke-interface {p2}, Lcom/moji/weathersence/adbg/BgAdAnimationPlayListener;->d()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 75
|
|
:cond_1
|
|
invoke-interface {p2}, Lcom/moji/weathersence/adbg/BgAdAnimationPlayListener;->d()V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Z)V
|
|
.locals 2
|
|
|
|
.line 144
|
|
iget-object v0, p0, Lcom/moji/weathersence/MJSceneManager;->l:Ljava/lang/Boolean;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/moji/weathersence/MJSceneManager;->l:Ljava/lang/Boolean;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
|
|
|
|
move-result v0
|
|
|
|
if-ne v0, p1, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 147
|
|
:cond_0
|
|
invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/moji/weathersence/MJSceneManager;->l:Ljava/lang/Boolean;
|
|
|
|
.line 148
|
|
iget-boolean v0, p0, Lcom/moji/weathersence/MJSceneManager;->d:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 149
|
|
sget-object v0, Lcom/badlogic/gdx/Gdx;->a:Lcom/badlogic/gdx/Application;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 150
|
|
sget-object v0, Lcom/badlogic/gdx/Gdx;->a:Lcom/badlogic/gdx/Application;
|
|
|
|
new-instance v1, Lcom/moji/weathersence/MJSceneManager$4;
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/moji/weathersence/MJSceneManager$4;-><init>(Lcom/moji/weathersence/MJSceneManager;Z)V
|
|
|
|
invoke-interface {v0, v1}, Lcom/badlogic/gdx/Application;->postRunnable(Ljava/lang/Runnable;)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(ZZ)V
|
|
.locals 0
|
|
|
|
.line 98
|
|
invoke-static {p2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
move-result-object p2
|
|
|
|
iput-object p2, p0, Lcom/moji/weathersence/MJSceneManager;->h:Ljava/lang/Boolean;
|
|
|
|
.line 99
|
|
invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/moji/weathersence/MJSceneManager;->i:Ljava/lang/Boolean;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a([I[I)V
|
|
.locals 2
|
|
|
|
.line 212
|
|
new-instance v0, Lcom/moji/weathersence/avatar/SceneAvatarSizeHelper;
|
|
|
|
invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Lcom/moji/weathersence/avatar/SceneAvatarSizeHelper;-><init>(Landroid/content/Context;)V
|
|
|
|
invoke-virtual {v0, p1}, Lcom/moji/weathersence/avatar/SceneAvatarSizeHelper;->a([I)V
|
|
|
|
.line 213
|
|
new-instance v0, Lcom/moji/weathersence/avatar/SceneAvatarSizeHelper;
|
|
|
|
invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Lcom/moji/weathersence/avatar/SceneAvatarSizeHelper;-><init>(Landroid/content/Context;)V
|
|
|
|
invoke-virtual {v0, p2}, Lcom/moji/weathersence/avatar/SceneAvatarSizeHelper;->b([I)V
|
|
|
|
.line 214
|
|
sget-object v0, Lcom/badlogic/gdx/Gdx;->a:Lcom/badlogic/gdx/Application;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/moji/weathersence/MJSceneManager;->c:Lcom/moji/weathersence/screen/MJScreen;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 215
|
|
sget-object v0, Lcom/badlogic/gdx/Gdx;->a:Lcom/badlogic/gdx/Application;
|
|
|
|
new-instance v1, Lcom/moji/weathersence/MJSceneManager$7;
|
|
|
|
invoke-direct {v1, p0, p1, p2}, Lcom/moji/weathersence/MJSceneManager$7;-><init>(Lcom/moji/weathersence/MJSceneManager;[I[I)V
|
|
|
|
invoke-interface {v0, v1}, Lcom/badlogic/gdx/Application;->postRunnable(Ljava/lang/Runnable;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public b()V
|
|
.locals 2
|
|
|
|
.line 82
|
|
iget-boolean v0, p0, Lcom/moji/weathersence/MJSceneManager;->d:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 83
|
|
iget-object v0, p0, Lcom/moji/weathersence/MJSceneManager;->c:Lcom/moji/weathersence/screen/MJScreen;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 84
|
|
sget-object v0, Lcom/badlogic/gdx/Gdx;->a:Lcom/badlogic/gdx/Application;
|
|
|
|
new-instance v1, Lcom/moji/weathersence/MJSceneManager$2;
|
|
|
|
invoke-direct {v1, p0}, Lcom/moji/weathersence/MJSceneManager$2;-><init>(Lcom/moji/weathersence/MJSceneManager;)V
|
|
|
|
invoke-interface {v0, v1}, Lcom/badlogic/gdx/Application;->postRunnable(Ljava/lang/Runnable;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public b(IZ)V
|
|
.locals 2
|
|
|
|
.line 418
|
|
iget-boolean v0, p0, Lcom/moji/weathersence/MJSceneManager;->d:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
const-string v0, "chao"
|
|
|
|
const-string v1, "setViewPagerSettled"
|
|
|
|
.line 419
|
|
invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 420
|
|
sget-object v0, Lcom/badlogic/gdx/Gdx;->a:Lcom/badlogic/gdx/Application;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 423
|
|
:cond_0
|
|
sget-object v0, Lcom/badlogic/gdx/Gdx;->a:Lcom/badlogic/gdx/Application;
|
|
|
|
new-instance v1, Lcom/moji/weathersence/MJSceneManager$13;
|
|
|
|
invoke-direct {v1, p0, p1, p2}, Lcom/moji/weathersence/MJSceneManager$13;-><init>(Lcom/moji/weathersence/MJSceneManager;IZ)V
|
|
|
|
invoke-interface {v0, v1}, Lcom/badlogic/gdx/Application;->postRunnable(Ljava/lang/Runnable;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 434
|
|
:cond_1
|
|
iget-object v0, p0, Lcom/moji/weathersence/MJSceneManager;->j:Lcom/moji/weathersence/MJSceneDataManager;
|
|
|
|
invoke-virtual {v0, p1, p2}, Lcom/moji/weathersence/MJSceneDataManager;->a(IZ)Lcom/moji/weathersence/data/SceneData;
|
|
|
|
move-result-object p1
|
|
|
|
.line 435
|
|
invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-static {p2}, Lcom/squareup/picasso/Picasso;->a(Landroid/content/Context;)Lcom/squareup/picasso/Picasso;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p1}, Lcom/moji/weathersence/data/SceneData;->f()Landroid/net/Uri;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p2, p1}, Lcom/squareup/picasso/Picasso;->a(Landroid/net/Uri;)Lcom/squareup/picasso/RequestCreator;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object p2, p0, Lcom/moji/weathersence/MJSceneManager;->f:Landroid/widget/ImageView;
|
|
|
|
invoke-virtual {p1, p2}, Lcom/squareup/picasso/RequestCreator;->a(Landroid/widget/ImageView;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public b(Z)V
|
|
.locals 1
|
|
|
|
.line 247
|
|
iput-boolean p1, p0, Lcom/moji/weathersence/MJSceneManager;->d:Z
|
|
|
|
.line 248
|
|
iget-boolean p1, p0, Lcom/moji/weathersence/MJSceneManager;->d:Z
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 249
|
|
invoke-static {}, Lcom/moji/weathersence/MJSceneDataManager;->b()Lcom/moji/weathersence/MJSceneDataManager;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lcom/moji/weathersence/MJSceneDataManager;->c()V
|
|
|
|
.line 250
|
|
iget-object p1, p0, Lcom/moji/weathersence/MJSceneManager;->c:Lcom/moji/weathersence/screen/MJScreen;
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
const-string p1, "chao"
|
|
|
|
const-string v0, "initScene"
|
|
|
|
.line 251
|
|
invoke-static {p1, v0}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 252
|
|
new-instance p1, Lcom/moji/weathersence/screen/MJScreen;
|
|
|
|
invoke-direct {p1}, Lcom/moji/weathersence/screen/MJScreen;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/moji/weathersence/MJSceneManager;->c:Lcom/moji/weathersence/screen/MJScreen;
|
|
|
|
.line 254
|
|
:cond_0
|
|
new-instance p1, Lcom/moji/weathersence/adavatar/AdAvatarControlImpl;
|
|
|
|
iget-object v0, p0, Lcom/moji/weathersence/MJSceneManager;->c:Lcom/moji/weathersence/screen/MJScreen;
|
|
|
|
invoke-direct {p1, v0}, Lcom/moji/weathersence/adavatar/AdAvatarControlImpl;-><init>(Lcom/moji/weathersence/screen/MJScreen;)V
|
|
|
|
iput-object p1, p0, Lcom/moji/weathersence/MJSceneManager;->k:Lcom/moji/weathersence/adavatar/AdAvatarControl;
|
|
|
|
.line 257
|
|
:cond_1
|
|
invoke-static {}, Lcom/moji/weathersence/theme/SceneDataUpgradeHelper;->a()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public c()Lcom/moji/weathersence/MJSceneManager$AdAnimationPlayStatus;
|
|
.locals 1
|
|
|
|
.line 109
|
|
iget-object v0, p0, Lcom/moji/weathersence/MJSceneManager;->i:Ljava/lang/Boolean;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
iget-object v0, p0, Lcom/moji/weathersence/MJSceneManager;->i:Ljava/lang/Boolean;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 112
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/moji/weathersence/MJSceneManager;->h:Ljava/lang/Boolean;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 113
|
|
sget-object v0, Lcom/moji/weathersence/MJSceneManager$AdAnimationPlayStatus;->PLAYING_LAST_FRAME:Lcom/moji/weathersence/MJSceneManager$AdAnimationPlayStatus;
|
|
|
|
return-object v0
|
|
|
|
.line 115
|
|
:cond_1
|
|
sget-object v0, Lcom/moji/weathersence/MJSceneManager$AdAnimationPlayStatus;->PLAYING_NOT_LAST_FRAME:Lcom/moji/weathersence/MJSceneManager$AdAnimationPlayStatus;
|
|
|
|
return-object v0
|
|
|
|
.line 110
|
|
:cond_2
|
|
:goto_0
|
|
sget-object v0, Lcom/moji/weathersence/MJSceneManager$AdAnimationPlayStatus;->NOT_PLAY:Lcom/moji/weathersence/MJSceneManager$AdAnimationPlayStatus;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public c(IZ)V
|
|
.locals 2
|
|
|
|
.line 460
|
|
iget-boolean v0, p0, Lcom/moji/weathersence/MJSceneManager;->d:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
const-string v0, "chao"
|
|
|
|
const-string v1, "loadAssetsAsync"
|
|
|
|
.line 461
|
|
invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 462
|
|
sget-object v0, Lcom/badlogic/gdx/Gdx;->a:Lcom/badlogic/gdx/Application;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 465
|
|
:cond_0
|
|
sget-object v0, Lcom/badlogic/gdx/Gdx;->a:Lcom/badlogic/gdx/Application;
|
|
|
|
new-instance v1, Lcom/moji/weathersence/MJSceneManager$15;
|
|
|
|
invoke-direct {v1, p0, p1, p2}, Lcom/moji/weathersence/MJSceneManager$15;-><init>(Lcom/moji/weathersence/MJSceneManager;IZ)V
|
|
|
|
invoke-interface {v0, v1}, Lcom/badlogic/gdx/Application;->postRunnable(Ljava/lang/Runnable;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 475
|
|
:cond_1
|
|
iget-object v0, p0, Lcom/moji/weathersence/MJSceneManager;->j:Lcom/moji/weathersence/MJSceneDataManager;
|
|
|
|
invoke-virtual {v0, p1, p2}, Lcom/moji/weathersence/MJSceneDataManager;->a(IZ)Lcom/moji/weathersence/data/SceneData;
|
|
|
|
move-result-object p1
|
|
|
|
.line 476
|
|
invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-static {p2}, Lcom/squareup/picasso/Picasso;->a(Landroid/content/Context;)Lcom/squareup/picasso/Picasso;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p1}, Lcom/moji/weathersence/data/SceneData;->f()Landroid/net/Uri;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p2, v0}, Lcom/squareup/picasso/Picasso;->a(Landroid/net/Uri;)Lcom/squareup/picasso/RequestCreator;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p2}, Lcom/squareup/picasso/RequestCreator;->j()V
|
|
|
|
.line 477
|
|
invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-static {p2}, Lcom/squareup/picasso/Picasso;->a(Landroid/content/Context;)Lcom/squareup/picasso/Picasso;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p1}, Lcom/moji/weathersence/data/SceneData;->e()Landroid/net/Uri;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p2, p1}, Lcom/squareup/picasso/Picasso;->a(Landroid/net/Uri;)Lcom/squareup/picasso/RequestCreator;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lcom/squareup/picasso/RequestCreator;->j()V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public d()Ljava/lang/String;
|
|
.locals 2
|
|
|
|
.line 239
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-static {}, Lcom/moji/tool/FilePathUtil;->q()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, "avatar_share.png"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public e()V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 266
|
|
iput-object v0, p0, Lcom/moji/weathersence/MJSceneManager;->c:Lcom/moji/weathersence/screen/MJScreen;
|
|
|
|
.line 267
|
|
iput-object v0, p0, Lcom/moji/weathersence/MJSceneManager;->f:Landroid/widget/ImageView;
|
|
|
|
.line 268
|
|
iput-object v0, p0, Lcom/moji/weathersence/MJSceneManager;->e:Landroid/widget/ImageView;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public f()Lcom/moji/weathersence/screen/MJScreen;
|
|
.locals 1
|
|
|
|
.line 272
|
|
iget-object v0, p0, Lcom/moji/weathersence/MJSceneManager;->c:Lcom/moji/weathersence/screen/MJScreen;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public g()V
|
|
.locals 2
|
|
|
|
const-string v0, "chao"
|
|
|
|
const-string v1, "pause"
|
|
|
|
.line 276
|
|
invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 277
|
|
sget-object v0, Lcom/badlogic/gdx/Gdx;->b:Lcom/badlogic/gdx/Graphics;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 278
|
|
sget-object v0, Lcom/badlogic/gdx/Gdx;->b:Lcom/badlogic/gdx/Graphics;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-interface {v0, v1}, Lcom/badlogic/gdx/Graphics;->a(Z)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public h()V
|
|
.locals 2
|
|
|
|
const-string v0, "chao"
|
|
|
|
const-string v1, "restart"
|
|
|
|
.line 283
|
|
invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 284
|
|
sget-object v0, Lcom/badlogic/gdx/Gdx;->b:Lcom/badlogic/gdx/Graphics;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 285
|
|
sget-object v0, Lcom/badlogic/gdx/Gdx;->b:Lcom/badlogic/gdx/Graphics;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-interface {v0, v1}, Lcom/badlogic/gdx/Graphics;->a(Z)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public i()V
|
|
.locals 7
|
|
|
|
.line 323
|
|
iget v0, p0, Lcom/moji/weathersence/MJSceneManager;->b:I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 324
|
|
invoke-virtual {p0, v1, v2}, Lcom/moji/weathersence/MJSceneManager;->a(IZ)V
|
|
|
|
goto/16 :goto_0
|
|
|
|
.line 325
|
|
:cond_0
|
|
iget v0, p0, Lcom/moji/weathersence/MJSceneManager;->b:I
|
|
|
|
if-ne v0, v2, :cond_1
|
|
|
|
.line 326
|
|
invoke-virtual {p0, v1, v1}, Lcom/moji/weathersence/MJSceneManager;->a(IZ)V
|
|
|
|
goto/16 :goto_0
|
|
|
|
.line 327
|
|
:cond_1
|
|
iget v0, p0, Lcom/moji/weathersence/MJSceneManager;->b:I
|
|
|
|
const/4 v3, 0x2
|
|
|
|
if-ne v0, v3, :cond_2
|
|
|
|
.line 328
|
|
invoke-virtual {p0, v2, v2}, Lcom/moji/weathersence/MJSceneManager;->a(IZ)V
|
|
|
|
goto/16 :goto_0
|
|
|
|
.line 329
|
|
:cond_2
|
|
iget v0, p0, Lcom/moji/weathersence/MJSceneManager;->b:I
|
|
|
|
const/4 v4, 0x3
|
|
|
|
if-ne v0, v4, :cond_3
|
|
|
|
.line 330
|
|
invoke-virtual {p0, v2, v1}, Lcom/moji/weathersence/MJSceneManager;->a(IZ)V
|
|
|
|
goto/16 :goto_0
|
|
|
|
.line 331
|
|
:cond_3
|
|
iget v0, p0, Lcom/moji/weathersence/MJSceneManager;->b:I
|
|
|
|
const/4 v4, 0x4
|
|
|
|
if-ne v0, v4, :cond_4
|
|
|
|
.line 332
|
|
invoke-virtual {p0, v3, v2}, Lcom/moji/weathersence/MJSceneManager;->a(IZ)V
|
|
|
|
goto/16 :goto_0
|
|
|
|
.line 333
|
|
:cond_4
|
|
iget v0, p0, Lcom/moji/weathersence/MJSceneManager;->b:I
|
|
|
|
const/4 v3, 0x5
|
|
|
|
const/16 v5, 0x9
|
|
|
|
if-ne v0, v3, :cond_5
|
|
|
|
.line 334
|
|
invoke-virtual {p0, v5, v2}, Lcom/moji/weathersence/MJSceneManager;->a(IZ)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 335
|
|
:cond_5
|
|
iget v0, p0, Lcom/moji/weathersence/MJSceneManager;->b:I
|
|
|
|
const/4 v3, 0x6
|
|
|
|
if-ne v0, v3, :cond_6
|
|
|
|
.line 336
|
|
invoke-virtual {p0, v5, v1}, Lcom/moji/weathersence/MJSceneManager;->a(IZ)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 337
|
|
:cond_6
|
|
iget v0, p0, Lcom/moji/weathersence/MJSceneManager;->b:I
|
|
|
|
const/4 v3, 0x7
|
|
|
|
const/16 v6, 0xf
|
|
|
|
if-ne v0, v3, :cond_7
|
|
|
|
.line 338
|
|
invoke-virtual {p0, v6, v2}, Lcom/moji/weathersence/MJSceneManager;->a(IZ)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 339
|
|
:cond_7
|
|
iget v0, p0, Lcom/moji/weathersence/MJSceneManager;->b:I
|
|
|
|
const/16 v3, 0x8
|
|
|
|
if-ne v0, v3, :cond_8
|
|
|
|
.line 340
|
|
invoke-virtual {p0, v6, v1}, Lcom/moji/weathersence/MJSceneManager;->a(IZ)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 341
|
|
:cond_8
|
|
iget v0, p0, Lcom/moji/weathersence/MJSceneManager;->b:I
|
|
|
|
const/16 v3, 0x12
|
|
|
|
if-ne v0, v5, :cond_9
|
|
|
|
.line 342
|
|
invoke-virtual {p0, v3, v2}, Lcom/moji/weathersence/MJSceneManager;->a(IZ)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 343
|
|
:cond_9
|
|
iget v0, p0, Lcom/moji/weathersence/MJSceneManager;->b:I
|
|
|
|
const/16 v5, 0xa
|
|
|
|
if-ne v0, v5, :cond_a
|
|
|
|
.line 344
|
|
invoke-virtual {p0, v3, v1}, Lcom/moji/weathersence/MJSceneManager;->a(IZ)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 345
|
|
:cond_a
|
|
iget v0, p0, Lcom/moji/weathersence/MJSceneManager;->b:I
|
|
|
|
const/16 v3, 0xb
|
|
|
|
if-ne v0, v3, :cond_b
|
|
|
|
const/16 v0, 0x14
|
|
|
|
.line 346
|
|
invoke-virtual {p0, v0, v2}, Lcom/moji/weathersence/MJSceneManager;->a(IZ)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 347
|
|
:cond_b
|
|
iget v0, p0, Lcom/moji/weathersence/MJSceneManager;->b:I
|
|
|
|
const/16 v3, 0xc
|
|
|
|
if-ne v0, v3, :cond_c
|
|
|
|
.line 348
|
|
invoke-virtual {p0, v4, v2}, Lcom/moji/weathersence/MJSceneManager;->a(IZ)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 349
|
|
:cond_c
|
|
iget v0, p0, Lcom/moji/weathersence/MJSceneManager;->b:I
|
|
|
|
const/16 v3, 0xd
|
|
|
|
if-ne v0, v3, :cond_d
|
|
|
|
const/16 v0, 0x2d
|
|
|
|
.line 350
|
|
invoke-virtual {p0, v0, v2}, Lcom/moji/weathersence/MJSceneManager;->a(IZ)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_d
|
|
const/16 v0, 0x63
|
|
|
|
.line 352
|
|
invoke-virtual {p0, v0, v2}, Lcom/moji/weathersence/MJSceneManager;->a(IZ)V
|
|
|
|
.line 354
|
|
:goto_0
|
|
iget v0, p0, Lcom/moji/weathersence/MJSceneManager;->b:I
|
|
|
|
add-int/2addr v0, v2
|
|
|
|
iput v0, p0, Lcom/moji/weathersence/MJSceneManager;->b:I
|
|
|
|
.line 355
|
|
iget v0, p0, Lcom/moji/weathersence/MJSceneManager;->b:I
|
|
|
|
const/16 v2, 0xe
|
|
|
|
if-le v0, v2, :cond_e
|
|
|
|
.line 356
|
|
iput v1, p0, Lcom/moji/weathersence/MJSceneManager;->b:I
|
|
|
|
:cond_e
|
|
return-void
|
|
.end method
|
|
|
|
.method public j()V
|
|
.locals 2
|
|
|
|
.line 441
|
|
iget-boolean v0, p0, Lcom/moji/weathersence/MJSceneManager;->d:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
const-string v0, "chao"
|
|
|
|
const-string v1, "setPageFastScrollSelect"
|
|
|
|
.line 442
|
|
invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 443
|
|
sget-object v0, Lcom/badlogic/gdx/Gdx;->a:Lcom/badlogic/gdx/Application;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 446
|
|
:cond_0
|
|
sget-object v0, Lcom/badlogic/gdx/Gdx;->a:Lcom/badlogic/gdx/Application;
|
|
|
|
new-instance v1, Lcom/moji/weathersence/MJSceneManager$14;
|
|
|
|
invoke-direct {v1, p0}, Lcom/moji/weathersence/MJSceneManager$14;-><init>(Lcom/moji/weathersence/MJSceneManager;)V
|
|
|
|
invoke-interface {v0, v1}, Lcom/badlogic/gdx/Application;->postRunnable(Ljava/lang/Runnable;)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public k()Landroid/net/Uri;
|
|
.locals 4
|
|
|
|
.line 488
|
|
new-instance v0, Ljava/io/File;
|
|
|
|
const-string v1, "//android_asset/s0001/weather_cloudy_day/scene_blur.jpg"
|
|
|
|
invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-static {v0}, Landroid/net/Uri;->fromFile(Ljava/io/File;)Landroid/net/Uri;
|
|
|
|
move-result-object v0
|
|
|
|
.line 490
|
|
iget-boolean v1, p0, Lcom/moji/weathersence/MJSceneManager;->d:Z
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
const-string v1, "chao"
|
|
|
|
const-string v2, "getBlurPath"
|
|
|
|
.line 491
|
|
invoke-static {v1, v2}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 492
|
|
iget-object v1, p0, Lcom/moji/weathersence/MJSceneManager;->c:Lcom/moji/weathersence/screen/MJScreen;
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
.line 493
|
|
invoke-virtual {p0, v1}, Lcom/moji/weathersence/MJSceneManager;->b(Z)V
|
|
|
|
.line 495
|
|
:cond_0
|
|
iget-object v1, p0, Lcom/moji/weathersence/MJSceneManager;->c:Lcom/moji/weathersence/screen/MJScreen;
|
|
|
|
invoke-virtual {v1}, Lcom/moji/weathersence/screen/MJScreen;->h()Landroid/net/Uri;
|
|
|
|
move-result-object v1
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
move-object v0, v1
|
|
|
|
:goto_0
|
|
return-object v0
|
|
|
|
.line 501
|
|
:cond_2
|
|
invoke-static {}, Lcom/moji/weatherprovider/provider/WeatherProvider;->b()Lcom/moji/weatherprovider/provider/WeatherProvider;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->a()Lcom/moji/common/area/AreaInfo;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Lcom/moji/weatherprovider/provider/WeatherProvider;->a(Lcom/moji/common/area/AreaInfo;)Lcom/moji/weatherprovider/data/Weather;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
.line 502
|
|
iget-object v2, v1, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
.line 503
|
|
iget-object v2, p0, Lcom/moji/weathersence/MJSceneManager;->j:Lcom/moji/weathersence/MJSceneDataManager;
|
|
|
|
iget-object v3, v1, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;
|
|
|
|
iget-object v3, v3, Lcom/moji/weatherprovider/data/Detail;->mCondition:Lcom/moji/weatherprovider/data/Condition;
|
|
|
|
iget v3, v3, Lcom/moji/weatherprovider/data/Condition;->mIcon:I
|
|
|
|
iget-object v1, v1, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;
|
|
|
|
invoke-virtual {v1}, Lcom/moji/weatherprovider/data/Detail;->isDay()Z
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v2, v3, v1}, Lcom/moji/weathersence/MJSceneDataManager;->a(IZ)Lcom/moji/weathersence/data/SceneData;
|
|
|
|
move-result-object v1
|
|
|
|
.line 504
|
|
invoke-virtual {v1}, Lcom/moji/weathersence/data/SceneData;->e()Landroid/net/Uri;
|
|
|
|
move-result-object v1
|
|
|
|
if-nez v1, :cond_3
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
move-object v0, v1
|
|
|
|
:goto_1
|
|
return-object v0
|
|
|
|
:cond_4
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public l()Landroid/net/Uri;
|
|
.locals 4
|
|
|
|
.line 525
|
|
new-instance v0, Ljava/io/File;
|
|
|
|
const-string v1, "file:///android_asset/s0001/weather_cloudy_day/scene_preview.jpg"
|
|
|
|
invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-static {v0}, Landroid/net/Uri;->fromFile(Ljava/io/File;)Landroid/net/Uri;
|
|
|
|
move-result-object v0
|
|
|
|
.line 528
|
|
iget-boolean v1, p0, Lcom/moji/weathersence/MJSceneManager;->d:Z
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
const-string v1, "chao"
|
|
|
|
const-string v2, "getBgPath"
|
|
|
|
.line 529
|
|
invoke-static {v1, v2}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 530
|
|
iget-object v1, p0, Lcom/moji/weathersence/MJSceneManager;->c:Lcom/moji/weathersence/screen/MJScreen;
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
.line 531
|
|
invoke-virtual {p0, v1}, Lcom/moji/weathersence/MJSceneManager;->b(Z)V
|
|
|
|
.line 533
|
|
:cond_0
|
|
iget-object v1, p0, Lcom/moji/weathersence/MJSceneManager;->c:Lcom/moji/weathersence/screen/MJScreen;
|
|
|
|
invoke-virtual {v1}, Lcom/moji/weathersence/screen/MJScreen;->i()Landroid/net/Uri;
|
|
|
|
move-result-object v1
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
return-object v0
|
|
|
|
:cond_1
|
|
return-object v1
|
|
|
|
.line 541
|
|
:cond_2
|
|
invoke-static {}, Lcom/moji/weatherprovider/provider/WeatherProvider;->b()Lcom/moji/weatherprovider/provider/WeatherProvider;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->a()Lcom/moji/common/area/AreaInfo;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Lcom/moji/weatherprovider/provider/WeatherProvider;->a(Lcom/moji/common/area/AreaInfo;)Lcom/moji/weatherprovider/data/Weather;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
.line 542
|
|
iget-object v2, v1, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
.line 543
|
|
iget-object v2, p0, Lcom/moji/weathersence/MJSceneManager;->j:Lcom/moji/weathersence/MJSceneDataManager;
|
|
|
|
iget-object v3, v1, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;
|
|
|
|
iget-object v3, v3, Lcom/moji/weatherprovider/data/Detail;->mCondition:Lcom/moji/weatherprovider/data/Condition;
|
|
|
|
iget v3, v3, Lcom/moji/weatherprovider/data/Condition;->mIcon:I
|
|
|
|
iget-object v1, v1, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;
|
|
|
|
invoke-virtual {v1}, Lcom/moji/weatherprovider/data/Detail;->isDay()Z
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v2, v3, v1}, Lcom/moji/weathersence/MJSceneDataManager;->a(IZ)Lcom/moji/weathersence/data/SceneData;
|
|
|
|
move-result-object v1
|
|
|
|
.line 544
|
|
invoke-virtual {v1}, Lcom/moji/weathersence/data/SceneData;->f()Landroid/net/Uri;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
return-object v1
|
|
|
|
:cond_3
|
|
return-object v0
|
|
|
|
:cond_4
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public m()Lcom/moji/weathersence/adavatar/AdAvatarControl;
|
|
.locals 1
|
|
.annotation build Landroid/support/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 602
|
|
iget-object v0, p0, Lcom/moji/weathersence/MJSceneManager;->k:Lcom/moji/weathersence/adavatar/AdAvatarControl;
|
|
|
|
return-object v0
|
|
.end method
|