.class Lcom/moji/mjweather/MainActivity$2;
.super Ljava/lang/Object;
.source "MainActivity.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjweather/MainActivity;->c()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 446
    iput-object p1, p0, Lcom/moji/mjweather/MainActivity$2;->a:Lcom/moji/mjweather/MainActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 4

    .line 449
    iget-object v0, p0, Lcom/moji/mjweather/MainActivity$2;->a:Lcom/moji/mjweather/MainActivity;

    invoke-static {v0}, Lcom/moji/mjweather/MainActivity;->b(Lcom/moji/mjweather/MainActivity;)V

    .line 451
    :try_start_0
    iget-object v0, p0, Lcom/moji/mjweather/MainActivity$2;->a:Lcom/moji/mjweather/MainActivity;

    new-instance v1, Landroid/content/Intent;

    iget-object v2, p0, Lcom/moji/mjweather/MainActivity$2;->a:Lcom/moji/mjweather/MainActivity;

    const-class v3, Lcom/moji/mjad/service/MJAdService;

    invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    invoke-virtual {v0, v1}, Lcom/moji/mjweather/MainActivity;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;
    :try_end_0
    .catch Ljava/lang/SecurityException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    const-string v1, "MainActivity"

    .line 453
    invoke-static {v1, v0}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 456
    :goto_0
    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_0

    const-string v0, "TestTAGs"

    const-string v1, "\u542f\u52a8 DaemonService.start(MainActivity.this); "

    .line 457
    invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 458
    iget-object v0, p0, Lcom/moji/mjweather/MainActivity$2;->a:Lcom/moji/mjweather/MainActivity;

    invoke-static {v0}, Lcom/moji/mjweather/DaemonService;->a(Landroid/content/Context;)V

    .line 460
    :cond_0
    invoke-static {}, Lcom/mojiweather/area/AddAreaFragment;->a()V

    return-void
.end method
