.class public Lcom/moji/mjweather/typhoon/PreViewImageActivity;
.super Lcom/moji/base/MJActivity;
.source "PreViewImageActivity.java"

# interfaces
.implements Lcom/moji/mjweather/typhoon/PreViewImageAdapter$OnLoadFinishListener;


# static fields
.field public static final EXTRA_DATA_PICTURE_LIST:Ljava/lang/String; = "extra_data_picture_list"

.field public static final EXTRA_DATA_POSITION:Ljava/lang/String; = "extra_data_position"


# instance fields
.field a:J

.field b:J

.field private c:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Lcom/moji/http/snsforum/entity/IPicture;",
            ">;"
        }
    .end annotation
.end field

.field private i:I

.field private j:Landroid/view/View;

.field private k:Landroid/view/View;

.field private l:Landroid/widget/ImageView;

.field private m:Landroid/widget/ProgressBar;

.field private n:Landroid/support/v4/view/ViewPager;

.field private o:Lcom/moji/mjweather/typhoon/PreViewImageAdapter;

.field private p:Landroid/widget/TextView;

.field private q:Landroid/os/Bundle;

.field private r:Lcom/moji/prelollipop/ExitActivityTransition;

.field private s:Landroid/widget/ImageView;

.field private t:I

.field private u:F

.field private v:F

.field private w:F

.field private x:J

.field private y:Z


# direct methods
.method public constructor <init>()V
    .locals 2

    .line 40
    invoke-direct {p0}, Lcom/moji/base/MJActivity;-><init>()V

    .line 43
    new-instance v0, Ljava/util/ArrayList;

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

    iput-object v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->c:Ljava/util/ArrayList;

    const/4 v0, 0x0

    .line 171
    iput-boolean v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->y:Z

    const-wide/16 v0, 0x0

    .line 274
    iput-wide v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->a:J

    .line 275
    iput-wide v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->b:J

    return-void
.end method

.method static synthetic a(Lcom/moji/mjweather/typhoon/PreViewImageActivity;I)I
    .locals 0

    .line 40
    iput p1, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->t:I

    return p1
.end method

.method static synthetic a(Lcom/moji/mjweather/typhoon/PreViewImageActivity;Lcom/moji/mjweather/typhoon/PreViewImageAdapter;)Lcom/moji/mjweather/typhoon/PreViewImageAdapter;
    .locals 0

    .line 40
    iput-object p1, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->o:Lcom/moji/mjweather/typhoon/PreViewImageAdapter;

    return-object p1
.end method

.method static synthetic a(Lcom/moji/mjweather/typhoon/PreViewImageActivity;)Ljava/util/ArrayList;
    .locals 0

    .line 40
    iget-object p0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->c:Ljava/util/ArrayList;

    return-object p0
.end method

.method private a(FFF)V
    .locals 1

    .line 263
    iget-object v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->k:Landroid/view/View;

    invoke-virtual {v0, p1}, Landroid/view/View;->setAlpha(F)V

    .line 264
    iget-object v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->n:Landroid/support/v4/view/ViewPager;

    invoke-virtual {v0, p2}, Landroid/support/v4/view/ViewPager;->setTranslationX(F)V

    .line 265
    iget-object v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->n:Landroid/support/v4/view/ViewPager;

    invoke-virtual {v0, p3}, Landroid/support/v4/view/ViewPager;->setTranslationY(F)V

    .line 266
    iget-object v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->n:Landroid/support/v4/view/ViewPager;

    invoke-virtual {v0, p1}, Landroid/support/v4/view/ViewPager;->setScaleX(F)V

    .line 267
    iget-object v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->n:Landroid/support/v4/view/ViewPager;

    invoke-virtual {v0, p1}, Landroid/support/v4/view/ViewPager;->setScaleY(F)V

    .line 268
    iget-object v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->l:Landroid/widget/ImageView;

    invoke-virtual {v0, p2}, Landroid/widget/ImageView;->setTranslationX(F)V

    .line 269
    iget-object p2, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->l:Landroid/widget/ImageView;

    invoke-virtual {p2, p3}, Landroid/widget/ImageView;->setTranslationY(F)V

    .line 270
    iget-object p2, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->l:Landroid/widget/ImageView;

    invoke-virtual {p2, p1}, Landroid/widget/ImageView;->setScaleX(F)V

    .line 271
    iget-object p2, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->l:Landroid/widget/ImageView;

    invoke-virtual {p2, p1}, Landroid/widget/ImageView;->setScaleY(F)V

    return-void
