275 lines
8.3 KiB
Smali
275 lines
8.3 KiB
Smali
.class Lcom/moji/mjweather/DaemonService$ScreenReceiver$1;
|
|
.super Ljava/lang/Object;
|
|
.source "DaemonService.java"
|
|
|
|
# interfaces
|
|
.implements Ljava/lang/Runnable;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/moji/mjweather/DaemonService$ScreenReceiver;->onReceive(Landroid/content/Context;Landroid/content/Intent;)V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x0
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic a:Ljava/lang/String;
|
|
|
|
.field final synthetic b:Landroid/content/Context;
|
|
|
|
.field final synthetic c:Lcom/moji/mjweather/DaemonService$ScreenReceiver;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lcom/moji/mjweather/DaemonService$ScreenReceiver;Ljava/lang/String;Landroid/content/Context;)V
|
|
.locals 0
|
|
|
|
.line 44
|
|
iput-object p1, p0, Lcom/moji/mjweather/DaemonService$ScreenReceiver$1;->c:Lcom/moji/mjweather/DaemonService$ScreenReceiver;
|
|
|
|
iput-object p2, p0, Lcom/moji/mjweather/DaemonService$ScreenReceiver$1;->a:Ljava/lang/String;
|
|
|
|
iput-object p3, p0, Lcom/moji/mjweather/DaemonService$ScreenReceiver$1;->b:Landroid/content/Context;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public run()V
|
|
.locals 4
|
|
|
|
const-string v0, "DaemonService"
|
|
|
|
.line 47
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v2, "onReceive run action:"
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v2, p0, Lcom/moji/mjweather/DaemonService$ScreenReceiver$1;->a:Ljava/lang/String;
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)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
|
|
|
|
const-string v0, "android.intent.action.TIME_TICK"
|
|
|
|
.line 48
|
|
iget-object v1, p0, Lcom/moji/mjweather/DaemonService$ScreenReceiver$1;->a:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string v0, "TestTAGs"
|
|
|
|
const-string v2, "\u63a5\u6536\u5230:ACTION_TIME_TICK"
|
|
|
|
.line 50
|
|
invoke-static {v0, v2}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 52
|
|
invoke-static {}, Lcom/moji/tool/DeviceTool;->l()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
invoke-static {}, Lcom/moji/appwidget/core/MJAppWidgetProvider;->a()[Lcom/moji/appwidget/core/EWidgetSize;
|
|
|
|
move-result-object v0
|
|
|
|
array-length v0, v0
|
|
|
|
if-lez v0, :cond_5
|
|
|
|
const-string v0, "TestTAGs"
|
|
|
|
const-string v2, "\u63a5\u6536\u5230:ACTION_TIME_TICK\uff0c\u66f4\u65b0\u684c\u9762Widget"
|
|
|
|
.line 53
|
|
invoke-static {v0, v2}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 54
|
|
invoke-static {}, Lcom/moji/appwidget/core/MJWidgetManager;->a()Lcom/moji/appwidget/core/MJWidgetManager;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v2, p0, Lcom/moji/mjweather/DaemonService$ScreenReceiver$1;->b:Landroid/content/Context;
|
|
|
|
sget-object v3, Lcom/moji/appwidget/core/ELayer;->TIME_TICK:Lcom/moji/appwidget/core/ELayer;
|
|
|
|
new-array v1, v1, [Lcom/moji/appwidget/core/EWidgetSize;
|
|
|
|
invoke-virtual {v0, v2, v3, v1}, Lcom/moji/appwidget/core/MJWidgetManager;->a(Landroid/content/Context;Lcom/moji/appwidget/core/ELayer;[Lcom/moji/appwidget/core/EWidgetSize;)V
|
|
|
|
goto/16 :goto_0
|
|
|
|
:cond_0
|
|
const-string v0, "com.moji.widget.update.all"
|
|
|
|
.line 56
|
|
iget-object v2, p0, Lcom/moji/mjweather/DaemonService$ScreenReceiver$1;->a:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
const-string v0, "DaemonService"
|
|
|
|
const-string v2, "com.moji.widget.update.all"
|
|
|
|
.line 57
|
|
invoke-static {v0, v2}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 58
|
|
invoke-static {}, Lcom/moji/appwidget/core/MJWidgetManager;->a()Lcom/moji/appwidget/core/MJWidgetManager;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v2, p0, Lcom/moji/mjweather/DaemonService$ScreenReceiver$1;->b:Landroid/content/Context;
|
|
|
|
sget-object v3, Lcom/moji/appwidget/core/ELayer;->FACE:Lcom/moji/appwidget/core/ELayer;
|
|
|
|
new-array v1, v1, [Lcom/moji/appwidget/core/EWidgetSize;
|
|
|
|
invoke-virtual {v0, v2, v3, v1}, Lcom/moji/appwidget/core/MJWidgetManager;->a(Landroid/content/Context;Lcom/moji/appwidget/core/ELayer;[Lcom/moji/appwidget/core/EWidgetSize;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const-string v0, "com.moji.widget.update.language"
|
|
|
|
.line 59
|
|
iget-object v2, p0, Lcom/moji/mjweather/DaemonService$ScreenReceiver$1;->a:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
const-string v0, "DaemonService"
|
|
|
|
const-string v2, "com.moji.widget.update.language"
|
|
|
|
.line 60
|
|
invoke-static {v0, v2}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 61
|
|
invoke-static {}, Lcom/moji/preferences/units/SettingCenter;->a()Lcom/moji/preferences/units/SettingCenter;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/moji/preferences/units/SettingCenter;->b()Lcom/moji/preferences/units/ELanguage;
|
|
|
|
move-result-object v0
|
|
|
|
.line 62
|
|
invoke-static {v0}, Lcom/moji/appwidget/core/SkinLanguageUtil;->a(Lcom/moji/preferences/units/ELanguage;)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_2
|
|
|
|
const/4 v2, 0x0
|
|
|
|
.line 63
|
|
invoke-virtual {v0}, Lcom/moji/preferences/units/ELanguage;->getLocale()Ljava/util/Locale;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v2, v0}, Lcom/moji/appwidget/core/SkinLanguageUtil;->a(Landroid/content/res/Configuration;Ljava/util/Locale;)V
|
|
|
|
.line 65
|
|
:cond_2
|
|
invoke-static {}, Lcom/moji/appwidget/core/MJWidgetManager;->a()Lcom/moji/appwidget/core/MJWidgetManager;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v2, p0, Lcom/moji/mjweather/DaemonService$ScreenReceiver$1;->b:Landroid/content/Context;
|
|
|
|
sget-object v3, Lcom/moji/appwidget/core/ELayer;->FACE:Lcom/moji/appwidget/core/ELayer;
|
|
|
|
new-array v1, v1, [Lcom/moji/appwidget/core/EWidgetSize;
|
|
|
|
invoke-virtual {v0, v2, v3, v1}, Lcom/moji/appwidget/core/MJWidgetManager;->a(Landroid/content/Context;Lcom/moji/appwidget/core/ELayer;[Lcom/moji/appwidget/core/EWidgetSize;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
const-string v0, "com.moji.widget.update.background"
|
|
|
|
.line 66
|
|
iget-object v2, p0, Lcom/moji/mjweather/DaemonService$ScreenReceiver$1;->a:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
.line 67
|
|
invoke-static {}, Lcom/moji/appwidget/core/MJWidgetManager;->a()Lcom/moji/appwidget/core/MJWidgetManager;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v2, p0, Lcom/moji/mjweather/DaemonService$ScreenReceiver$1;->b:Landroid/content/Context;
|
|
|
|
sget-object v3, Lcom/moji/appwidget/core/ELayer;->BACKGROUND:Lcom/moji/appwidget/core/ELayer;
|
|
|
|
new-array v1, v1, [Lcom/moji/appwidget/core/EWidgetSize;
|
|
|
|
invoke-virtual {v0, v2, v3, v1}, Lcom/moji/appwidget/core/MJWidgetManager;->a(Landroid/content/Context;Lcom/moji/appwidget/core/ELayer;[Lcom/moji/appwidget/core/EWidgetSize;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
const-string v0, "com.moji.widget.update.reload"
|
|
|
|
.line 68
|
|
iget-object v2, p0, Lcom/moji/mjweather/DaemonService$ScreenReceiver$1;->a:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
.line 69
|
|
invoke-static {}, Lcom/moji/appwidget/core/MJWidgetManager;->a()Lcom/moji/appwidget/core/MJWidgetManager;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v2, p0, Lcom/moji/mjweather/DaemonService$ScreenReceiver$1;->b:Landroid/content/Context;
|
|
|
|
new-array v1, v1, [Lcom/moji/appwidget/core/EWidgetSize;
|
|
|
|
invoke-virtual {v0, v2, v1}, Lcom/moji/appwidget/core/MJWidgetManager;->a(Landroid/content/Context;[Lcom/moji/appwidget/core/EWidgetSize;)V
|
|
|
|
:cond_5
|
|
:goto_0
|
|
return-void
|
|
.end method
|