251 lines
8.0 KiB
Smali
251 lines
8.0 KiB
Smali
.class Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity$1;
|
|
.super Ljava/lang/Object;
|
|
.source "RedLeavesSubscribeGuideActivity.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/squareup/picasso/Target;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;->createView()V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x0
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic a:Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;)V
|
|
.locals 0
|
|
|
|
.line 92
|
|
iput-object p1, p0, Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity$1;->a:Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Landroid/graphics/Bitmap;Lcom/squareup/picasso/Picasso$LoadedFrom;)V
|
|
.locals 4
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 95
|
|
invoke-virtual {p1}, Landroid/graphics/Bitmap;->getWidth()I
|
|
|
|
move-result p2
|
|
|
|
if-lez p2, :cond_0
|
|
|
|
invoke-virtual {p1}, Landroid/graphics/Bitmap;->getHeight()I
|
|
|
|
move-result p2
|
|
|
|
if-lez p2, :cond_0
|
|
|
|
.line 96
|
|
iget-object p2, p0, Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity$1;->a:Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;
|
|
|
|
invoke-static {p2}, Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;->a(Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;)Landroid/widget/RelativeLayout;
|
|
|
|
move-result-object p2
|
|
|
|
const/16 v0, 0x8
|
|
|
|
invoke-virtual {p2, v0}, Landroid/widget/RelativeLayout;->setVisibility(I)V
|
|
|
|
.line 97
|
|
iget-object p2, p0, Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity$1;->a:Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;
|
|
|
|
invoke-static {p2}, Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;->b(Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;)Landroid/widget/ImageView;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p2, p1}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V
|
|
|
|
.line 99
|
|
invoke-static {}, Lcom/moji/tool/DeviceTool;->b()I
|
|
|
|
move-result p2
|
|
|
|
.line 100
|
|
invoke-virtual {p1}, Landroid/graphics/Bitmap;->getWidth()I
|
|
|
|
move-result v0
|
|
|
|
int-to-double v0, v0
|
|
|
|
int-to-double v2, p2
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Double;->isNaN(D)Z
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Double;->isNaN(D)Z
|
|
|
|
div-double/2addr v0, v2
|
|
|
|
.line 101
|
|
iget-object p2, p0, Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity$1;->a:Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;
|
|
|
|
invoke-static {p2}, Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;->b(Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;)Landroid/widget/ImageView;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p2}, Landroid/widget/ImageView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Landroid/widget/RelativeLayout$LayoutParams;
|
|
|
|
const/4 v2, -0x1
|
|
|
|
.line 102
|
|
iput v2, p2, Landroid/widget/RelativeLayout$LayoutParams;->width:I
|
|
|
|
.line 103
|
|
invoke-virtual {p1}, Landroid/graphics/Bitmap;->getHeight()I
|
|
|
|
move-result p1
|
|
|
|
int-to-double v2, p1
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Double;->isNaN(D)Z
|
|
|
|
div-double/2addr v2, v0
|
|
|
|
double-to-int p1, v2
|
|
|
|
iput p1, p2, Landroid/widget/RelativeLayout$LayoutParams;->height:I
|
|
|
|
.line 104
|
|
iget-object p1, p0, Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity$1;->a:Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;
|
|
|
|
invoke-static {p1}, Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;->b(Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;)Landroid/widget/ImageView;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1, p2}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Landroid/graphics/drawable/Drawable;)V
|
|
.locals 1
|
|
|
|
.line 110
|
|
iget-object p1, p0, Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity$1;->a:Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;
|
|
|
|
invoke-static {p1}, Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;->c(Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;)I
|
|
|
|
move-result p1
|
|
|
|
const/4 v0, 0x2
|
|
|
|
if-ge p1, v0, :cond_0
|
|
|
|
iget-object p1, p0, Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity$1;->a:Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;
|
|
|
|
invoke-static {p1}, Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;->d(Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 111
|
|
iget-object p1, p0, Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity$1;->a:Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;
|
|
|
|
invoke-static {p1}, Lcom/squareup/picasso/Picasso;->a(Landroid/content/Context;)Lcom/squareup/picasso/Picasso;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object v0, p0, Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity$1;->a:Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;
|
|
|
|
invoke-static {v0}, Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;->d(Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Lcom/squareup/picasso/Picasso;->a(Ljava/lang/String;)Lcom/squareup/picasso/RequestCreator;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object v0, p0, Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity$1;->a:Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;
|
|
|
|
invoke-static {v0}, Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;->e(Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;)Lcom/squareup/picasso/Target;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Lcom/squareup/picasso/RequestCreator;->a(Lcom/squareup/picasso/Target;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public b(Landroid/graphics/drawable/Drawable;)V
|
|
.locals 1
|
|
|
|
.line 117
|
|
iget-object p1, p0, Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity$1;->a:Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;
|
|
|
|
invoke-static {p1}, Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;->c(Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;)I
|
|
|
|
move-result p1
|
|
|
|
const/4 v0, 0x2
|
|
|
|
if-ge p1, v0, :cond_0
|
|
|
|
iget-object p1, p0, Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity$1;->a:Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;
|
|
|
|
invoke-static {p1}, Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;->d(Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 118
|
|
iget-object p1, p0, Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity$1;->a:Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;
|
|
|
|
invoke-static {p1}, Lcom/squareup/picasso/Picasso;->a(Landroid/content/Context;)Lcom/squareup/picasso/Picasso;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object v0, p0, Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity$1;->a:Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;
|
|
|
|
invoke-static {v0}, Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;->d(Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Lcom/squareup/picasso/Picasso;->a(Ljava/lang/String;)Lcom/squareup/picasso/RequestCreator;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object v0, p0, Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity$1;->a:Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;
|
|
|
|
invoke-static {v0}, Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;->e(Lcom/moji/redleaves/RedLeavesSubscribeGuideActivity;)Lcom/squareup/picasso/Target;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Lcom/squareup/picasso/RequestCreator;->a(Lcom/squareup/picasso/Target;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|