.end method

.method private a(Landroid/view/MotionEvent;)Z
    .locals 5

    .line 307
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v0

    .line 308
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result p1

    .line 309
    iget-object v1, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->s:Landroid/widget/ImageView;

    invoke-virtual {v1}, Landroid/widget/ImageView;->getLeft()I

    move-result v1

    .line 310
    iget-object v2, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->s:Landroid/widget/ImageView;

    invoke-virtual {v2}, Landroid/widget/ImageView;->getRight()I

    move-result v2

    .line 311
    iget-object v3, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->s:Landroid/widget/ImageView;

    invoke-virtual {v3}, Landroid/widget/ImageView;->getTop()I

    move-result v3

    .line 312
    iget-object v4, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->s:Landroid/widget/ImageView;

    invoke-virtual {v4}, Landroid/widget/ImageView;->getBottom()I

    move-result v4

    int-to-float v1, v1

    cmpg-float v1, v1, v0

    if-gtz v1, :cond_0

    int-to-float v1, v2

    cmpg-float v0, v0, v1

    if-gtz v0, :cond_0

    int-to-float v0, v3

    cmpg-float v0, v0, p1

    if-gtz v0, :cond_0

    int-to-float v0, v4

    cmpg-float p1, p1, v0

    if-gtz p1, :cond_0

    const/4 p1, 0x1

    return p1

    :cond_0
    const/4 p1, 0x0

    return p1
.end method

.method static synthetic b(Lcom/moji/mjweather/typhoon/PreViewImageActivity;)Landroid/widget/TextView;
    .locals 0

    .line 40
    iget-object p0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->p:Landroid/widget/TextView;

    return-object p0
.end method

.method static synthetic c(Lcom/moji/mjweather/typhoon/PreViewImageActivity;)Landroid/widget/ImageView;
    .locals 0

    .line 40
    iget-object p0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->l:Landroid/widget/ImageView;

    return-object p0
.end method

.method private c()V
    .locals 2

    .line 145
    invoke-virtual {p0}, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    invoke-static {v0}, Lcom/moji/prelollipop/ActivityTransition;->a(Landroid/content/Intent;)Lcom/moji/prelollipop/ActivityTransition;

    move-result-object v0

    const/16 v1, 0x12c

    .line 146
    invoke-virtual {v0, v1}, Lcom/moji/prelollipop/ActivityTransition;->a(I)Lcom/moji/prelollipop/ActivityTransition;

    move-result-object v0

    new-instance v1, Lcom/moji/mjweather/typhoon/PreViewImageActivity$3;

    invoke-direct {v1, p0}, Lcom/moji/mjweather/typhoon/PreViewImageActivity$3;-><init>(Lcom/moji/mjweather/typhoon/PreViewImageActivity;)V

    .line 147
    invoke-virtual {v0, v1}, Lcom/moji/prelollipop/ActivityTransition;->a(Landroid/animation/Animator$AnimatorListener;)Lcom/moji/prelollipop/ActivityTransition;

    move-result-object v0

    iget-object v1, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->l:Landroid/widget/ImageView;

    .line 157
    invoke-virtual {v0, v1}, Lcom/moji/prelollipop/ActivityTransition;->a(Landroid/view/View;)Lcom/moji/prelollipop/ActivityTransition;

    move-result-object v0

    .line 158
    invoke-virtual {v0}, Lcom/moji/prelollipop/ActivityTransition;->a()Lcom/moji/prelollipop/ActivityTransition;

    move-result-object v0

    iget-object v1, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->q:Landroid/os/Bundle;

    .line 159
    invoke-virtual {v0, v1}, Lcom/moji/prelollipop/ActivityTransition;->a(Landroid/os/Bundle;)Lcom/moji/prelollipop/ExitActivityTransition;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->r:Lcom/moji/prelollipop/ExitActivityTransition;

    return-void
.end method

.method static synthetic d(Lcom/moji/mjweather/typhoon/PreViewImageActivity;)I
    .locals 0

    .line 40
    iget p0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->i:I

    return p0
