.class public Lcom/moji/mjweather/me/control/MeClearCacheViewControl;
.super Lcom/moji/mjweather/me/control/MJMVPViewControl;
.source "MeClearCacheViewControl.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/moji/mjweather/me/control/MeClearCacheViewControl$OnClearFinish;
    }
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/moji/mjweather/me/control/MJMVPViewControl<",
        "Ljava/lang/Object;",
        "Lcom/moji/mjweather/me/presenter/ClearCachePresenter;",
        ">;",
        "Landroid/view/View$OnClickListener;"
    }
.end annotation


# static fields
.field private static f:Lcom/moji/http/ast/entity/ClearAppInfoEntity;


# instance fields
.field private a:Landroid/widget/TextView;

.field private b:Landroid/app/AlertDialog;

.field private c:Landroid/widget/ImageView;

.field private d:Landroid/widget/TextView;

.field private e:Ljava/lang/ref/WeakReference;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/lang/ref/WeakReference<",
            "Landroid/app/Activity;",
            ">;"
        }
    .end annotation
.end field

.field private g:Z

.field private h:Lcom/moji/mjweather/me/control/MeClearCacheViewControl$OnClearFinish;

.field private i:I

.field private j:Ljava/lang/String;


# direct methods
.method public constructor <init>(Landroid/content/Context;I)V
    .locals 1

    .line 85
    invoke-direct {p0, p1}, Lcom/moji/mjweather/me/control/MJMVPViewControl;-><init>(Landroid/content/Context;)V

    const/4 v0, 0x0

    .line 63
    iput-boolean v0, p0, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->g:Z

    const/4 v0, 0x1

    .line 65
    iput v0, p0, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->i:I

    .line 86
    new-instance v0, Ljava/lang/ref/WeakReference;

    check-cast p1, Landroid/app/Activity;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->e:Ljava/lang/ref/WeakReference;

    .line 87
    iput p2, p0, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->i:I

    return-void
.end method

.method static synthetic a(Lcom/moji/mjweather/me/control/MeClearCacheViewControl;)Landroid/widget/TextView;
    .locals 0

    .line 51
    iget-object p0, p0, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->a:Landroid/widget/TextView;

    return-object p0
.end method

.method static synthetic a(Lcom/moji/http/ast/entity/ClearAppInfoEntity;)Lcom/moji/http/ast/entity/ClearAppInfoEntity;
    .locals 0

    .line 51
    sput-object p0, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->f:Lcom/moji/http/ast/entity/ClearAppInfoEntity;

    return-object p0
.end method

.method static synthetic a(Lcom/moji/mjweather/me/control/MeClearCacheViewControl;Ljava/lang/String;)Ljava/lang/String;
    .locals 0

    .line 51
    iput-object p1, p0, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->j:Ljava/lang/String;

    return-object p1
.end method

.method public static a(Landroid/view/View;)V
    .locals 8

    .line 302
    new-instance v7, Landroid/view/animation/RotateAnimation;

    const/4 v1, 0x0

    const v2, 0x43b38000    # 359.0f

    const/4 v3, 0x1

    const/high16 v4, 0x3f000000    # 0.5f

    const/4 v5, 0x1

    const/high16 v6, 0x3f000000    # 0.5f

    move-object v0, v7

    invoke-direct/range {v0 .. v6}, Landroid/view/animation/RotateAnimation;-><init>(FFIFIF)V

    const/4 v0, -0x1

    .line 303
    invoke-virtual {v7, v0}, Landroid/view/animation/RotateAnimation;->setRepeatCount(I)V

    const-wide/16 v0, 0x1f4

    .line 304
    invoke-virtual {v7, v0, v1}, Landroid/view/animation/RotateAnimation;->setDuration(J)V

    .line 305
    new-instance v0, Landroid/view/animation/LinearInterpolator;

    invoke-direct {v0}, Landroid/view/animation/LinearInterpolator;-><init>()V

    invoke-virtual {v7, v0}, Landroid/view/animation/RotateAnimation;->setInterpolator(Landroid/view/animation/Interpolator;)V

    .line 306
    invoke-virtual {p0, v7}, Landroid/view/View;->startAnimation(Landroid/view/animation/Animation;)V

    return-void
