222 lines
5.3 KiB
Smali
222 lines
5.3 KiB
Smali
.class public Lcom/moji/external/receiver/ExternalReceiver;
|
|
.super Landroid/content/BroadcastReceiver;
|
|
.source "ExternalReceiver.java"
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 46
|
|
invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a()V
|
|
.locals 1
|
|
|
|
const-string v0, "com.igexin.sdk.PushReceiver"
|
|
|
|
.line 119
|
|
invoke-static {v0}, Lcom/moji/external/receiver/ExternalReceiver;->a(Ljava/lang/String;)V
|
|
|
|
const-string v0, "com.igexin.download.DownloadReceiver"
|
|
|
|
.line 123
|
|
invoke-static {v0}, Lcom/moji/external/receiver/ExternalReceiver;->a(Ljava/lang/String;)V
|
|
|
|
const-string v0, "com.igexin.download.DownloadProvider"
|
|
|
|
.line 125
|
|
invoke-static {v0}, Lcom/moji/external/receiver/ExternalReceiver;->a(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static a(Ljava/lang/String;)V
|
|
.locals 3
|
|
|
|
.line 136
|
|
new-instance v0, Landroid/content/ComponentName;
|
|
|
|
invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1, p0}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 137
|
|
invoke-static {}, Lcom/moji/tool/preferences/CtaPrefer;->c()Lcom/moji/tool/preferences/CtaPrefer;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Lcom/moji/tool/preferences/CtaPrefer;->e()Z
|
|
|
|
move-result p0
|
|
|
|
.line 138
|
|
invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x2
|
|
|
|
:goto_0
|
|
invoke-virtual {v1, v0, p0, v2}, Landroid/content/pm/PackageManager;->setComponentEnabledSetting(Landroid/content/ComponentName;II)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private a(ZLcom/moji/common/area/AreaInfo;)V
|
|
.locals 1
|
|
|
|
.line 86
|
|
new-instance p1, Lcom/moji/weatherprovider/update/WeatherUpdater;
|
|
|
|
invoke-direct {p1}, Lcom/moji/weatherprovider/update/WeatherUpdater;-><init>()V
|
|
|
|
new-instance v0, Lcom/moji/external/receiver/ExternalReceiver$1;
|
|
|
|
invoke-direct {v0, p0, p2}, Lcom/moji/external/receiver/ExternalReceiver$1;-><init>(Lcom/moji/external/receiver/ExternalReceiver;Lcom/moji/common/area/AreaInfo;)V
|
|
|
|
invoke-virtual {p1, p2, v0}, Lcom/moji/weatherprovider/update/WeatherUpdater;->a(Lcom/moji/common/area/AreaInfo;Lcom/moji/weatherprovider/update/WeatherUpdateListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
|
|
.locals 2
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 56
|
|
:cond_0
|
|
invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
.line 57
|
|
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
const-string p2, "com.hf.custom.UPDATE_FROM_WIDGET"
|
|
|
|
.line 61
|
|
invoke-virtual {p2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_5
|
|
|
|
.line 62
|
|
invoke-static {}, Lcom/moji/tool/preferences/CtaPrefer;->c()Lcom/moji/tool/preferences/CtaPrefer;
|
|
|
|
move-result-object p1
|
|
|
|
const/4 p2, 0x1
|
|
|
|
invoke-virtual {p1, p2}, Lcom/moji/tool/preferences/CtaPrefer;->b(Z)V
|
|
|
|
.line 64
|
|
invoke-static {}, Lcom/moji/external/receiver/ExternalReceiver;->a()V
|
|
|
|
.line 65
|
|
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v0, Lcom/moji/statistics/EVENT_TAG;->AGREE_GUIDE:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
invoke-virtual {p1, v0}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;)Lcom/moji/statistics/EventManager;
|
|
|
|
.line 66
|
|
invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->c()Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
.line 67
|
|
invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->b()Lcom/moji/common/area/AreaInfo;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
if-eqz p1, :cond_3
|
|
|
|
.line 69
|
|
invoke-interface {p1}, Ljava/util/List;->size()I
|
|
|
|
move-result p1
|
|
|
|
if-lez p1, :cond_3
|
|
|
|
if-nez v1, :cond_4
|
|
|
|
.line 71
|
|
invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->a()Lcom/moji/common/area/AreaInfo;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
if-nez v1, :cond_4
|
|
|
|
.line 75
|
|
new-instance v0, Lcom/moji/common/area/AreaInfo;
|
|
|
|
invoke-direct {v0}, Lcom/moji/common/area/AreaInfo;-><init>()V
|
|
|
|
.line 76
|
|
iput-boolean p2, v0, Lcom/moji/common/area/AreaInfo;->isLocation:Z
|
|
|
|
const/16 p1, -0x63
|
|
|
|
.line 77
|
|
iput p1, v0, Lcom/moji/common/area/AreaInfo;->cityId:I
|
|
|
|
.line 80
|
|
:cond_4
|
|
:goto_1
|
|
invoke-direct {p0, v1, v0}, Lcom/moji/external/receiver/ExternalReceiver;->a(ZLcom/moji/common/area/AreaInfo;)V
|
|
|
|
:cond_5
|
|
return-void
|
|
.end method
|