.end method

.method private d()Z
    .locals 3

    .line 249
    iget-object v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->n:Landroid/support/v4/view/ViewPager;

    invoke-virtual {v0}, Landroid/support/v4/view/ViewPager;->getChildCount()I

    move-result v0

    .line 250
    iget-object v1, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->n:Landroid/support/v4/view/ViewPager;

    invoke-virtual {v1}, Landroid/support/v4/view/ViewPager;->getCurrentItem()I

    move-result v1

    const/4 v2, 0x0

    if-ltz v1, :cond_2

    add-int/lit8 v0, v0, -0x1

    if-le v1, v0, :cond_0

    goto :goto_0

    .line 254
    :cond_0
    iget-object v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->n:Landroid/support/v4/view/ViewPager;

    invoke-virtual {v0, v1}, Landroid/support/v4/view/ViewPager;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    .line 255
    instance-of v1, v0, Lcom/moji/imageview/TouchImageView;

    if-eqz v1, :cond_1

    .line 256
    check-cast v0, Lcom/moji/imageview/TouchImageView;

    .line 257
    invoke-virtual {v0}, Lcom/moji/imageview/TouchImageView;->a()Z

    move-result v0

    return v0

    :cond_1
    return v2

    :cond_2
    :goto_0
    return v2
.end method

.method static synthetic e(Lcom/moji/mjweather/typhoon/PreViewImageActivity;)Lcom/moji/prelollipop/ExitActivityTransition;
    .locals 0

    .line 40
    iget-object p0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->r:Lcom/moji/prelollipop/ExitActivityTransition;

    return-object p0
.end method

.method private e()V
    .locals 5

    .line 278
    iget-wide v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->a:J

    const-wide/16 v2, 0x0

    cmp-long v4, v0, v2

    if-lez v4, :cond_0

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

    move-result-wide v0

    iput-wide v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->b:J

    return-void

    .line 283
    :cond_0
    invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->a:J

    .line 284
    new-instance v0, Lcom/moji/mjweather/typhoon/PreViewImageActivity$4;

    invoke-direct {v0, p0}, Lcom/moji/mjweather/typhoon/PreViewImageActivity$4;-><init>(Lcom/moji/mjweather/typhoon/PreViewImageActivity;)V

    invoke-static {v0}, Lcom/moji/tool/thread/MJPools;->a(Ljava/lang/Runnable;)I

    return-void
.end method

.method static synthetic f(Lcom/moji/mjweather/typhoon/PreViewImageActivity;)I
    .locals 0

    .line 40
    iget p0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->t:I

    return p0
.end method

.method static synthetic g(Lcom/moji/mjweather/typhoon/PreViewImageActivity;)Landroid/widget/ProgressBar;
    .locals 0

    .line 40
    iget-object p0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->m:Landroid/widget/ProgressBar;

    return-object p0
.end method

.method static synthetic h(Lcom/moji/mjweather/typhoon/PreViewImageActivity;)Lcom/moji/mjweather/typhoon/PreViewImageAdapter;
    .locals 0

    .line 40
    iget-object p0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->o:Lcom/moji/mjweather/typhoon/PreViewImageAdapter;

    return-object p0
.end method

.method static synthetic i(Lcom/moji/mjweather/typhoon/PreViewImageActivity;)Landroid/support/v4/view/ViewPager;
    .locals 0

    .line 40
    iget-object p0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->n:Landroid/support/v4/view/ViewPager;

    return-object p0
.end method

