153 lines
3.5 KiB
Smali
153 lines
3.5 KiB
Smali
.class public Lcom/moji/appwidget/service/HotSpotService;
|
|
.super Landroid/app/Service;
|
|
.source "HotSpotService.java"
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 17
|
|
invoke-direct {p0}, Landroid/app/Service;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onBind(Landroid/content/Intent;)Landroid/os/IBinder;
|
|
.locals 0
|
|
.annotation build Landroid/support/annotation/Nullable;
|
|
.end annotation
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public onStartCommand(Landroid/content/Intent;II)I
|
|
.locals 2
|
|
|
|
const-string p2, "HotSpotService"
|
|
|
|
const-string p3, "click is success----------"
|
|
|
|
.line 26
|
|
invoke-static {p2, p3}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
const/4 p2, 0x1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
const-string p1, "HotSpotService"
|
|
|
|
const-string p3, "startHot Intent is null----------"
|
|
|
|
.line 28
|
|
invoke-static {p1, p3}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
return p2
|
|
|
|
:cond_0
|
|
const-string p3, "widgetsize"
|
|
|
|
const/16 v0, 0x64
|
|
|
|
.line 31
|
|
invoke-virtual {p1, p3, v0}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I
|
|
|
|
move-result p3
|
|
|
|
const/4 v0, 0x0
|
|
|
|
sparse-switch p3, :sswitch_data_0
|
|
|
|
const-string p3, "----------------"
|
|
|
|
const-string v1, "widgetsize is error"
|
|
|
|
.line 47
|
|
invoke-static {p3, v1}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 44
|
|
:sswitch_0
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
const-class p3, Lcom/moji/mjweather/CMojiWidget5x2;
|
|
|
|
invoke-direct {v0, p0, p3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 41
|
|
:sswitch_1
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
const-class p3, Lcom/moji/mjweather/CMojiWidget5x1;
|
|
|
|
invoke-direct {v0, p0, p3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 38
|
|
:sswitch_2
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
const-class p3, Lcom/moji/mjweather/CMojiWidget4x2;
|
|
|
|
invoke-direct {v0, p0, p3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 35
|
|
:sswitch_3
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
const-class p3, Lcom/moji/mjweather/CMojiWidget4x1;
|
|
|
|
invoke-direct {v0, p0, p3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
|
|
|
|
:goto_0
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 52
|
|
invoke-virtual {p1}, Landroid/content/Intent;->getAction()Ljava/lang/String;
|
|
|
|
move-result-object p3
|
|
|
|
invoke-virtual {v0, p3}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
const-string p3, "index"
|
|
|
|
const/4 v1, -0x1
|
|
|
|
.line 53
|
|
invoke-virtual {p1, p3, v1}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I
|
|
|
|
move-result p1
|
|
|
|
if-eq p1, v1, :cond_1
|
|
|
|
const-string p3, "index"
|
|
|
|
.line 55
|
|
invoke-virtual {v0, p3, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
|
|
|
|
.line 57
|
|
:cond_1
|
|
invoke-virtual {p0, v0}, Lcom/moji/appwidget/service/HotSpotService;->sendBroadcast(Landroid/content/Intent;)V
|
|
|
|
:cond_2
|
|
return p2
|
|
|
|
:sswitch_data_0
|
|
.sparse-switch
|
|
0x29 -> :sswitch_3
|
|
0x2a -> :sswitch_2
|
|
0x33 -> :sswitch_1
|
|
0x34 -> :sswitch_0
|
|
.end sparse-switch
|
|
.end method
|