.end method

.method private a(Ljava/lang/String;)V
    .locals 7

    .line 179
    invoke-direct {p0}, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->c()Landroid/app/Activity;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 180
    invoke-virtual {v0}, Landroid/app/Activity;->isFinishing()Z

    move-result v1

    if-nez v1, :cond_1

    .line 181
    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v1

    const v2, 0x7f0b0230

    const/4 v3, 0x0

    invoke-virtual {v1, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    .line 183
    new-instance v2, Landroid/app/AlertDialog$Builder;

    invoke-direct {v2, v0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    invoke-virtual {v2}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v2

    iput-object v2, p0, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->b:Landroid/app/AlertDialog;

    .line 184
    iget-object v2, p0, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->b:Landroid/app/AlertDialog;

    invoke-virtual {v2}, Landroid/app/AlertDialog;->show()V

    .line 185
    iget-object v2, p0, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->b:Landroid/app/AlertDialog;

    invoke-virtual {v2, v1}, Landroid/app/AlertDialog;->setContentView(Landroid/view/View;)V

    .line 186
    iget-object v2, p0, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->b:Landroid/app/AlertDialog;

    invoke-virtual {v2}, Landroid/app/AlertDialog;->getWindow()Landroid/view/Window;

    move-result-object v2

    invoke-virtual {v2}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams;

    move-result-object v2

    .line 187
    invoke-static {}, Lcom/moji/tool/DeviceTool;->b()I

    move-result v3

    const/high16 v4, 0x42c80000    # 100.0f

    .line 188
    invoke-static {}, Lcom/moji/tool/DeviceTool;->f()F

    move-result v5

    mul-float v5, v5, v4

    float-to-int v4, v5

    sub-int/2addr v3, v4

    iput v3, v2, Landroid/view/WindowManager$LayoutParams;->width:I

    .line 189
    iget-object v3, p0, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->b:Landroid/app/AlertDialog;

    invoke-virtual {v3}, Landroid/app/AlertDialog;->getWindow()Landroid/view/Window;

    move-result-object v3

    invoke-virtual {v3, v2}, Landroid/view/Window;->setAttributes(Landroid/view/WindowManager$LayoutParams;)V

    const v2, 0x7f0900d7

    .line 191
    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    const v3, 0x7f090a5e

    .line 192
    invoke-virtual {v1, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    const v4, 0x7f0900d8

    .line 193
    invoke-virtual {v1, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    const v5, 0x7f09038c

    .line 195
    invoke-virtual {v1, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/ImageView;

    const v6, 0x7f09038d

    .line 196
    invoke-virtual {v1, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/ImageView;

    iput-object v6, p0, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->c:Landroid/widget/ImageView;

    const v6, 0x7f090aa0

    .line 198
    invoke-virtual {v1, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->d:Landroid/widget/TextView;

    .line 199
    iget-object v1, p0, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->d:Landroid/widget/TextView;

    const/4 v6, 0x4

    invoke-virtual {v1, v6}, Landroid/widget/TextView;->setVisibility(I)V

    .line 200
    new-instance v1, Ljava/lang/StringBuilder;

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

    const v6, 0x7f0e019f

    invoke-virtual {p0, v6}, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->getString(I)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v1, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const p1, 0x7f0e019e

    .line 201
    invoke-virtual {p0, p1}, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->getString(I)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 200
    invoke-virtual {v3, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 202
    invoke-virtual {v2, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 203
    invoke-virtual {v4, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 204
    sget-object p1, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->f:Lcom/moji/http/ast/entity/ClearAppInfoEntity;

    const v1, 0x7f0801aa

    if-eqz p1, :cond_0

    sget-object p1, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->f:Lcom/moji/http/ast/entity/ClearAppInfoEntity;

    iget-object p1, p1, Lcom/moji/http/ast/entity/ClearAppInfoEntity;->app:Lcom/moji/http/ast/entity/ClearAppInfoEntity$AppInfo;

    if-eqz p1, :cond_0

    sget-object p1, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->f:Lcom/moji/http/ast/entity/ClearAppInfoEntity;

    iget-object p1, p1, Lcom/moji/http/ast/entity/ClearAppInfoEntity;->app:Lcom/moji/http/ast/entity/ClearAppInfoEntity$AppInfo;

    iget-object p1, p1, Lcom/moji/http/ast/entity/ClearAppInfoEntity$AppInfo;->icon:Ljava/lang/String;

    if-eqz p1, :cond_0

    sget-object p1, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->f:Lcom/moji/http/ast/entity/ClearAppInfoEntity;

    iget-object p1, p1, Lcom/moji/http/ast/entity/ClearAppInfoEntity;->app:Lcom/moji/http/ast/entity/ClearAppInfoEntity$AppInfo;

    iget-object p1, p1, Lcom/moji/http/ast/entity/ClearAppInfoEntity$AppInfo;->icon:Ljava/lang/String;

    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p1

    if-nez p1, :cond_0

    .line 205
    invoke-static {v0}, Lcom/squareup/picasso/Picasso;->a(Landroid/content/Context;)Lcom/squareup/picasso/Picasso;

    move-result-object p1

    sget-object v0, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->f:Lcom/moji/http/ast/entity/ClearAppInfoEntity;

    iget-object v0, v0, Lcom/moji/http/ast/entity/ClearAppInfoEntity;->app:Lcom/moji/http/ast/entity/ClearAppInfoEntity$AppInfo;

    iget-object v0, v0, Lcom/moji/http/ast/entity/ClearAppInfoEntity$AppInfo;->icon:Ljava/lang/String;

    invoke-virtual {p1, v0}, Lcom/squareup/picasso/Picasso;->a(Ljava/lang/String;)Lcom/squareup/picasso/RequestCreator;

    move-result-object p1

    invoke-virtual {p1, v1}, Lcom/squareup/picasso/RequestCreator;->a(I)Lcom/squareup/picasso/RequestCreator;

    move-result-object p1

    invoke-virtual {p1, v5}, Lcom/squareup/picasso/RequestCreator;->a(Landroid/widget/ImageView;)V

    goto :goto_0

    .line 207
    :cond_0
    invoke-static {v0}, Lcom/squareup/picasso/Picasso;->a(Landroid/content/Context;)Lcom/squareup/picasso/Picasso;

    move-result-object p1

    invoke-virtual {p1, v1}, Lcom/squareup/picasso/Picasso;->a(I)Lcom/squareup/picasso/RequestCreator;

    move-result-object p1

    invoke-virtual {p1, v5}, Lcom/squareup/picasso/RequestCreator;->a(Landroid/widget/ImageView;)V

    :cond_1
    :goto_0
    return-void
.end method

.method static synthetic a(Lcom/moji/mjweather/me/control/MeClearCacheViewControl;Z)Z
    .locals 0

    .line 51
    iput-boolean p1, p0, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->g:Z

    return p1
.end method

.method static synthetic b()Lcom/moji/http/ast/entity/ClearAppInfoEntity;
    .locals 1

    .line 51
    sget-object v0, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->f:Lcom/moji/http/ast/entity/ClearAppInfoEntity;

    return-object v0
.end method

.method static synthetic b(Lcom/moji/mjweather/me/control/MeClearCacheViewControl;)Lcom/moji/mjweather/me/control/MeClearCacheViewControl$OnClearFinish;
    .locals 0

    .line 51
    iget-object p0, p0, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->h:Lcom/moji/mjweather/me/control/MeClearCacheViewControl$OnClearFinish;

    return-object p0
.end method

.method static synthetic b(Lcom/moji/mjweather/me/control/MeClearCacheViewControl;Ljava/lang/String;)V
    .locals 0

    .line 51
    invoke-direct {p0, p1}, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->a(Ljava/lang/String;)V

    return-void
.end method

.method private b(Ljava/lang/String;)Z
    .locals 3

    const/4 v0, 0x0

    .line 311
    :try_start_0
    invoke-direct {p0}, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->c()Landroid/app/Activity;

    move-result-object v1

    if-nez v1, :cond_0

    return v0

    .line 315
    :cond_0
    invoke-virtual {v1}, Landroid/app/Activity;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v1

    const/16 v2, 0x80

    .line 316
    invoke-virtual {v1, v2}, Landroid/content/pm/PackageManager;->getInstalledApplications(I)Ljava/util/List;

    move-result-object v1

    .line 317
    invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_1
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_2

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Landroid/content/pm/ApplicationInfo;

    .line 318
    iget-object v2, v2, Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String;

    invoke-virtual {v2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    if-eqz v2, :cond_1

    const/4 p1, 0x1

    return p1

    :catch_0
    move-exception p1

    const-string v1, "checkIsInstalledApk"

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

    :cond_2
    return v0
.end method

.method private c()Landroid/app/Activity;
    .locals 1

    .line 77
    iget-object v0, p0, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->e:Ljava/lang/ref/WeakReference;

    if-eqz v0, :cond_0

    .line 78
    iget-object v0, p0, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->e:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/Activity;

    return-object v0

    :cond_0
    const/4 v0, 0x0

    return-object v0
.end method

.method static synthetic c(Lcom/moji/mjweather/me/control/MeClearCacheViewControl;)V
    .locals 0

    .line 51
    invoke-direct {p0}, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->d()V

    return-void
.end method

.method static synthetic d(Lcom/moji/mjweather/me/control/MeClearCacheViewControl;)Ljava/lang/String;
    .locals 0

    .line 51
    iget-object p0, p0, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->j:Ljava/lang/String;

    return-object p0
.end method

.method private d()V
    .locals 3

    .line 152
    new-instance v0, Lcom/moji/mjweather/setting/task/MemorySizeTask;

    sget-object v1, Lcom/moji/tool/thread/ThreadPriority;->NORMAL:Lcom/moji/tool/thread/ThreadPriority;

    new-instance v2, Lcom/moji/mjweather/me/control/MeClearCacheViewControl$2;

    invoke-direct {v2, p0}, Lcom/moji/mjweather/me/control/MeClearCacheViewControl$2;-><init>(Lcom/moji/mjweather/me/control/MeClearCacheViewControl;)V

    invoke-direct {v0, v1, v2}, Lcom/moji/mjweather/setting/task/MemorySizeTask;-><init>(Lcom/moji/tool/thread/ThreadPriority;Lcom/moji/mjweather/setting/task/callback/MemoryCallBack;)V

    sget-object v1, Lcom/moji/tool/thread/ThreadType;->NORMAL_THREAD:Lcom/moji/tool/thread/ThreadType;

    const/4 v2, 0x0

    new-array v2, v2, [Ljava/lang/Void;

    .line 158
    invoke-virtual {v0, v1, v2}, Lcom/moji/mjweather/setting/task/MemorySizeTask;->a(Lcom/moji/tool/thread/ThreadType;[Ljava/lang/Object;)Lcom/moji/tool/thread/task/MJAsyncTask;

    return-void
.end method

.method static synthetic e(Lcom/moji/mjweather/me/control/MeClearCacheViewControl;)Landroid/app/Activity;
    .locals 0

    .line 51
    invoke-direct {p0}, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->c()Landroid/app/Activity;

    move-result-object p0

    return-object p0
.end method

.method private e()V
    .locals 3

    .line 162
    new-instance v0, Lcom/moji/mjweather/setting/task/ClearCacheTask;

    sget-object v1, Lcom/moji/tool/thread/ThreadPriority;->NORMAL:Lcom/moji/tool/thread/ThreadPriority;

    new-instance v2, Lcom/moji/mjweather/me/control/MeClearCacheViewControl$3;

    invoke-direct {v2, p0}, Lcom/moji/mjweather/me/control/MeClearCacheViewControl$3;-><init>(Lcom/moji/mjweather/me/control/MeClearCacheViewControl;)V

    invoke-direct {v0, v1, v2}, Lcom/moji/mjweather/setting/task/ClearCacheTask;-><init>(Lcom/moji/tool/thread/ThreadPriority;Lcom/moji/mjweather/setting/task/callback/ClearCacheCallBack;)V

    sget-object v1, Lcom/moji/tool/thread/ThreadType;->NORMAL_THREAD:Lcom/moji/tool/thread/ThreadType;

    const/4 v2, 0x0

    new-array v2, v2, [Ljava/lang/Object;

    .line 175
    invoke-virtual {v0, v1, v2}, Lcom/moji/mjweather/setting/task/ClearCacheTask;->a(Lcom/moji/tool/thread/ThreadType;[Ljava/lang/Object;)Lcom/moji/tool/thread/task/MJAsyncTask;

    return-void
.end method

.method private f()V
    .locals 1

    .line 214
    iget-object v0, p0, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->b:Landroid/app/AlertDialog;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->b:Landroid/app/AlertDialog;

    invoke-virtual {v0}, Landroid/app/AlertDialog;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 215
    iget-object v0, p0, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->b:Landroid/app/AlertDialog;

    invoke-virtual {v0}, Landroid/app/AlertDialog;->dismiss()V

    :cond_0
    return-void
.end method


# virtual methods
.method protected a()Lcom/moji/mjweather/me/presenter/ClearCachePresenter;
    .locals 1

    .line 92
    new-instance v0, Lcom/moji/mjweather/me/presenter/ClearCachePresenter;

    invoke-direct {v0, p0}, Lcom/moji/mjweather/me/presenter/ClearCachePresenter;-><init>(Lcom/moji/mvpframe/IMJMvpView;)V

    return-object v0
.end method

.method public a(Lcom/moji/mjweather/me/control/MeClearCacheViewControl$OnClearFinish;)V
    .locals 0

    .line 69
    iput-object p1, p0, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->h:Lcom/moji/mjweather/me/control/MeClearCacheViewControl$OnClearFinish;

    return-void
.end method

.method public dealRequestError(Lcom/moji/requestcore/MJException;)V
    .locals 0

    return-void
.end method

.method public dealResponseResult(Lcom/moji/requestcore/entity/IResult;Z)V
    .locals 0

    return-void
.end method

.method protected getResLayoutId()I
    .locals 2

    .line 107
    iget v0, p0, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->i:I

    const/4 v1, 0x2

    if-ne v0, v1, :cond_0

    const v0, 0x7f0b0260

    return v0

    :cond_0
    const v0, 0x7f0b025f

    return v0
.end method

.method protected synthetic instancePresenter()Lcom/moji/mvpframe/BasePresenter;
    .locals 1

    .line 51
    invoke-virtual {p0}, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->a()Lcom/moji/mjweather/me/presenter/ClearCachePresenter;

    move-result-object v0

    return-object v0
.end method

.method public onBindViewData(Ljava/lang/Object;)V
    .locals 0

    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 4

    .line 221
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result p1

    packed-switch p1, :pswitch_data_0

    .line 289
    iget-boolean p1, p0, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->g:Z

    if-eqz p1, :cond_5

    return-void

    .line 226
    :pswitch_0
    sget-object p1, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->f:Lcom/moji/http/ast/entity/ClearAppInfoEntity;

    if-eqz p1, :cond_4

    sget-object p1, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->f:Lcom/moji/http/ast/entity/ClearAppInfoEntity;

    iget-object p1, p1, Lcom/moji/http/ast/entity/ClearAppInfoEntity;->app:Lcom/moji/http/ast/entity/ClearAppInfoEntity$AppInfo;

    if-eqz p1, :cond_4

    .line 227
    sget-object p1, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->f:Lcom/moji/http/ast/entity/ClearAppInfoEntity;

    iget-object p1, p1, Lcom/moji/http/ast/entity/ClearAppInfoEntity;->app:Lcom/moji/http/ast/entity/ClearAppInfoEntity$AppInfo;

    iget-object p1, p1, Lcom/moji/http/ast/entity/ClearAppInfoEntity$AppInfo;->pkgName:Ljava/lang/String;

    invoke-direct {p0, p1}, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->b(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_0

    .line 229
    :try_start_0
    iget-object p1, p0, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->d:Landroid/widget/TextView;

    const/4 v0, 0x0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setVisibility(I)V

    .line 230
    iget-object p1, p0, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->c:Landroid/widget/ImageView;

    invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 231
    iget-object p1, p0, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->c:Landroid/widget/ImageView;

    invoke-static {p1}, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->a(Landroid/view/View;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto/16 :goto_0

    :catch_0
    move-exception p1

    const-string v0, "MeClearCacheViewControl"

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

    .line 234
    invoke-direct {p0}, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->f()V

    goto/16 :goto_0

    .line 237
    :cond_0
    invoke-direct {p0}, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->c()Landroid/app/Activity;

    move-result-object p1

    if-nez p1, :cond_1

    return-void

    .line 241
    :cond_1
    new-instance v0, Ljava/io/File;

    new-instance v1, Ljava/lang/StringBuilder;

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

    invoke-static {}, Lcom/moji/tool/FilePathUtil;->f()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object v2, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->f:Lcom/moji/http/ast/entity/ClearAppInfoEntity;

    iget-object v2, v2, Lcom/moji/http/ast/entity/ClearAppInfoEntity;->app:Lcom/moji/http/ast/entity/ClearAppInfoEntity$AppInfo;

    iget-object v2, v2, Lcom/moji/http/ast/entity/ClearAppInfoEntity$AppInfo;->pkgName:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, ".apk"

    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-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 242
    new-instance v1, Ljava/lang/StringBuilder;

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

    sget-object v2, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->f:Lcom/moji/http/ast/entity/ClearAppInfoEntity;

    iget-object v2, v2, Lcom/moji/http/ast/entity/ClearAppInfoEntity;->app:Lcom/moji/http/ast/entity/ClearAppInfoEntity$AppInfo;

    iget-object v2, v2, Lcom/moji/http/ast/entity/ClearAppInfoEntity$AppInfo;->pkgName:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, ".apk"

    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

    .line 243
    new-instance v2, Ljava/lang/StringBuilder;

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

    invoke-static {}, Lcom/moji/tool/FilePathUtil;->f()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object v3, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->f:Lcom/moji/http/ast/entity/ClearAppInfoEntity;

    iget-object v3, v3, Lcom/moji/http/ast/entity/ClearAppInfoEntity;->app:Lcom/moji/http/ast/entity/ClearAppInfoEntity$AppInfo;

    iget-object v3, v3, Lcom/moji/http/ast/entity/ClearAppInfoEntity$AppInfo;->pkgName:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v3, ".apk"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .line 244
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v0

    if-eqz v0, :cond_2

    .line 245
    new-instance v0, Landroid/content/Intent;

    const-string v2, "android.intent.action.VIEW"

    invoke-direct {v0, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 246
    invoke-static {v0, v1}, Lcom/moji/tool/FileTool;->a(Landroid/content/Intent;Ljava/lang/String;)V

    .line 248
    invoke-virtual {p1, v0}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V

    goto :goto_0

    :cond_2
    const-string p1, "\u6b63\u5728\u4e0b\u8f7d"

    .line 250
    invoke-static {p1}, Lcom/moji/tool/ToastTool;->a(Ljava/lang/String;)V

    .line 251
    new-instance p1, Ljava/io/File;

    invoke-static {}, Lcom/moji/tool/FilePathUtil;->f()Ljava/lang/String;

    move-result-object v0

    invoke-direct {p1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 252
    invoke-virtual {p1}, Ljava/io/File;->exists()Z

    move-result v0

    if-nez v0, :cond_3

    .line 253
    invoke-virtual {p1}, Ljava/io/File;->mkdirs()Z

    .line 255
    :cond_3
    new-instance p1, Lcom/moji/requestcore/DownloadRequest;

    sget-object v0, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->f:Lcom/moji/http/ast/entity/ClearAppInfoEntity;

    iget-object v0, v0, Lcom/moji/http/ast/entity/ClearAppInfoEntity;->app:Lcom/moji/http/ast/entity/ClearAppInfoEntity$AppInfo;

    iget-object v0, v0, Lcom/moji/http/ast/entity/ClearAppInfoEntity$AppInfo;->url:Ljava/lang/String;

    new-instance v3, Lcom/moji/mjweather/me/control/MeClearCacheViewControl$4;

    invoke-direct {v3, p0, v1}, Lcom/moji/mjweather/me/control/MeClearCacheViewControl$4;-><init>(Lcom/moji/mjweather/me/control/MeClearCacheViewControl;Ljava/lang/String;)V

    invoke-direct {p1, v2, v0, v3}, Lcom/moji/requestcore/DownloadRequest;-><init>(Ljava/lang/String;Ljava/lang/String;Lcom/moji/requestcore/ProgressListener;)V

    .line 281
    invoke-virtual {p1}, Lcom/moji/requestcore/DownloadRequest;->k()V

    .line 286
    :cond_4
    :goto_0
    invoke-static {}, Lcom/moji/weathersence/MJSceneDataManager;->b()Lcom/moji/weathersence/MJSceneDataManager;

    move-result-object p1

    invoke-virtual {p1}, Lcom/moji/weathersence/MJSceneDataManager;->g()V

    goto :goto_1

    .line 223
    :pswitch_1
    iget-object p1, p0, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->b:Landroid/app/AlertDialog;

    invoke-virtual {p1}, Landroid/app/AlertDialog;->dismiss()V

    goto :goto_1

    :cond_5
    const p1, 0x7f0e0003

    .line 292
    invoke-virtual {p0, p1}, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->getString(I)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p0, p1}, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->showLoading(Ljava/lang/String;)V

    .line 293
    invoke-direct {p0}, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->e()V

    const/4 p1, 0x1

    .line 294
    iput-boolean p1, p0, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->g:Z

    :goto_1
    return-void

    nop

    :pswitch_data_0
    .packed-switch 0x7f0900d7
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method

.method protected onCreatedView(Landroid/view/View;)V
    .locals 1

    const v0, 0x7f090149

    .line 117
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->a:Landroid/widget/TextView;

    .line 118
    invoke-virtual {p1, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method public onDestroy()V
    .locals 1

    .line 331
    invoke-super {p0}, Lcom/moji/mjweather/me/control/MJMVPViewControl;->onDestroy()V

    .line 332
    iget-object v0, p0, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->b:Landroid/app/AlertDialog;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->b:Landroid/app/AlertDialog;

    invoke-virtual {v0}, Landroid/app/AlertDialog;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 333
    iget-object v0, p0, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->b:Landroid/app/AlertDialog;

    invoke-virtual {v0}, Landroid/app/AlertDialog;->dismiss()V

    :cond_0
    return-void
.end method

.method public onResume()V
    .locals 2

    .line 128
    invoke-super {p0}, Lcom/moji/mjweather/me/control/MJMVPViewControl;->onResume()V

    .line 129
    invoke-virtual {p0}, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->getPresenter()Lcom/moji/mvpframe/BasePresenter;

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/me/presenter/ClearCachePresenter;

    new-instance v1, Lcom/moji/mjweather/me/control/MeClearCacheViewControl$1;

    invoke-direct {v1, p0}, Lcom/moji/mjweather/me/control/MeClearCacheViewControl$1;-><init>(Lcom/moji/mjweather/me/control/MeClearCacheViewControl;)V

    invoke-virtual {v0, v1}, Lcom/moji/mjweather/me/presenter/ClearCachePresenter;->a(Lcom/moji/requestcore/MJHttpCallback;)V

    .line 146
    invoke-direct {p0}, Lcom/moji/mjweather/me/control/MeClearCacheViewControl;->d()V

    return-void
.end method