.method private j()V
    .locals 3

    .line 332
    iget-object v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->m:Landroid/widget/ProgressBar;

    const/16 v1, 0x8

    if-eqz v0, :cond_0

    .line 333
    iget-object v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->m:Landroid/widget/ProgressBar;

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

    .line 335
    :cond_0
    iget-object v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->s:Landroid/widget/ImageView;

    if-eqz v0, :cond_1

    .line 336
    iget-object v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->s:Landroid/widget/ImageView;

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

    .line 338
    :cond_1
    iget-object v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->k:Landroid/view/View;

    if-eqz v0, :cond_2

    .line 339
    iget-object v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->k:Landroid/view/View;

    sget v2, Lcom/moji/mjweather/typhoon/R$color;->transparent:I

    invoke-virtual {v0, v2}, Landroid/view/View;->setBackgroundResource(I)V

    .line 341
    :cond_2
    iget-object v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->l:Landroid/widget/ImageView;

    const/4 v2, 0x0

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

    .line 342
    iget-object v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->j:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 343
    iget-object v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->r:Lcom/moji/prelollipop/ExitActivityTransition;

    new-instance v1, Lcom/moji/prelollipop/ViewState;

    iget-object v2, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->l:Landroid/widget/ImageView;

    invoke-direct {v1, v2}, Lcom/moji/prelollipop/ViewState;-><init>(Landroid/view/View;)V

    invoke-virtual {v0, p0, v1}, Lcom/moji/prelollipop/ExitActivityTransition;->a(Landroid/app/Activity;Lcom/moji/prelollipop/ViewState;)V

    return-void
.end method

.method static synthetic j(Lcom/moji/mjweather/typhoon/PreViewImageActivity;)V
    .locals 0

    .line 40
    invoke-direct {p0}, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->j()V

    return-void
.end method

.method static synthetic k(Lcom/moji/mjweather/typhoon/PreViewImageActivity;)Landroid/view/View;
    .locals 0

    .line 40
    iget-object p0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->k:Landroid/view/View;

    return-object p0
.end method


