138 lines
3.0 KiB
Smali
138 lines
3.0 KiB
Smali
.class public Lcom/moji/mjad/base/view/AdPressImageView;
|
|
.super Landroid/widget/ImageView;
|
|
.source "AdPressImageView.java"
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 0
|
|
|
|
.line 18
|
|
invoke-direct {p0, p1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 0
|
|
|
|
.line 22
|
|
invoke-direct {p0, p1, p2}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
.locals 0
|
|
|
|
.line 26
|
|
invoke-direct {p0, p1, p2, p3}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private a()V
|
|
.locals 3
|
|
|
|
.line 55
|
|
invoke-virtual {p0}, Lcom/moji/mjad/base/view/AdPressImageView;->getDrawable()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 58
|
|
invoke-virtual {p0}, Lcom/moji/mjad/base/view/AdPressImageView;->getBackground()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_0
|
|
if-eqz v0, :cond_1
|
|
|
|
const v1, -0x333334
|
|
|
|
.line 62
|
|
sget-object v2, Landroid/graphics/PorterDuff$Mode;->MULTIPLY:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/graphics/drawable/Drawable;->setColorFilter(ILandroid/graphics/PorterDuff$Mode;)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method private b()V
|
|
.locals 1
|
|
|
|
.line 71
|
|
invoke-virtual {p0}, Lcom/moji/mjad/base/view/AdPressImageView;->getDrawable()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 74
|
|
invoke-virtual {p0}, Lcom/moji/mjad/base/view/AdPressImageView;->getBackground()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_0
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 78
|
|
invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->clearColorFilter()V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onTouchEvent(Landroid/view/MotionEvent;)Z
|
|
.locals 1
|
|
|
|
.line 30
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getActionMasked()I
|
|
|
|
move-result p1
|
|
|
|
const/4 v0, 0x3
|
|
|
|
if-eq p1, v0, :cond_0
|
|
|
|
packed-switch p1, :pswitch_data_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 37
|
|
:pswitch_0
|
|
invoke-virtual {p0}, Lcom/moji/mjad/base/view/AdPressImageView;->performClick()Z
|
|
|
|
.line 38
|
|
invoke-direct {p0}, Lcom/moji/mjad/base/view/AdPressImageView;->b()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 33
|
|
:pswitch_1
|
|
invoke-direct {p0}, Lcom/moji/mjad/base/view/AdPressImageView;->a()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 42
|
|
:cond_0
|
|
invoke-direct {p0}, Lcom/moji/mjad/base/view/AdPressImageView;->b()V
|
|
|
|
:goto_0
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
|
|
nop
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x0
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|