WizardIcons.smali
.class public Lcom/cleanmaster/resultpage/item/wizard/WizardIcons;
.super Landroid/widget/LinearLayout;
.source "WizardIcons.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/cleanmaster/resultpage/item/wizard/WizardIcons$a;
}
.end annotation
# instance fields
.field public a:Lcom/cleanmaster/resultpage/item/wizard/WizardIcons$a;
.field private b:I
.field private c:Lcom/cleanmaster/resultpage/item/wizard/CMWizardeSubItem$WizardItemClick;
# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.registers 3
.prologue
.line 46
const/4 v0, 0x0
invoke-direct {p0, p1, v0}, Lcom/cleanmaster/resultpage/item/wizard/WizardIcons;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.line 47
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.registers 6
.prologue
.line 50
invoke-direct {p0, p1, p2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.line 51
invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
move-result-object v0
const v1, 0x7f0401d3
const/4 v2, 0x1
invoke-virtual {v0, v1, p0, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
.line 52
invoke-direct {p0}, Lcom/cleanmaster/resultpage/item/wizard/WizardIcons;->a()V
.line 53
invoke-direct {p0}, Lcom/cleanmaster/resultpage/item/wizard/WizardIcons;->b()V
.line 54
return-void
.end method
.method private a()V
.registers 3
.prologue
.line 57
new-instance v0, Lcom/cleanmaster/resultpage/item/wizard/WizardIcons$a;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lcom/cleanmaster/resultpage/item/wizard/WizardIcons$a;-><init>(Lcom/cleanmaster/resultpage/item/wizard/c;)V
iput-object v0, p0, Lcom/cleanmaster/resultpage/item/wizard/WizardIcons;->a:Lcom/cleanmaster/resultpage/item/wizard/WizardIcons$a;
.line 58
iget-object v1, p0, Lcom/cleanmaster/resultpage/item/wizard/WizardIcons;->a:Lcom/cleanmaster/resultpage/item/wizard/WizardIcons$a;
const v0, 0x7f1006db
invoke-virtual {p0, v0}, Lcom/cleanmaster/resultpage/item/wizard/WizardIcons;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/view/ViewStub;
iput-object v0, v1, Lcom/cleanmaster/resultpage/item/wizard/WizardIcons$a;->a:Landroid/view/ViewStub;
.line 59
iget-object v1, p0, Lcom/cleanmaster/resultpage/item/wizard/WizardIcons;->a:Lcom/cleanmaster/resultpage/item/wizard/WizardIcons$a;
const v0, 0x7f1006dc
invoke-virtual {p0, v0}, Lcom/cleanmaster/resultpage/item/wizard/WizardIcons;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/view/ViewStub;
iput-object v0, v1, Lcom/cleanmaster/resultpage/item/wizard/WizardIcons$a;->c:Landroid/view/ViewStub;
.line 60
iget-object v1, p0, Lcom/cleanmaster/resultpage/item/wizard/WizardIcons;->a:Lcom/cleanmaster/resultpage/item/wizard/WizardIcons$a;
const v0, 0x7f1006dd
invoke-virtual {p0, v0}, Lcom/cleanmaster/resultpage/item/wizard/WizardIcons;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/view/ViewStub;
iput-object v0, v1, Lcom/cleanmaster/resultpage/item/wizard/WizardIcons$a;->e:Landroid/view/ViewStub;
.line 61
iget-object v1, p0, Lcom/cleanmaster/resultpage/item/wizard/WizardIcons;->a:Lcom/cleanmaster/resultpage/item/wizard/WizardIcons$a;
const v0, 0x7f1006da
invoke-virtual {p0, v0}, Lcom/cleanmaster/resultpage/item/wizard/WizardIcons;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Lcom/cleanmaster/bitmapcache/AppIconImageView;
iput-object v0, v1, Lcom/cleanmaster/resultpage/item/wizard/WizardIcons$a;->g:Lcom/cleanmaster/bitmapcache/AppIconImageView;
.line 62
return-void
.end method
.method private a(Landroid/graphics/Bitmap;Lcom/cleanmaster/bitmapcache/AppIconImageView;)V
.registers 6
.prologue
.line 257
if-eqz p1, :cond_4
if-nez p2, :cond_5
.line 276
:cond_4
:goto_4
return-void
.line 261
:cond_5
invoke-virtual {p2}, Lcom/cleanmaster/bitmapcache/AppIconImageView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v1
.line 263
invoke-virtual {p1}, Landroid/graphics/Bitmap;->getWidth()I
move-result v0
.line 264
invoke-static {}, Lcom/keniu/security/l;->f()Landroid/app/Application;
move-result-object v2
invoke-static {v2}, Lcom/cleanmaster/base/util/system/DimenUtils;->getScreenWidth(Landroid/content/Context;)I
move-result v2
if-lt v0, v2, :cond_1f
.line 265
invoke-static {}, Lcom/keniu/security/l;->f()Landroid/app/Application;
move-result-object v0
invoke-static {v0}, Lcom/cleanmaster/base/util/system/DimenUtils;->getScreenWidth(Landroid/content/Context;)I
move-result v0
.line 267
:cond_1f
invoke-virtual {p1}, Landroid/graphics/Bitmap;->getHeight()I
move-result v2
.line 269
if-nez v1, :cond_2a
.line 270
new-instance v1, Landroid/view/ViewGroup$LayoutParams;
invoke-direct {v1, v0, v2}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V
.line 273
:cond_2a
iput v0, v1, Landroid/view/ViewGroup$LayoutParams;->width:I
.line 274
iput v2, v1, Landroid/view/ViewGroup$LayoutParams;->height:I
.line 275
invoke-virtual {p2, v1}, Lcom/cleanmaster/bitmapcache/AppIconImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
goto :goto_4
.end method
.method static synthetic a(Lcom/cleanmaster/resultpage/item/wizard/WizardIcons;Landroid/graphics/Bitmap;Lcom/cleanmaster/bitmapcache/AppIconImageView;)V
.registers 3
.prologue
.line 24
invoke-direct {p0, p1, p2}, Lcom/cleanmaster/resultpage/item/wizard/WizardIcons;->a(Landroid/graphics/Bitmap;Lcom/cleanmaster/bitmapcache/AppIconImageView;)V
return-void
.end method
.method private b()V
.registers 4
.prologue
.line 66
invoke-virtual {p0}, Lcom/cleanmaster/resultpage/item/wizard/WizardIcons;->getContext()Landroid/content/Context;
move-result-object v0
invoke-static {v0}, Lcom/cleanmaster/base/util/system/DimenUtils;->getScreenWidth(Landroid/content/Context;)I
move-result v0
.line 67
invoke-virtual {p0}, Lcom/cleanmaster/resultpage/item/wizard/WizardIcons;->getContext()Landroid/content/Context;
move-result-object v1
const/high16 v2, 0x41800000 # 16.0f
invoke-static {v1, v2}, Lcom/cleanmaster/base/util/system/DimenUtils;->dp2px(Landroid/content/Context;F)I
move-result v1
sub-int/2addr v0, v1
invoke-virtual {p0}, Lcom/cleanmaster/resultpage/item/wizard/WizardIcons;->getContext()Landroid/content/Context;
move-result-object v1
const/high16 v2, 0x41a00000 # 20.0f
invoke-static {v1, v2}, Lcom/cleanmaster/base/util/system/DimenUtils;->dp2px(Landroid/content/Context;F)I
move-result v1
sub-int/2addr v0, v1
.line 68
invoke-virtual {p0}, Lcom/cleanmaster/resultpage/item/wizard/WizardIcons;->getContext()Landroid/content/Context;
move-result-object v1
const/high16 v2, 0x41600000 # 14.0f
invoke-static {v1, v2}, Lcom/cleanmaster/base/util/system/DimenUtils;->dp2px(Landroid/content/Context;F)I
move-result v1
sub-int/2addr v0, v1
div-int/lit8 v0, v0, 0x3
iput v0, p0, Lcom/cleanmaster/resultpage/item/wizard/WizardIcons;->b:I
.line 69
return-void
.end method
# virtual methods
.method public setClick(Lcom/cleanmaster/resultpage/item/wizard/CMWizardeSubItem$WizardItemClick;)V
.registers 2
.prologue
.line 245
iput-object p1, p0, Lcom/cleanmaster/resultpage/item/wizard/WizardIcons;->c:Lcom/cleanmaster/resultpage/item/wizard/CMWizardeSubItem$WizardItemClick;
.line 246
return-void
.end method