# virtual methods
.method protected a()V
    .locals 3

    .line 68
    sget v0, Lcom/moji/mjweather/typhoon/R$id;->download_picture:I

    invoke-virtual {p0, v0}, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->s:Landroid/widget/ImageView;

    .line 69
    sget v0, Lcom/moji/mjweather/typhoon/R$id;->bottom_view:I

    invoke-virtual {p0, v0}, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->k:Landroid/view/View;

    .line 70
    sget v0, Lcom/moji/mjweather/typhoon/R$id;->iv_thumb:I

    invoke-virtual {p0, v0}, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->l:Landroid/widget/ImageView;

    .line 71
    sget v0, Lcom/moji/mjweather/typhoon/R$id;->pb_progress:I

    invoke-virtual {p0, v0}, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ProgressBar;

    iput-object v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->m:Landroid/widget/ProgressBar;

    .line 72
    sget v0, Lcom/moji/mjweather/typhoon/R$id;->content_layout:I

    invoke-virtual {p0, v0}, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->j:Landroid/view/View;

    .line 73
    sget v0, Lcom/moji/mjweather/typhoon/R$id;->vp_image:I

    invoke-virtual {p0, v0}, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/support/v4/view/ViewPager;

    iput-object v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->n:Landroid/support/v4/view/ViewPager;

    .line 74
    sget v0, Lcom/moji/mjweather/typhoon/R$id;->view_indicator:I

    invoke-virtual {p0, v0}, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->p:Landroid/widget/TextView;

    .line 75
    invoke-virtual {p0}, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    if-nez v0, :cond_0

    return-void

    :cond_0
    const-string v1, "extra_data_picture_list"

    .line 79
    invoke-virtual {v0, v1}, Landroid/content/Intent;->getParcelableArrayListExtra(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object v1

    iput-object v1, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->c:Ljava/util/ArrayList;

    const-string v1, "extra_data_position"

    const/4 v2, 0x0

    .line 80
    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v0

    iput v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->i:I

    .line 81
    iget v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->i:I

    iput v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->t:I

    .line 82
    iget-object v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->c:Ljava/util/ArrayList;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->c:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    const/4 v1, 0x1

    if-le v0, v1, :cond_1

    .line 83
    iget-object v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->p:Landroid/widget/TextView;

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

    .line 84
    iget-object v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->p:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v2, "1/"

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

    iget-object v2, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->c:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

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

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

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 86
    :cond_1
    invoke-direct {p0}, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->c()V

    return-void
.end method

.method protected b()V
    .locals 2

    .line 90
    iget-object v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->n:Landroid/support/v4/view/ViewPager;

    new-instance v1, Lcom/moji/mjweather/typhoon/PreViewImageActivity$1;

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

    invoke-virtual {v0, v1}, Landroid/support/v4/view/ViewPager;->addOnPageChangeListener(Landroid/support/v4/view/ViewPager$OnPageChangeListener;)V

    .line 116
    iget-object v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->s:Landroid/widget/ImageView;

    new-instance v1, Lcom/moji/mjweather/typhoon/PreViewImageActivity$2;

    invoke-direct {v1, p0}, Lcom/moji/mjweather/typhoon/PreViewImageActivity$2;-><init>(Lcom/moji/mjweather/typhoon/PreViewImageActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method public dispatchTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 10

    .line 178
    iget-object v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->k:Landroid/view/View;

    if-eqz v0, :cond_a

    iget-object v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->n:Landroid/support/v4/view/ViewPager;

    if-nez v0, :cond_0

    goto/16 :goto_2

    .line 181
    :cond_0
    invoke-direct {p0}, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->d()Z

    move-result v0

    if-eqz v0, :cond_1

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

    move-result-wide v0

    iput-wide v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->b:J

    .line 183
    invoke-super {p0, p1}, Lcom/moji/base/MJActivity;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z

    move-result p1

    return p1

    :cond_1
    const-wide/16 v0, 0x0

    .line 185
    iput-wide v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->b:J

    .line 187
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    and-int/lit16 v0, v0, 0xff

    const/high16 v1, 0x3f800000    # 1.0f

    const/4 v2, 0x0

    const/4 v3, 0x0

    packed-switch v0, :pswitch_data_0

    :pswitch_0
    goto/16 :goto_1

    :pswitch_1
    const/4 v0, 0x1

    .line 189
    iput-boolean v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->y:Z

    goto/16 :goto_1

    .line 200
    :pswitch_2
    iget-boolean v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->y:Z

    if-eqz v0, :cond_3

    .line 201
    iget v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->w:F

    cmpl-float v0, v0, v3

    if-nez v0, :cond_2

    .line 202
    invoke-super {p0, p1}, Lcom/moji/base/MJActivity;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z

    move-result p1

    return p1

    :cond_2
    return v2

    .line 207
    :cond_3
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v0

    .line 208
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v4

    .line 209
    iget v5, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->u:F

    sub-float v5, v0, v5

    invoke-static {v5}, Ljava/lang/Math;->abs(F)F

    move-result v5

    .line 210
    iget v6, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->v:F

    sub-float v6, v4, v6

    invoke-static {v6}, Ljava/lang/Math;->abs(F)F

    move-result v6

    .line 211
    iget v7, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->w:F

    const/high16 v8, 0x40000000    # 2.0f

    cmpl-float v7, v7, v3

    if-nez v7, :cond_4

    .line 212
    invoke-static {v8}, Lcom/moji/tool/DeviceTool;->a(F)I

    move-result v0

    int-to-float v0, v0

    cmpg-float v0, v5, v0

    if-gez v0, :cond_8

    const v0, 0x3fe66666    # 1.8f

    mul-float v5, v5, v0

    cmpg-float v0, v5, v6

    if-gez v0, :cond_8

    mul-float v6, v6, v8

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

    move-result v0

    int-to-float v0, v0

    div-float/2addr v6, v0

    iput v6, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->w:F

    goto/16 :goto_1

    :cond_4
    mul-float v6, v6, v8

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

    move-result v5

    int-to-float v5, v5

    div-float/2addr v6, v5

    iput v6, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->w:F

    .line 217
    iget v5, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->w:F

    sub-float/2addr v1, v5

    iget v5, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->u:F

    sub-float/2addr v0, v5

    iget v5, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->v:F

    sub-float/2addr v4, v5

    invoke-direct {p0, v1, v0, v4}, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->a(FFF)V

    goto :goto_1

    .line 221
    :pswitch_3
    invoke-direct {p0, p1}, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->a(Landroid/view/MotionEvent;)Z

    move-result v0

    if-eqz v0, :cond_5

    .line 222
    iput v3, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->w:F

    .line 223
    iput-boolean v2, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->y:Z

    .line 224
    invoke-super {p0, p1}, Lcom/moji/base/MJActivity;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z

    move-result p1

    return p1

    .line 226
    :cond_5
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v0

    .line 227
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v4

    .line 228
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v5

    iget-wide v7, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->x:J

    sub-long/2addr v5, v7

    const-wide/16 v7, 0x12c

    cmp-long v9, v5, v7

    if-gez v9, :cond_6

    iget v5, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->u:F

    sub-float/2addr v0, v5

    invoke-static {v0}, Ljava/lang/Math;->abs(F)F

    move-result v0

    const/high16 v5, 0x41000000    # 8.0f

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

    move-result v6

    int-to-float v6, v6

    cmpg-float v0, v0, v6

    if-gez v0, :cond_6

    iget v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->v:F

    sub-float/2addr v4, v0

    invoke-static {v4}, Ljava/lang/Math;->abs(F)F

    move-result v0

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

    move-result v4

    int-to-float v4, v4

    cmpg-float v0, v0, v4

    if-gez v0, :cond_6

    .line 229
    invoke-direct {p0}, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->e()V

    goto :goto_0

    .line 231
    :cond_6
    iget v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->w:F

    const/high16 v4, 0x3e800000    # 0.25f

    cmpl-float v0, v0, v4

    if-lez v0, :cond_7

    .line 232
    invoke-direct {p0}, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->j()V

    goto :goto_0

    .line 234
    :cond_7
    invoke-direct {p0, v1, v3, v3}, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->a(FFF)V

    .line 237
    :goto_0
    iput v3, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->w:F

    .line 238
    iput-boolean v2, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->y:Z

    goto :goto_1

    .line 195
    :pswitch_4
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v0

    iput v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->u:F

    .line 196
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v0

    iput v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->v:F

    .line 197
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->x:J

    .line 241
    :cond_8
    :goto_1
    :pswitch_5
    iget v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->w:F

    cmpl-float v0, v0, v3

    if-nez v0, :cond_9

    .line 242
    invoke-super {p0, p1}, Lcom/moji/base/MJActivity;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z

    move-result p1

    return p1

    :cond_9
    return v2

    .line 179
    :cond_a
    :goto_2
    invoke-super {p0, p1}, Lcom/moji/base/MJActivity;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z

    move-result p1

    return p1

    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_4
        :pswitch_3
        :pswitch_2
        :pswitch_0
        :pswitch_0
        :pswitch_1
        :pswitch_5
    .end packed-switch
.end method

.method public loadFinish()V
    .locals 2

    .line 164
    iget-object v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->l:Landroid/widget/ImageView;

    const/16 v1, 0x8

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

    .line 165
    iget-object v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->m:Landroid/widget/ProgressBar;

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

    .line 166
    iget-object v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->s:Landroid/widget/ImageView;

    const/4 v1, 0x0

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

    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 0

    .line 59
    invoke-super {p0, p1}, Lcom/moji/base/MJActivity;->onCreate(Landroid/os/Bundle;)V

    .line 60
    iput-object p1, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->q:Landroid/os/Bundle;

    .line 61
    sget p1, Lcom/moji/mjweather/typhoon/R$layout;->layout_pre_view_image:I

    invoke-virtual {p0, p1}, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->setContentView(I)V

    .line 62
    invoke-virtual {p0}, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->a()V

    .line 63
    invoke-virtual {p0}, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->b()V

    return-void
.end method

.method protected onDestroy()V
    .locals 2

    .line 348
    invoke-super {p0}, Lcom/moji/base/MJActivity;->onDestroy()V

    .line 349
    iget-object v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->n:Landroid/support/v4/view/ViewPager;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->o:Lcom/moji/mjweather/typhoon/PreViewImageAdapter;

    if-eqz v0, :cond_0

    .line 350
    iget-object v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->o:Lcom/moji/mjweather/typhoon/PreViewImageAdapter;

    invoke-virtual {v0}, Lcom/moji/mjweather/typhoon/PreViewImageAdapter;->a()V

    .line 351
    iget-object v0, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->n:Landroid/support/v4/view/ViewPager;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/support/v4/view/ViewPager;->setAdapter(Landroid/support/v4/view/PagerAdapter;)V

    .line 352
    iput-object v1, p0, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->o:Lcom/moji/mjweather/typhoon/PreViewImageAdapter;

    :cond_0
    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 0

    const/4 p2, 0x4

    if-ne p1, p2, :cond_0

    .line 326
    invoke-direct {p0}, Lcom/moji/mjweather/typhoon/PreViewImageActivity;->j()V

    :cond_0
    const/4 p1, 0x1

    return p1
.end method
