149 lines
4.2 KiB
Smali
149 lines
4.2 KiB
Smali
.class Lcom/moji/mjweather/MainActivity$4;
|
|
.super Ljava/lang/Object;
|
|
.source "MainActivity.java"
|
|
|
|
# interfaces
|
|
.implements Ljava/lang/Runnable;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/moji/mjweather/MainActivity;->onBackToForeground()V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x0
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic a:Lcom/moji/mjweather/MainActivity;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lcom/moji/mjweather/MainActivity;)V
|
|
.locals 0
|
|
|
|
.line 672
|
|
iput-object p1, p0, Lcom/moji/mjweather/MainActivity$4;->a:Lcom/moji/mjweather/MainActivity;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public run()V
|
|
.locals 8
|
|
|
|
const-wide/16 v0, 0x1f4
|
|
|
|
.line 675
|
|
invoke-static {v0, v1}, Landroid/os/SystemClock;->sleep(J)V
|
|
|
|
.line 676
|
|
iget-object v0, p0, Lcom/moji/mjweather/MainActivity$4;->a:Lcom/moji/mjweather/MainActivity;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-static {v0, v1}, Lcom/moji/mjweather/MainActivity;->a(Lcom/moji/mjweather/MainActivity;Z)V
|
|
|
|
.line 677
|
|
invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
.line 678
|
|
iget-object v2, p0, Lcom/moji/mjweather/MainActivity$4;->a:Lcom/moji/mjweather/MainActivity;
|
|
|
|
invoke-static {v2, v0}, Lcom/moji/mjweather/MainActivity;->a(Lcom/moji/mjweather/MainActivity;Landroid/content/Context;)V
|
|
|
|
.line 679
|
|
iget-object v2, p0, Lcom/moji/mjweather/MainActivity$4;->a:Lcom/moji/mjweather/MainActivity;
|
|
|
|
invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->a()Lcom/moji/common/area/AreaInfo;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v2, v3}, Lcom/moji/mjweather/MainActivity;->requestMainVipEvent(Lcom/moji/common/area/AreaInfo;)V
|
|
|
|
.line 683
|
|
sget-object v2, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_DESTOP:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v0, v2}, Lcom/moji/badge/BadgeUtil;->b(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;)I
|
|
|
|
move-result v2
|
|
|
|
.line 684
|
|
new-instance v3, Lcom/moji/badge/BadgePreference;
|
|
|
|
invoke-direct {v3, v0}, Lcom/moji/badge/BadgePreference;-><init>(Landroid/content/Context;)V
|
|
|
|
if-gtz v2, :cond_0
|
|
|
|
.line 686
|
|
sget-object v0, Lcom/moji/badge/BadgePreference$KeyConstant;->RED_DOT_EVENT_BEGIN:Lcom/moji/badge/BadgePreference$KeyConstant;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-virtual {v3, v0, v1}, Lcom/moji/badge/BadgePreference;->b(Lcom/moji/badge/BadgePreference$KeyConstant;Z)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 688
|
|
:cond_0
|
|
sget-object v2, Lcom/moji/badge/BadgePreference$KeyConstant;->RED_DOT_EVENT_BEGIN:Lcom/moji/badge/BadgePreference$KeyConstant;
|
|
|
|
invoke-virtual {v3, v2, v1}, Lcom/moji/badge/BadgePreference;->a(Lcom/moji/badge/BadgePreference$KeyConstant;Z)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
.line 689
|
|
new-instance v2, Lcom/moji/badge/BadgePreference;
|
|
|
|
invoke-direct {v2, v0}, Lcom/moji/badge/BadgePreference;-><init>(Landroid/content/Context;)V
|
|
|
|
sget-object v0, Lcom/moji/badge/BadgePreference$KeyConstant;->FORE_TO_BACK_TIME:Lcom/moji/badge/BadgePreference$KeyConstant;
|
|
|
|
const-wide/16 v4, 0x0
|
|
|
|
invoke-virtual {v2, v0, v4, v5}, Lcom/moji/badge/BadgePreference;->a(Lcom/moji/badge/BadgePreference$KeyConstant;J)J
|
|
|
|
move-result-wide v4
|
|
|
|
.line 690
|
|
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
|
|
|
move-result-wide v6
|
|
|
|
sub-long/2addr v6, v4
|
|
|
|
const-wide/16 v4, 0x7530
|
|
|
|
cmp-long v0, v6, v4
|
|
|
|
if-gez v0, :cond_1
|
|
|
|
.line 691
|
|
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v2, Lcom/moji/statistics/EVENT_TAG;->NEWLIVEVIEW_NEWS_CLICK_AGAIN:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
invoke-virtual {v0, v2}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;)Lcom/moji/statistics/EventManager;
|
|
|
|
.line 692
|
|
sget-object v0, Lcom/moji/badge/BadgePreference$KeyConstant;->RED_DOT_EVENT_BEGIN:Lcom/moji/badge/BadgePreference$KeyConstant;
|
|
|
|
invoke-virtual {v3, v0, v1}, Lcom/moji/badge/BadgePreference;->b(Lcom/moji/badge/BadgePreference$KeyConstant;Z)V
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|