1300 lines
34 KiB
Smali
1300 lines
34 KiB
Smali
.class public Lcom/moji/appwidget/hotspot/AWCustomAction;
|
|
.super Ljava/lang/Object;
|
|
.source "AWCustomAction.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/moji/appwidget/hotspot/AWCustomAction$EActionTYPE;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public a:Lcom/moji/appwidget/hotspot/AWCustomAction$EActionTYPE;
|
|
|
|
.field public b:Ljava/lang/String;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/moji/appwidget/hotspot/AWCustomAction$EActionTYPE;Ljava/lang/String;)V
|
|
.locals 0
|
|
|
|
.line 38
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 39
|
|
iput-object p1, p0, Lcom/moji/appwidget/hotspot/AWCustomAction;->a:Lcom/moji/appwidget/hotspot/AWCustomAction$EActionTYPE;
|
|
|
|
.line 40
|
|
iput-object p2, p0, Lcom/moji/appwidget/hotspot/AWCustomAction;->b:Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private a(Landroid/content/Intent;Landroid/content/Context;)Z
|
|
.locals 2
|
|
|
|
.line 340
|
|
invoke-virtual {p2}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Landroid/content/Intent;->resolveActivity(Landroid/content/pm/PackageManager;)Landroid/content/ComponentName;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 343
|
|
:try_start_0
|
|
invoke-virtual {p1, v0}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;
|
|
|
|
.line 344
|
|
invoke-virtual {p2, p1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
|
|
:catch_0
|
|
return v1
|
|
|
|
:cond_0
|
|
return v1
|
|
.end method
|
|
|
|
.method private b(Landroid/content/Context;)V
|
|
.locals 4
|
|
|
|
.line 176
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
invoke-direct {v0}, Landroid/content/Intent;-><init>()V
|
|
|
|
.line 177
|
|
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v2, 0xf
|
|
|
|
if-lt v1, v2, :cond_0
|
|
|
|
const-string v1, "android.intent.category.APP_CALENDAR"
|
|
|
|
.line 178
|
|
invoke-virtual {v0, v1}, Landroid/content/Intent;->addCategory(Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-string v1, "android.intent.category.APP_CALENDAR"
|
|
|
|
.line 180
|
|
invoke-virtual {v0, v1}, Landroid/content/Intent;->addCategory(Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
:goto_0
|
|
const-string v1, "android.intent.action.MAIN"
|
|
|
|
.line 182
|
|
invoke-virtual {v0, v1}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
const/high16 v1, 0x10000000
|
|
|
|
.line 183
|
|
invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
|
|
|
|
.line 184
|
|
invoke-direct {p0, v0, p1}, Lcom/moji/appwidget/hotspot/AWCustomAction;->a(Landroid/content/Intent;Landroid/content/Context;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
return-void
|
|
|
|
.line 188
|
|
:cond_1
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
invoke-direct {v0}, Landroid/content/Intent;-><init>()V
|
|
|
|
const-string v2, "com.android.calendar"
|
|
|
|
const-string v3, "com.android.calendar.LaunchActivity"
|
|
|
|
.line 189
|
|
invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
.line 190
|
|
invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
|
|
|
|
.line 191
|
|
invoke-direct {p0, v0, p1}, Lcom/moji/appwidget/hotspot/AWCustomAction;->a(Landroid/content/Intent;Landroid/content/Context;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
return-void
|
|
|
|
.line 195
|
|
:cond_2
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
invoke-direct {v0}, Landroid/content/Intent;-><init>()V
|
|
|
|
const-string v2, "com.google.android.calendar"
|
|
|
|
const-string v3, "com.android.calendar.LaunchActivity"
|
|
|
|
.line 196
|
|
invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
.line 197
|
|
invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
|
|
|
|
.line 198
|
|
invoke-direct {p0, v0, p1}, Lcom/moji/appwidget/hotspot/AWCustomAction;->a(Landroid/content/Intent;Landroid/content/Context;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
return-void
|
|
|
|
.line 202
|
|
:cond_3
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
invoke-direct {v0}, Landroid/content/Intent;-><init>()V
|
|
|
|
const-string v2, "com.htc.calendar"
|
|
|
|
const-string v3, "com.htc.calendar.MonthActivity"
|
|
|
|
.line 203
|
|
invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
.line 204
|
|
invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
|
|
|
|
.line 205
|
|
invoke-direct {p0, v0, p1}, Lcom/moji/appwidget/hotspot/AWCustomAction;->a(Landroid/content/Intent;Landroid/content/Context;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
return-void
|
|
|
|
.line 209
|
|
:cond_4
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
invoke-direct {v0}, Landroid/content/Intent;-><init>()V
|
|
|
|
const-string v2, "com.motorola.calendar"
|
|
|
|
const-string v3, "com.android.calendar.AllInOneActivity"
|
|
|
|
.line 210
|
|
invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
.line 211
|
|
invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
|
|
|
|
.line 212
|
|
invoke-direct {p0, v0, p1}, Lcom/moji/appwidget/hotspot/AWCustomAction;->a(Landroid/content/Intent;Landroid/content/Context;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
return-void
|
|
|
|
.line 216
|
|
:cond_5
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
invoke-direct {v0}, Landroid/content/Intent;-><init>()V
|
|
|
|
const-string v2, "com.asus.calendar"
|
|
|
|
const-string v3, "com.android.calendar.AllInOneActivity"
|
|
|
|
.line 217
|
|
invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
.line 218
|
|
invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
|
|
|
|
.line 219
|
|
invoke-direct {p0, v0, p1}, Lcom/moji/appwidget/hotspot/AWCustomAction;->a(Landroid/content/Intent;Landroid/content/Context;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
return-void
|
|
|
|
.line 223
|
|
:cond_6
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
invoke-direct {v0}, Landroid/content/Intent;-><init>()V
|
|
|
|
const-string v2, "com.samsung.android.calendar"
|
|
|
|
const-string v3, "com.android.calendar.AllInOneActivity"
|
|
|
|
.line 224
|
|
invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
.line 225
|
|
invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
|
|
|
|
.line 226
|
|
invoke-direct {p0, v0, p1}, Lcom/moji/appwidget/hotspot/AWCustomAction;->a(Landroid/content/Intent;Landroid/content/Context;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_7
|
|
|
|
return-void
|
|
|
|
.line 230
|
|
:cond_7
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
invoke-direct {v0}, Landroid/content/Intent;-><init>()V
|
|
|
|
const-string v2, "com.bbk.calendar"
|
|
|
|
const-string v3, "com.bbk.calendar.MainActivity"
|
|
|
|
.line 231
|
|
invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
.line 232
|
|
invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
|
|
|
|
.line 233
|
|
invoke-direct {p0, v0, p1}, Lcom/moji/appwidget/hotspot/AWCustomAction;->a(Landroid/content/Intent;Landroid/content/Context;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_8
|
|
|
|
return-void
|
|
|
|
.line 236
|
|
:cond_8
|
|
sget v0, Lcom/moji/appwidget/R$string;->hots_click_failed:I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-static {p1, v0, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Landroid/widget/Toast;->show()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private c(Landroid/content/Context;)V
|
|
.locals 4
|
|
|
|
.line 246
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x13
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
.line 247
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
const-string v1, "android.intent.action.SET_ALARM"
|
|
|
|
invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 249
|
|
:cond_0
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
const-string v1, "android.intent.action.SHOW_ALARMS"
|
|
|
|
invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
|
|
|
|
:goto_0
|
|
const/high16 v1, 0x10000000
|
|
|
|
.line 251
|
|
invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
|
|
|
|
.line 252
|
|
invoke-direct {p0, v0, p1}, Lcom/moji/appwidget/hotspot/AWCustomAction;->a(Landroid/content/Intent;Landroid/content/Context;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
return-void
|
|
|
|
.line 256
|
|
:cond_1
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
invoke-direct {v0}, Landroid/content/Intent;-><init>()V
|
|
|
|
const-string v2, "com.coloros.alarmclock"
|
|
|
|
const-string v3, "com.coloros.alarmclock.AlarmClock"
|
|
|
|
.line 257
|
|
invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
.line 258
|
|
invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
|
|
|
|
.line 259
|
|
invoke-direct {p0, v0, p1}, Lcom/moji/appwidget/hotspot/AWCustomAction;->a(Landroid/content/Intent;Landroid/content/Context;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
return-void
|
|
|
|
.line 263
|
|
:cond_2
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
invoke-direct {v0}, Landroid/content/Intent;-><init>()V
|
|
|
|
const-string v2, "com.android.deskclock"
|
|
|
|
const-string v3, "com.android.deskclock.AlarmClock"
|
|
|
|
.line 264
|
|
invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
.line 265
|
|
invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
|
|
|
|
.line 266
|
|
invoke-direct {p0, v0, p1}, Lcom/moji/appwidget/hotspot/AWCustomAction;->a(Landroid/content/Intent;Landroid/content/Context;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
return-void
|
|
|
|
.line 270
|
|
:cond_3
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
invoke-direct {v0}, Landroid/content/Intent;-><init>()V
|
|
|
|
const-string v2, "com.htc.android.worldclock"
|
|
|
|
const-string v3, "com.htc.android.worldclock.WorldClockTabControl"
|
|
|
|
.line 271
|
|
invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
.line 272
|
|
invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
|
|
|
|
.line 273
|
|
invoke-direct {p0, v0, p1}, Lcom/moji/appwidget/hotspot/AWCustomAction;->a(Landroid/content/Intent;Landroid/content/Context;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
return-void
|
|
|
|
.line 277
|
|
:cond_4
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
invoke-direct {v0}, Landroid/content/Intent;-><init>()V
|
|
|
|
const-string v2, "com.android.alarmclock"
|
|
|
|
const-string v3, "com.android.alarmclock.AlarmClock"
|
|
|
|
.line 278
|
|
invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
.line 279
|
|
invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
|
|
|
|
.line 280
|
|
invoke-direct {p0, v0, p1}, Lcom/moji/appwidget/hotspot/AWCustomAction;->a(Landroid/content/Intent;Landroid/content/Context;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
return-void
|
|
|
|
.line 284
|
|
:cond_5
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
invoke-direct {v0}, Landroid/content/Intent;-><init>()V
|
|
|
|
const-string v2, "com.sec.android.app.clockpackage"
|
|
|
|
const-string v3, "com.sec.android.app.clockpackage.ClockPackage"
|
|
|
|
.line 285
|
|
invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
.line 286
|
|
invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
|
|
|
|
.line 287
|
|
invoke-direct {p0, v0, p1}, Lcom/moji/appwidget/hotspot/AWCustomAction;->a(Landroid/content/Intent;Landroid/content/Context;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
return-void
|
|
|
|
.line 291
|
|
:cond_6
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
invoke-direct {v0}, Landroid/content/Intent;-><init>()V
|
|
|
|
const-string v2, "com.google.android.deskclock"
|
|
|
|
const-string v3, "com.android.deskclock.AlarmClock"
|
|
|
|
.line 292
|
|
invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
.line 293
|
|
invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
|
|
|
|
.line 294
|
|
invoke-direct {p0, v0, p1}, Lcom/moji/appwidget/hotspot/AWCustomAction;->a(Landroid/content/Intent;Landroid/content/Context;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_7
|
|
|
|
return-void
|
|
|
|
.line 298
|
|
:cond_7
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
invoke-direct {v0}, Landroid/content/Intent;-><init>()V
|
|
|
|
const-string v2, "com.google.android.deskclock"
|
|
|
|
const-string v3, "com.android.deskclock.DeskClock"
|
|
|
|
.line 299
|
|
invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
.line 300
|
|
invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
|
|
|
|
.line 301
|
|
invoke-direct {p0, v0, p1}, Lcom/moji/appwidget/hotspot/AWCustomAction;->a(Landroid/content/Intent;Landroid/content/Context;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_8
|
|
|
|
return-void
|
|
|
|
.line 305
|
|
:cond_8
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
invoke-direct {v0}, Landroid/content/Intent;-><init>()V
|
|
|
|
const-string v2, "com.motorola.blur.alarmclock"
|
|
|
|
const-string v3, "com.motorola.blur.alarmclock.AlarmClock"
|
|
|
|
.line 306
|
|
invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
.line 307
|
|
invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
|
|
|
|
.line 308
|
|
invoke-direct {p0, v0, p1}, Lcom/moji/appwidget/hotspot/AWCustomAction;->a(Landroid/content/Intent;Landroid/content/Context;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_9
|
|
|
|
return-void
|
|
|
|
.line 312
|
|
:cond_9
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
invoke-direct {v0}, Landroid/content/Intent;-><init>()V
|
|
|
|
const-string v2, "com.android.deskclock"
|
|
|
|
const-string v3, "com.android.deskclock.AlarmsMainActivity"
|
|
|
|
.line 313
|
|
invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
.line 314
|
|
invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
|
|
|
|
.line 315
|
|
invoke-direct {p0, v0, p1}, Lcom/moji/appwidget/hotspot/AWCustomAction;->a(Landroid/content/Intent;Landroid/content/Context;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_a
|
|
|
|
return-void
|
|
|
|
.line 319
|
|
:cond_a
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
const-string v2, "android.intent.action.SET_ALARM"
|
|
|
|
invoke-direct {v0, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 320
|
|
invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
|
|
|
|
.line 321
|
|
invoke-direct {p0, v0, p1}, Lcom/moji/appwidget/hotspot/AWCustomAction;->a(Landroid/content/Intent;Landroid/content/Context;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_b
|
|
|
|
return-void
|
|
|
|
.line 325
|
|
:cond_b
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
const-string v2, "com.lge.alarm.alarmclocknew.deskclock"
|
|
|
|
invoke-direct {v0, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 326
|
|
invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
|
|
|
|
.line 327
|
|
invoke-direct {p0, v0, p1}, Lcom/moji/appwidget/hotspot/AWCustomAction;->a(Landroid/content/Intent;Landroid/content/Context;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_c
|
|
|
|
return-void
|
|
|
|
.line 331
|
|
:cond_c
|
|
sget v0, Lcom/moji/appwidget/R$string;->hots_click_failed:I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-static {p1, v0, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Landroid/widget/Toast;->show()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Landroid/content/Context;)V
|
|
.locals 8
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 51
|
|
:cond_0
|
|
sget-object v0, Lcom/moji/appwidget/hotspot/AWCustomAction$1;->a:[I
|
|
|
|
iget-object v1, p0, Lcom/moji/appwidget/hotspot/AWCustomAction;->a:Lcom/moji/appwidget/hotspot/AWCustomAction$EActionTYPE;
|
|
|
|
invoke-virtual {v1}, Lcom/moji/appwidget/hotspot/AWCustomAction$EActionTYPE;->ordinal()I
|
|
|
|
move-result v1
|
|
|
|
aget v0, v0, v1
|
|
|
|
const/4 v1, 0x1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
packed-switch v0, :pswitch_data_0
|
|
|
|
goto/16 :goto_3
|
|
|
|
:pswitch_0
|
|
const-string v0, "refresh"
|
|
|
|
.line 94
|
|
iget-object v3, p0, Lcom/moji/appwidget/hotspot/AWCustomAction;->b:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 95
|
|
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_1
|
|
|
|
.line 97
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
sget v4, Lcom/moji/appwidget/R$string;->Widget_update:I
|
|
|
|
invoke-static {v4}, Lcom/moji/tool/DeviceTool;->f(I)Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v0, v0, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;
|
|
|
|
iget-object v0, v0, Lcom/moji/weatherprovider/data/Detail;->mCityName:Ljava/lang/String;
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
sget v0, Lcom/moji/appwidget/R$string;->Widget_wait:I
|
|
|
|
invoke-static {v0}, Lcom/moji/tool/DeviceTool;->f(I)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {p1, v0, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Landroid/widget/Toast;->show()V
|
|
|
|
.line 99
|
|
:cond_1
|
|
new-instance v0, Lcom/moji/weatherprovider/update/WeatherUpdater;
|
|
|
|
invoke-direct {v0}, Lcom/moji/weatherprovider/update/WeatherUpdater;-><init>()V
|
|
|
|
.line 100
|
|
invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->a()Lcom/moji/common/area/AreaInfo;
|
|
|
|
move-result-object v1
|
|
|
|
sget-object v4, Lcom/moji/weatherprovider/update/WeatherUpdater$UPDATE_TYPE;->WIDGET_CLICK:Lcom/moji/weatherprovider/update/WeatherUpdater$UPDATE_TYPE;
|
|
|
|
invoke-virtual {v0, v1, v3, v4}, Lcom/moji/weatherprovider/update/WeatherUpdater;->a(Lcom/moji/common/area/AreaInfo;Lcom/moji/weatherprovider/update/WeatherUpdateListener;Lcom/moji/weatherprovider/update/WeatherUpdater$UPDATE_TYPE;)V
|
|
|
|
.line 102
|
|
invoke-static {}, Lcom/moji/appwidget/core/MJWidgetManager;->a()Lcom/moji/appwidget/core/MJWidgetManager;
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v1, Lcom/moji/appwidget/core/ELayer;->FACE:Lcom/moji/appwidget/core/ELayer;
|
|
|
|
new-array v2, v2, [Lcom/moji/appwidget/core/EWidgetSize;
|
|
|
|
invoke-virtual {v0, p1, v1, v2}, Lcom/moji/appwidget/core/MJWidgetManager;->a(Landroid/content/Context;Lcom/moji/appwidget/core/ELayer;[Lcom/moji/appwidget/core/EWidgetSize;)V
|
|
|
|
goto/16 :goto_3
|
|
|
|
:cond_2
|
|
const-string v0, "change"
|
|
|
|
.line 103
|
|
iget-object v4, p0, Lcom/moji/appwidget/hotspot/AWCustomAction;->b:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_7
|
|
|
|
.line 104
|
|
invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->c()Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
.line 105
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v4
|
|
|
|
if-gt v4, v1, :cond_3
|
|
|
|
goto/16 :goto_2
|
|
|
|
.line 108
|
|
:cond_3
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v4
|
|
|
|
const/4 v5, 0x0
|
|
|
|
:goto_0
|
|
if-ge v5, v4, :cond_12
|
|
|
|
.line 110
|
|
invoke-interface {v0, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v6
|
|
|
|
check-cast v6, Lcom/moji/common/area/AreaInfo;
|
|
|
|
invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->a()Lcom/moji/common/area/AreaInfo;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-virtual {v6, v7}, Lcom/moji/common/area/AreaInfo;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v6
|
|
|
|
if-eqz v6, :cond_5
|
|
|
|
add-int/2addr v5, v1
|
|
|
|
.line 111
|
|
rem-int/2addr v5, v4
|
|
|
|
invoke-interface {v0, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/moji/common/area/AreaInfo;
|
|
|
|
.line 112
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
sget v4, Lcom/moji/appwidget/R$string;->Widget_change:I
|
|
|
|
invoke-static {v4}, Lcom/moji/tool/DeviceTool;->f(I)Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v4, v0, Lcom/moji/common/area/AreaInfo;->cityName:Ljava/lang/String;
|
|
|
|
invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
sget v4, Lcom/moji/appwidget/R$string;->Widget_wait:I
|
|
|
|
invoke-static {v4}, Lcom/moji/tool/DeviceTool;->f(I)Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v1, v4}, 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 {p1, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Landroid/widget/Toast;->show()V
|
|
|
|
.line 113
|
|
invoke-static {v0}, Lcom/moji/areamanagement/MJAreaManager;->d(Lcom/moji/common/area/AreaInfo;)V
|
|
|
|
.line 114
|
|
new-instance v1, Landroid/content/Intent;
|
|
|
|
const-string v4, "com.moji.widget.change.city"
|
|
|
|
invoke-direct {v1, v4}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
|
|
|
|
const-string v4, "cityInfo"
|
|
|
|
.line 115
|
|
invoke-virtual {v1, v4, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;
|
|
|
|
.line 116
|
|
invoke-virtual {p1, v1}, Landroid/content/Context;->sendBroadcast(Landroid/content/Intent;)V
|
|
|
|
.line 117
|
|
new-instance v1, Lcom/moji/appwidget/WeatherRepeater;
|
|
|
|
invoke-direct {v1}, Lcom/moji/appwidget/WeatherRepeater;-><init>()V
|
|
|
|
invoke-virtual {v1}, Lcom/moji/appwidget/WeatherRepeater;->a()Lcom/moji/weatherprovider/data/Weather;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
.line 119
|
|
invoke-static {}, Lcom/moji/appwidget/core/MJWidgetManager;->a()Lcom/moji/appwidget/core/MJWidgetManager;
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v1, Lcom/moji/appwidget/core/ELayer;->FACE:Lcom/moji/appwidget/core/ELayer;
|
|
|
|
new-array v2, v2, [Lcom/moji/appwidget/core/EWidgetSize;
|
|
|
|
invoke-virtual {v0, p1, v1, v2}, Lcom/moji/appwidget/core/MJWidgetManager;->a(Landroid/content/Context;Lcom/moji/appwidget/core/ELayer;[Lcom/moji/appwidget/core/EWidgetSize;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 121
|
|
:cond_4
|
|
new-instance p1, Lcom/moji/weatherprovider/update/WeatherUpdater;
|
|
|
|
invoke-direct {p1}, Lcom/moji/weatherprovider/update/WeatherUpdater;-><init>()V
|
|
|
|
.line 122
|
|
sget-object v1, Lcom/moji/weatherprovider/update/WeatherUpdater$UPDATE_TYPE;->WIDGET_CLICK:Lcom/moji/weatherprovider/update/WeatherUpdater$UPDATE_TYPE;
|
|
|
|
invoke-virtual {p1, v0, v3, v1}, Lcom/moji/weatherprovider/update/WeatherUpdater;->a(Lcom/moji/common/area/AreaInfo;Lcom/moji/weatherprovider/update/WeatherUpdateListener;Lcom/moji/weatherprovider/update/WeatherUpdater$UPDATE_TYPE;)V
|
|
|
|
:goto_1
|
|
return-void
|
|
|
|
:cond_5
|
|
add-int/lit8 v5, v5, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 106
|
|
:cond_6
|
|
:goto_2
|
|
sget v0, Lcom/moji/appwidget/R$string;->Widget_check_Nocity:I
|
|
|
|
invoke-static {v0}, Lcom/moji/tool/DeviceTool;->f(I)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {p1, v0, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Landroid/widget/Toast;->show()V
|
|
|
|
goto/16 :goto_3
|
|
|
|
:cond_7
|
|
const-string p1, "voice"
|
|
|
|
.line 128
|
|
iget-object v0, p0, Lcom/moji/appwidget/hotspot/AWCustomAction;->b:Ljava/lang/String;
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_8
|
|
|
|
const-string p1, "Type"
|
|
|
|
const-string v0, "Voice"
|
|
|
|
.line 129
|
|
invoke-static {p1, v0}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
goto/16 :goto_3
|
|
|
|
:cond_8
|
|
const-string p1, "AWCustomAction"
|
|
|
|
const-string v0, "unknown action"
|
|
|
|
.line 131
|
|
invoke-static {p1, v0}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
goto/16 :goto_3
|
|
|
|
:pswitch_1
|
|
const-string v0, "aotuman"
|
|
|
|
.line 53
|
|
iget-object v3, p0, Lcom/moji/appwidget/hotspot/AWCustomAction;->b:Ljava/lang/String;
|
|
|
|
invoke-static {v0, v3}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 54
|
|
iget-object v0, p0, Lcom/moji/appwidget/hotspot/AWCustomAction;->b:Ljava/lang/String;
|
|
|
|
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_11
|
|
|
|
iget-object v0, p0, Lcom/moji/appwidget/hotspot/AWCustomAction;->b:Ljava/lang/String;
|
|
|
|
const-string v3, "|"
|
|
|
|
invoke-virtual {v0, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_11
|
|
|
|
const-string v0, "phone_clock|phone_clock"
|
|
|
|
.line 55
|
|
iget-object v3, p0, Lcom/moji/appwidget/hotspot/AWCustomAction;->b:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_9
|
|
|
|
.line 56
|
|
invoke-direct {p0, p1}, Lcom/moji/appwidget/hotspot/AWCustomAction;->c(Landroid/content/Context;)V
|
|
|
|
goto/16 :goto_3
|
|
|
|
:cond_9
|
|
const-string v0, "phone_calendar|phone_calendar"
|
|
|
|
.line 57
|
|
iget-object v3, p0, Lcom/moji/appwidget/hotspot/AWCustomAction;->b:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_a
|
|
|
|
.line 58
|
|
invoke-direct {p0, p1}, Lcom/moji/appwidget/hotspot/AWCustomAction;->b(Landroid/content/Context;)V
|
|
|
|
goto/16 :goto_3
|
|
|
|
:cond_a
|
|
const-string v0, "sns_camera|sns_camera"
|
|
|
|
.line 59
|
|
iget-object v3, p0, Lcom/moji/appwidget/hotspot/AWCustomAction;->b:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_b
|
|
|
|
.line 60
|
|
invoke-static {}, Lcom/moji/router/MJRouter;->a()Lcom/moji/router/MJRouter;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "camera/photoFragment"
|
|
|
|
invoke-virtual {p1, v0}, Lcom/moji/router/MJRouter;->a(Ljava/lang/String;)Lcom/moji/router/Postcard;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "extra_data_from"
|
|
|
|
const-string v1, "AppWidget"
|
|
|
|
invoke-virtual {p1, v0, v1}, Lcom/moji/router/Postcard;->a(Ljava/lang/String;Ljava/lang/String;)Lcom/moji/router/Postcard;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "extra_data_limit"
|
|
|
|
const/16 v1, 0x9
|
|
|
|
.line 61
|
|
invoke-virtual {p1, v0, v1}, Lcom/moji/router/Postcard;->a(Ljava/lang/String;I)Lcom/moji/router/Postcard;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lcom/moji/router/Postcard;->a()V
|
|
|
|
goto/16 :goto_3
|
|
|
|
:cond_b
|
|
const-string v0, "sns_hot_pic|sns_hot_pic"
|
|
|
|
.line 62
|
|
iget-object v3, p0, Lcom/moji/appwidget/hotspot/AWCustomAction;->b:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_c
|
|
|
|
.line 63
|
|
invoke-static {}, Lcom/moji/router/MJRouter;->a()Lcom/moji/router/MJRouter;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "weather/mainActivity"
|
|
|
|
invoke-virtual {p1, v0}, Lcom/moji/router/MJRouter;->a(Ljava/lang/String;)Lcom/moji/router/Postcard;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "selectTabLive"
|
|
|
|
invoke-virtual {p1, v0, v1}, Lcom/moji/router/Postcard;->a(Ljava/lang/String;Z)Lcom/moji/router/Postcard;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lcom/moji/router/Postcard;->a()V
|
|
|
|
goto/16 :goto_3
|
|
|
|
:cond_c
|
|
const-string v0, "VoiceAlarm|VoiceAlarm"
|
|
|
|
.line 64
|
|
iget-object v3, p0, Lcom/moji/appwidget/hotspot/AWCustomAction;->b:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_d
|
|
|
|
.line 65
|
|
invoke-static {}, Lcom/moji/router/MJRouter;->a()Lcom/moji/router/MJRouter;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "setting/voiceAlarm"
|
|
|
|
invoke-virtual {p1, v0}, Lcom/moji/router/MJRouter;->a(Ljava/lang/String;)Lcom/moji/router/Postcard;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lcom/moji/router/Postcard;->a()V
|
|
|
|
goto/16 :goto_3
|
|
|
|
:cond_d
|
|
const-string v0, "voice|voice"
|
|
|
|
.line 66
|
|
iget-object v3, p0, Lcom/moji/appwidget/hotspot/AWCustomAction;->b:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_e
|
|
|
|
.line 67
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
const-string v1, "com.moji.widget.voice.play"
|
|
|
|
invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p1, v0}, Landroid/content/Context;->sendBroadcast(Landroid/content/Intent;)V
|
|
|
|
goto :goto_3
|
|
|
|
:cond_e
|
|
const-string v0, "none|none"
|
|
|
|
.line 68
|
|
iget-object v3, p0, Lcom/moji/appwidget/hotspot/AWCustomAction;->b:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_f
|
|
|
|
.line 69
|
|
sget v0, Lcom/moji/appwidget/R$string;->Widget_no_setting:I
|
|
|
|
invoke-static {v0}, Lcom/moji/tool/DeviceTool;->f(I)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {p1, v0, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Landroid/widget/Toast;->show()V
|
|
|
|
goto :goto_3
|
|
|
|
.line 71
|
|
:cond_f
|
|
iget-object v0, p0, Lcom/moji/appwidget/hotspot/AWCustomAction;->b:Ljava/lang/String;
|
|
|
|
const-string v3, "\\|"
|
|
|
|
invoke-virtual {v0, v3}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
.line 72
|
|
new-instance v3, Landroid/content/Intent;
|
|
|
|
invoke-direct {v3}, Landroid/content/Intent;-><init>()V
|
|
|
|
.line 73
|
|
aget-object v4, v0, v2
|
|
|
|
aget-object v0, v0, v1
|
|
|
|
invoke-virtual {v3, v4, v0}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
const/high16 v0, 0x10000000
|
|
|
|
.line 74
|
|
invoke-virtual {v3, v0}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
|
|
|
|
.line 75
|
|
invoke-virtual {p0, p1, v3}, Lcom/moji/appwidget/hotspot/AWCustomAction;->a(Landroid/content/Context;Landroid/content/Intent;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_10
|
|
|
|
.line 77
|
|
:try_start_0
|
|
invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v3, v0}, Landroid/content/Intent;->resolveActivity(Landroid/content/pm/PackageManager;)Landroid/content/ComponentName;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_12
|
|
|
|
.line 79
|
|
invoke-virtual {p1, v3}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
|
|
:try_end_0
|
|
.catch Ljava/lang/SecurityException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_3
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
const-string v0, "appwidget start error"
|
|
|
|
.line 82
|
|
invoke-static {v0, p1}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
goto :goto_3
|
|
|
|
.line 86
|
|
:cond_10
|
|
sget v0, Lcom/moji/appwidget/R$string;->hots_click_failed:I
|
|
|
|
invoke-static {p1, v0, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Landroid/widget/Toast;->show()V
|
|
|
|
goto :goto_3
|
|
|
|
:cond_11
|
|
const-string p1, "AWCustomAction"
|
|
|
|
const-string v0, "mAction invalid"
|
|
|
|
.line 90
|
|
invoke-static {p1, v0}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
:cond_12
|
|
:goto_3
|
|
return-void
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x1
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method public a(Landroid/content/Context;Landroid/content/Intent;)Z
|
|
.locals 1
|
|
|
|
.line 335
|
|
invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
|
|
|
|
move-result-object p1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-virtual {p1, p2, v0}, Landroid/content/pm/PackageManager;->queryIntentActivities(Landroid/content/Intent;I)Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
.line 336
|
|
invoke-interface {p1}, Ljava/util/List;->size()I
|
|
|
|
move-result p1
|
|
|
|
if-lez p1, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
:cond_0
|
|
return v0
|
|
.end method
|