.class Lcom/moji/mjweather/aqi/AqiCameraSharePresenter$ShareImageTask;
.super Lcom/moji/tool/thread/task/MJAsyncTask;
.source "AqiCameraSharePresenter.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/moji/mjweather/aqi/AqiCameraSharePresenter;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "ShareImageTask"
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/moji/tool/thread/task/MJAsyncTask<",
        "Landroid/graphics/Bitmap;",
        "Ljava/lang/Void;",
        "Ljava/lang/String;",
        ">;"
    }
.end annotation


# instance fields
.field a:Lcom/moji/mjweather/aqi/AqiCameraSharePresenter$OnImageDealFinish;

.field final synthetic b:Lcom/moji/mjweather/aqi/AqiCameraSharePresenter;


# direct methods
.method public constructor <init>(Lcom/moji/mjweather/aqi/AqiCameraSharePresenter;Lcom/moji/mjweather/aqi/AqiCameraSharePresenter$OnImageDealFinish;)V
    .locals 0

    .line 256
    iput-object p1, p0, Lcom/moji/mjweather/aqi/AqiCameraSharePresenter$ShareImageTask;->b:Lcom/moji/mjweather/aqi/AqiCameraSharePresenter;

    .line 257
    sget-object p1, Lcom/moji/tool/thread/ThreadPriority;->REAL_TIME:Lcom/moji/tool/thread/ThreadPriority;

    invoke-direct {p0, p1}, Lcom/moji/tool/thread/task/MJAsyncTask;-><init>(Lcom/moji/tool/thread/ThreadPriority;)V

    .line 258
    iput-object p2, p0, Lcom/moji/mjweather/aqi/AqiCameraSharePresenter$ShareImageTask;->a:Lcom/moji/mjweather/aqi/AqiCameraSharePresenter$OnImageDealFinish;

    return-void
.end method


# virtual methods
.method protected bridge synthetic a([Ljava/lang/Object;)Ljava/lang/Object;
    .locals 0

    .line 253
    check-cast p1, [Landroid/graphics/Bitmap;

    invoke-virtual {p0, p1}, Lcom/moji/mjweather/aqi/AqiCameraSharePresenter$ShareImageTask;->a([Landroid/graphics/Bitmap;)Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method protected varargs a([Landroid/graphics/Bitmap;)Ljava/lang/String;
    .locals 8

    .line 263
    new-instance v0, Ljava/lang/StringBuilder;

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

    iget-object v1, p0, Lcom/moji/mjweather/aqi/AqiCameraSharePresenter$ShareImageTask;->b:Lcom/moji/mjweather/aqi/AqiCameraSharePresenter;

    invoke-static {v1}, Lcom/moji/mjweather/aqi/AqiCameraSharePresenter;->e(Lcom/moji/mjweather/aqi/AqiCameraSharePresenter;)Landroid/app/Activity;

    move-result-object v1

    const-string v2, "share"

    invoke-static {v1, v2}, Lcom/moji/tool/FileTool;->a(Landroid/content/Context;Ljava/lang/String;)Ljava/io/File;

    move-result-object v1

    invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v1

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

    const-string v1, "/picture_aqi_camera_"

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

    invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J

    move-result-wide v1

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

    const-string v1, ".png"

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

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

    move-result-object v0

    .line 264
    new-instance v1, Lcom/moji/share/image/ShareImageControl;

    const/4 v2, 0x0

    aget-object v3, p1, v2

    const v4, 0x7f060059

    const/4 v5, 0x0

    const/4 v6, 0x1

    move-object v2, v1

    move-object v7, v0

    invoke-direct/range {v2 .. v7}, Lcom/moji/share/image/ShareImageControl;-><init>(Landroid/graphics/Bitmap;ILandroid/net/Uri;ZLjava/lang/String;)V

    .line 265
    iget-object p1, p0, Lcom/moji/mjweather/aqi/AqiCameraSharePresenter$ShareImageTask;->b:Lcom/moji/mjweather/aqi/AqiCameraSharePresenter;

    invoke-static {p1}, Lcom/moji/mjweather/aqi/AqiCameraSharePresenter;->e(Lcom/moji/mjweather/aqi/AqiCameraSharePresenter;)Landroid/app/Activity;

    move-result-object p1

    invoke-static {p1, v1}, Lcom/moji/share/ShareImageManager;->a(Landroid/content/Context;Lcom/moji/share/image/ShareImageControl;)Z

    const-string p1, "AqiCameraSharePresenter"

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

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

    const-string v2, "\u622a\u56fe\u6210\u529f \u4fdd\u5b58\u5230 mImgPath "

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

    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 v1

    invoke-static {p1, v1}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V

    return-object v0
.end method

.method protected bridge synthetic a(Ljava/lang/Object;)V
    .locals 0

    .line 253
    check-cast p1, Ljava/lang/String;

    invoke-virtual {p0, p1}, Lcom/moji/mjweather/aqi/AqiCameraSharePresenter$ShareImageTask;->a(Ljava/lang/String;)V

    return-void
.end method

.method protected a(Ljava/lang/String;)V
    .locals 1

    .line 272
    invoke-super {p0, p1}, Lcom/moji/tool/thread/task/MJAsyncTask;->a(Ljava/lang/Object;)V

    .line 273
    iget-object v0, p0, Lcom/moji/mjweather/aqi/AqiCameraSharePresenter$ShareImageTask;->a:Lcom/moji/mjweather/aqi/AqiCameraSharePresenter$OnImageDealFinish;

    if-eqz v0, :cond_0

    .line 274
    iget-object v0, p0, Lcom/moji/mjweather/aqi/AqiCameraSharePresenter$ShareImageTask;->a:Lcom/moji/mjweather/aqi/AqiCameraSharePresenter$OnImageDealFinish;

    invoke-interface {v0, p1}, Lcom/moji/mjweather/aqi/AqiCameraSharePresenter$OnImageDealFinish;->a(Ljava/lang/String;)V

    :cond_0
    return-void
.end method
