.class Lcom/moji/mjweather/alert/WeatherAlertActivity$4;
.super Lcom/moji/tool/thread/wrapper/MJRunnable;
.source "WeatherAlertActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjweather/alert/WeatherAlertActivity;->b(Ljava/lang/String;)V
.end annotation

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


# instance fields
.field final synthetic a:I

.field final synthetic b:I

.field final synthetic c:I

.field final synthetic d:Landroid/graphics/Bitmap;

.field final synthetic e:Ljava/util/List;

.field final synthetic f:Ljava/lang/String;

.field final synthetic g:Lcom/moji/mjweather/alert/WeatherAlertActivity;


# direct methods
.method constructor <init>(Lcom/moji/mjweather/alert/WeatherAlertActivity;Lcom/moji/tool/thread/ThreadPriority;IIILandroid/graphics/Bitmap;Ljava/util/List;Ljava/lang/String;)V
    .locals 0

    .line 369
    iput-object p1, p0, Lcom/moji/mjweather/alert/WeatherAlertActivity$4;->g:Lcom/moji/mjweather/alert/WeatherAlertActivity;

    iput p3, p0, Lcom/moji/mjweather/alert/WeatherAlertActivity$4;->a:I

    iput p4, p0, Lcom/moji/mjweather/alert/WeatherAlertActivity$4;->b:I

    iput p5, p0, Lcom/moji/mjweather/alert/WeatherAlertActivity$4;->c:I

    iput-object p6, p0, Lcom/moji/mjweather/alert/WeatherAlertActivity$4;->d:Landroid/graphics/Bitmap;

    iput-object p7, p0, Lcom/moji/mjweather/alert/WeatherAlertActivity$4;->e:Ljava/util/List;

    iput-object p8, p0, Lcom/moji/mjweather/alert/WeatherAlertActivity$4;->f:Ljava/lang/String;

    invoke-direct {p0, p2}, Lcom/moji/tool/thread/wrapper/MJRunnable;-><init>(Lcom/moji/tool/thread/ThreadPriority;)V

    return-void
.end method


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

    .line 372
    iget v0, p0, Lcom/moji/mjweather/alert/WeatherAlertActivity$4;->a:I

    iget v1, p0, Lcom/moji/mjweather/alert/WeatherAlertActivity$4;->b:I

    iget v2, p0, Lcom/moji/mjweather/alert/WeatherAlertActivity$4;->c:I

    add-int/2addr v1, v2

    sget-object v2, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-static {v0, v1, v2}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v0

    .line 373
    new-instance v1, Landroid/graphics/Canvas;

    invoke-direct {v1, v0}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    .line 374
    iget-object v2, p0, Lcom/moji/mjweather/alert/WeatherAlertActivity$4;->d:Landroid/graphics/Bitmap;

    const/high16 v3, 0x41f00000    # 30.0f

    invoke-static {v3}, Lcom/moji/tool/DeviceTool;->a(F)I

    move-result v3

    int-to-float v3, v3

    const/4 v4, 0x0

    const/4 v5, 0x0

    invoke-virtual {v1, v2, v5, v3, v4}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    const/4 v2, 0x0

    const/4 v3, 0x0

    const/4 v6, 0x0

    .line 376
    :goto_0
    iget-object v7, p0, Lcom/moji/mjweather/alert/WeatherAlertActivity$4;->e:Ljava/util/List;

    invoke-interface {v7}, Ljava/util/List;->size()I

    move-result v7

    if-ge v3, v7, :cond_0

    .line 377
    iget-object v7, p0, Lcom/moji/mjweather/alert/WeatherAlertActivity$4;->e:Ljava/util/List;

    invoke-interface {v7, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Landroid/graphics/Bitmap;

    .line 378
    iget v8, p0, Lcom/moji/mjweather/alert/WeatherAlertActivity$4;->b:I

    add-int/2addr v8, v6

    int-to-float v8, v8

    invoke-virtual {v1, v7, v5, v8, v4}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    .line 379
    invoke-virtual {v7}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v7

    add-int/2addr v6, v7

    add-int/lit8 v3, v3, 0x1

    goto :goto_0

    .line 381
    :cond_0
    invoke-virtual {v1}, Landroid/graphics/Canvas;->save()I

    .line 382
    invoke-virtual {v1}, Landroid/graphics/Canvas;->restore()V

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

    invoke-static {}, Lcom/moji/weathersence/MJSceneManager;->a()Lcom/moji/weathersence/MJSceneManager;

    move-result-object v3

    invoke-virtual {v3}, Lcom/moji/weathersence/MJSceneManager;->k()Landroid/net/Uri;

    move-result-object v3

    iget-object v4, p0, Lcom/moji/mjweather/alert/WeatherAlertActivity$4;->f:Ljava/lang/String;

    invoke-direct {v1, v0, v3, v2, v4}, Lcom/moji/share/image/ShareImageControl;-><init>(Landroid/graphics/Bitmap;Landroid/net/Uri;ZLjava/lang/String;)V

    .line 384
    iget-object v0, p0, Lcom/moji/mjweather/alert/WeatherAlertActivity$4;->g:Lcom/moji/mjweather/alert/WeatherAlertActivity;

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

    move-result v0

    .line 385
    iget-object v1, p0, Lcom/moji/mjweather/alert/WeatherAlertActivity$4;->g:Lcom/moji/mjweather/alert/WeatherAlertActivity;

    invoke-static {v1}, Lcom/moji/mjweather/alert/WeatherAlertActivity;->c(Lcom/moji/mjweather/alert/WeatherAlertActivity;)Lcom/moji/share/MJThirdShareManager;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/moji/share/MJThirdShareManager;->a(Z)V

    return-void
.end method
