BIUIImageView.smali
.class public Lcom/biuiteam/biui/view/BIUIImageView;
.super Landroidx/appcompat/widget/AppCompatImageView;
.source "SourceFile"
# static fields
.field static final synthetic a:[Lkotlin/k/g;
# instance fields
.field private b:F
.field private c:Z
.field private final d:Lkotlin/f;
.field private e:Z
.field private f:F
# direct methods
.method static constructor <clinit>()V
.registers 5
const/4 v0, 0x1
new-array v0, v0, [Lkotlin/k/g;
new-instance v1, Lkotlin/f/b/z;
const-class v2, Lcom/biuiteam/biui/view/BIUIImageView;
invoke-static {v2}, Lkotlin/f/b/ab;->a(Ljava/lang/Class;)Lkotlin/k/b;
move-result-object v2
const-string v3, "alphaHelper"
const-string v4, "getAlphaHelper()Lcom/biuiteam/biui/util/BIUIAlphaViewHelper;"
invoke-direct {v1, v2, v3, v4}, Lkotlin/f/b/z;-><init>(Lkotlin/k/c;Ljava/lang/String;Ljava/lang/String;)V
invoke-static {v1}, Lkotlin/f/b/ab;->a(Lkotlin/f/b/y;)Lkotlin/k/j;
move-result-object v1
check-cast v1, Lkotlin/k/g;
const/4 v2, 0x0
aput-object v1, v0, v2
sput-object v0, Lcom/biuiteam/biui/view/BIUIImageView;->a:[Lkotlin/k/g;
return-void
.end method
.method public constructor <init>(Landroid/content/Context;)V
.registers 3
.line 52
invoke-direct {p0, p1}, Landroidx/appcompat/widget/AppCompatImageView;-><init>(Landroid/content/Context;)V
.line 16
invoke-virtual {p0}, Lcom/biuiteam/biui/view/BIUIImageView;->getScaleX()F
move-result p1
iput p1, p0, Lcom/biuiteam/biui/view/BIUIImageView;->b:F
.line 34
new-instance p1, Lcom/biuiteam/biui/view/BIUIImageView$a;
invoke-direct {p1, p0}, Lcom/biuiteam/biui/view/BIUIImageView$a;-><init>(Lcom/biuiteam/biui/view/BIUIImageView;)V
check-cast p1, Lkotlin/f/a/a;
invoke-static {p1}, Lkotlin/g;->a(Lkotlin/f/a/a;)Lkotlin/f;
move-result-object p1
iput-object p1, p0, Lcom/biuiteam/biui/view/BIUIImageView;->d:Lkotlin/f;
const/high16 p1, 0x3f800000 # 1.0f
.line 46
iput p1, p0, Lcom/biuiteam/biui/view/BIUIImageView;->f:F
const/4 p1, 0x0
const/4 v0, 0x3
.line 53
invoke-static {p0, p1, v0}, Lcom/biuiteam/biui/view/BIUIImageView;->a(Lcom/biuiteam/biui/view/BIUIImageView;Landroid/util/AttributeSet;I)V
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.registers 3
.line 56
invoke-direct {p0, p1, p2}, Landroidx/appcompat/widget/AppCompatImageView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.line 16
invoke-virtual {p0}, Lcom/biuiteam/biui/view/BIUIImageView;->getScaleX()F
move-result p1
iput p1, p0, Lcom/biuiteam/biui/view/BIUIImageView;->b:F
.line 34
new-instance p1, Lcom/biuiteam/biui/view/BIUIImageView$a;
invoke-direct {p1, p0}, Lcom/biuiteam/biui/view/BIUIImageView$a;-><init>(Lcom/biuiteam/biui/view/BIUIImageView;)V
check-cast p1, Lkotlin/f/a/a;
invoke-static {p1}, Lkotlin/g;->a(Lkotlin/f/a/a;)Lkotlin/f;
move-result-object p1
iput-object p1, p0, Lcom/biuiteam/biui/view/BIUIImageView;->d:Lkotlin/f;
const/high16 p1, 0x3f800000 # 1.0f
.line 46
iput p1, p0, Lcom/biuiteam/biui/view/BIUIImageView;->f:F
const/4 p1, 0x2
.line 60
invoke-static {p0, p2, p1}, Lcom/biuiteam/biui/view/BIUIImageView;->a(Lcom/biuiteam/biui/view/BIUIImageView;Landroid/util/AttributeSet;I)V
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
.registers 4
.line 67
invoke-direct {p0, p1, p2, p3}, Landroidx/appcompat/widget/AppCompatImageView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
.line 16
invoke-virtual {p0}, Lcom/biuiteam/biui/view/BIUIImageView;->getScaleX()F
move-result p1
iput p1, p0, Lcom/biuiteam/biui/view/BIUIImageView;->b:F
.line 34
new-instance p1, Lcom/biuiteam/biui/view/BIUIImageView$a;
invoke-direct {p1, p0}, Lcom/biuiteam/biui/view/BIUIImageView$a;-><init>(Lcom/biuiteam/biui/view/BIUIImageView;)V
check-cast p1, Lkotlin/f/a/a;
invoke-static {p1}, Lkotlin/g;->a(Lkotlin/f/a/a;)Lkotlin/f;
move-result-object p1
iput-object p1, p0, Lcom/biuiteam/biui/view/BIUIImageView;->d:Lkotlin/f;
const/high16 p1, 0x3f800000 # 1.0f
.line 46
iput p1, p0, Lcom/biuiteam/biui/view/BIUIImageView;->f:F
.line 68
invoke-direct {p0, p2, p3}, Lcom/biuiteam/biui/view/BIUIImageView;->a(Landroid/util/AttributeSet;I)V
return-void
.end method
.method private final a(Landroid/util/AttributeSet;I)V
.registers 6
.line 72
invoke-virtual {p0}, Lcom/biuiteam/biui/view/BIUIImageView;->getContext()Landroid/content/Context;
move-result-object v0
.line 74
sget-object v1, Lcom/biuiteam/biui/c$i;->BIUIImageView:[I
const/4 v2, 0x0
.line 72
invoke-virtual {v0, p1, v1, p2, v2}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
move-result-object p1
.line 78
sget p2, Lcom/biuiteam/biui/c$i;->BIUIImageView_biui_enable_alpha_pressed:I
.line 79
iget-boolean v0, p0, Lcom/biuiteam/biui/view/BIUIImageView;->e:Z
.line 77
invoke-virtual {p1, p2, v0}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result p2
invoke-virtual {p0, p2}, Lcom/biuiteam/biui/view/BIUIImageView;->setEnablePressedAlpha(Z)V
.line 82
sget p2, Lcom/biuiteam/biui/c$i;->BIUIImageView_biui_alpha_pressed:I
iget v0, p0, Lcom/biuiteam/biui/view/BIUIImageView;->f:F
invoke-virtual {p1, p2, v0}, Landroid/content/res/TypedArray;->getFloat(IF)F
move-result p2
invoke-virtual {p0, p2}, Lcom/biuiteam/biui/view/BIUIImageView;->setPressedAlpha(F)V
.line 84
sget p2, Lcom/biuiteam/biui/c$i;->BIUIImageView_biui_support_rtl_layout:I
iget-boolean v0, p0, Lcom/biuiteam/biui/view/BIUIImageView;->c:Z
invoke-virtual {p1, p2, v0}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result p2
invoke-virtual {p0, p2}, Lcom/biuiteam/biui/view/BIUIImageView;->setSupportRtlLayout(Z)V
.line 86
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
return-void
.end method
.method private static synthetic a(Lcom/biuiteam/biui/view/BIUIImageView;Landroid/util/AttributeSet;I)V
.registers 3
and-int/lit8 p2, p2, 0x1
if-eqz p2, :cond_5
const/4 p1, 0x0
:cond_5
const/4 p2, 0x0
.line 71
invoke-direct {p0, p1, p2}, Lcom/biuiteam/biui/view/BIUIImageView;->a(Landroid/util/AttributeSet;I)V
return-void
.end method
.method private final getAlphaHelper()Lcom/biuiteam/biui/a/a;
.registers 2
iget-object v0, p0, Lcom/biuiteam/biui/view/BIUIImageView;->d:Lkotlin/f;
invoke-interface {v0}, Lkotlin/f;->getValue()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/biuiteam/biui/a/a;
return-object v0
.end method
# virtual methods
.method public final getPressedAlpha()F
.registers 2
.line 46
iget v0, p0, Lcom/biuiteam/biui/view/BIUIImageView;->f:F
return v0
.end method
.method public onRtlPropertiesChanged(I)V
.registers 2
.line 95
invoke-super {p0, p1}, Landroidx/appcompat/widget/AppCompatImageView;->onRtlPropertiesChanged(I)V
.line 96
iget-boolean p1, p0, Lcom/biuiteam/biui/view/BIUIImageView;->c:Z
invoke-virtual {p0, p1}, Lcom/biuiteam/biui/view/BIUIImageView;->setSupportRtlLayout(Z)V
return-void
.end method
.method public refreshDrawableState()V
.registers 2
.line 90
invoke-super {p0}, Landroidx/appcompat/widget/AppCompatImageView;->refreshDrawableState()V
.line 91
invoke-direct {p0}, Lcom/biuiteam/biui/view/BIUIImageView;->getAlphaHelper()Lcom/biuiteam/biui/a/a;
move-result-object v0
invoke-virtual {v0}, Lcom/biuiteam/biui/a/a;->a()V
return-void
.end method
.method public final setEnablePressedAlpha(Z)V
.registers 3
.line 42
iput-boolean p1, p0, Lcom/biuiteam/biui/view/BIUIImageView;->e:Z
.line 43
invoke-direct {p0}, Lcom/biuiteam/biui/view/BIUIImageView;->getAlphaHelper()Lcom/biuiteam/biui/a/a;
move-result-object v0
.line 1020
iput-boolean p1, v0, Lcom/biuiteam/biui/a/a;->a:Z
return-void
.end method
.method public final setPressedAlpha(F)V
.registers 3
.line 48
invoke-direct {p0}, Lcom/biuiteam/biui/view/BIUIImageView;->getAlphaHelper()Lcom/biuiteam/biui/a/a;
move-result-object v0
.line 1024
iput p1, v0, Lcom/biuiteam/biui/a/a;->b:F
.line 49
iput p1, p0, Lcom/biuiteam/biui/view/BIUIImageView;->f:F
return-void
.end method
.method public setScaleX(F)V
.registers 2
.line 30
iput p1, p0, Lcom/biuiteam/biui/view/BIUIImageView;->b:F
.line 31
iget-boolean p1, p0, Lcom/biuiteam/biui/view/BIUIImageView;->c:Z
invoke-virtual {p0, p1}, Lcom/biuiteam/biui/view/BIUIImageView;->setSupportRtlLayout(Z)V
return-void
.end method
.method public final setSupportRtlLayout(Z)V
.registers 4
.line 20
iput-boolean p1, p0, Lcom/biuiteam/biui/view/BIUIImageView;->c:Z
const/high16 v0, 0x3f800000 # 1.0f
if-eqz p1, :cond_11
.line 24
invoke-virtual {p0}, Lcom/biuiteam/biui/view/BIUIImageView;->getLayoutDirection()I
move-result p1
const/4 v1, 0x1
if-ne p1, v1, :cond_11
const/high16 p1, -0x40800000 # -1.0f
const/high16 v0, -0x40800000 # -1.0f
.line 26
:cond_11
iget p1, p0, Lcom/biuiteam/biui/view/BIUIImageView;->b:F
mul-float p1, p1, v0
invoke-super {p0, p1}, Landroidx/appcompat/widget/AppCompatImageView;->setScaleX(F)V
return-void
.end method