.class Lcom/moji/forum/common/ForumUtil$6$1;
.super Ljava/lang/Object;
.source "ForumUtil.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/forum/common/ForumUtil$6;->a(Landroid/graphics/Bitmap;Lcom/squareup/picasso/Picasso$LoadedFrom;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Landroid/graphics/Bitmap;

.field final synthetic b:Lcom/moji/forum/common/ForumUtil$6;


# direct methods
.method constructor <init>(Lcom/moji/forum/common/ForumUtil$6;Landroid/graphics/Bitmap;)V
    .locals 0

    .line 1014
    iput-object p1, p0, Lcom/moji/forum/common/ForumUtil$6$1;->b:Lcom/moji/forum/common/ForumUtil$6;

    iput-object p2, p0, Lcom/moji/forum/common/ForumUtil$6$1;->a:Landroid/graphics/Bitmap;

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

    return-void
.end method


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

    .line 1018
    :try_start_0
    new-instance v0, Ljava/io/FileOutputStream;

    iget-object v1, p0, Lcom/moji/forum/common/ForumUtil$6$1;->b:Lcom/moji/forum/common/ForumUtil$6;

    iget-object v1, v1, Lcom/moji/forum/common/ForumUtil$6;->a:Ljava/io/File;

    invoke-direct {v0, v1}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V

    .line 1019
    iget-object v1, p0, Lcom/moji/forum/common/ForumUtil$6$1;->a:Landroid/graphics/Bitmap;

    sget-object v2, Landroid/graphics/Bitmap$CompressFormat;->PNG:Landroid/graphics/Bitmap$CompressFormat;

    const/16 v3, 0x64

    invoke-virtual {v1, v2, v3, v0}, Landroid/graphics/Bitmap;->compress(Landroid/graphics/Bitmap$CompressFormat;ILjava/io/OutputStream;)Z

    .line 1020
    invoke-virtual {v0}, Ljava/io/FileOutputStream;->close()V

    .line 1021
    iget-object v0, p0, Lcom/moji/forum/common/ForumUtil$6$1;->b:Lcom/moji/forum/common/ForumUtil$6;

    iget-object v0, v0, Lcom/moji/forum/common/ForumUtil$6;->a:Ljava/io/File;

    invoke-static {v0}, Lcom/moji/forum/common/ForumUtil;->b(Ljava/io/File;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    const-string v1, "ForumUtil"

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

    :goto_0
    return-void
.end method
