156 lines
3.5 KiB
Smali
156 lines
3.5 KiB
Smali
.class public Lcom/moji/mjweather/weather/view/StatusBarImageView;
|
|
.super Landroid/widget/ImageView;
|
|
.source "StatusBarImageView.java"
|
|
|
|
|
|
# instance fields
|
|
.field private a:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 0
|
|
|
|
.line 31
|
|
invoke-direct {p0, p1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 21
|
|
iput p1, p0, Lcom/moji/mjweather/weather/view/StatusBarImageView;->a:I
|
|
|
|
.line 24
|
|
invoke-static {}, Lcom/moji/tool/DeviceTool;->C()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 25
|
|
invoke-static {}, Lcom/moji/tool/DeviceTool;->e()I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Lcom/moji/mjweather/weather/view/StatusBarImageView;->a:I
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 0
|
|
.param p2 # Landroid/util/AttributeSet;
|
|
.annotation build Landroid/support/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 35
|
|
invoke-direct {p0, p1, p2}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 21
|
|
iput p1, p0, Lcom/moji/mjweather/weather/view/StatusBarImageView;->a:I
|
|
|
|
.line 24
|
|
invoke-static {}, Lcom/moji/tool/DeviceTool;->C()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 25
|
|
invoke-static {}, Lcom/moji/tool/DeviceTool;->e()I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Lcom/moji/mjweather/weather/view/StatusBarImageView;->a:I
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
.locals 0
|
|
.param p2 # Landroid/util/AttributeSet;
|
|
.annotation build Landroid/support/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 39
|
|
invoke-direct {p0, p1, p2, p3}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 21
|
|
iput p1, p0, Lcom/moji/mjweather/weather/view/StatusBarImageView;->a:I
|
|
|
|
.line 24
|
|
invoke-static {}, Lcom/moji/tool/DeviceTool;->C()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 25
|
|
invoke-static {}, Lcom/moji/tool/DeviceTool;->e()I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Lcom/moji/mjweather/weather/view/StatusBarImageView;->a:I
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method protected onAttachedToWindow()V
|
|
.locals 2
|
|
|
|
.line 50
|
|
invoke-super {p0}, Landroid/widget/ImageView;->onAttachedToWindow()V
|
|
|
|
.line 51
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x17
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 52
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/weather/view/StatusBarImageView;->getRootWindowInsets()Landroid/view/WindowInsets;
|
|
|
|
move-result-object v0
|
|
|
|
.line 53
|
|
invoke-static {v0}, Lcom/moji/tool/DeviceTool;->b(Landroid/view/WindowInsets;)I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Lcom/moji/mjweather/weather/view/StatusBarImageView;->a:I
|
|
|
|
.line 54
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/weather/view/StatusBarImageView;->requestLayout()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method protected onMeasure(II)V
|
|
.locals 1
|
|
|
|
.line 45
|
|
iget p2, p0, Lcom/moji/mjweather/weather/view/StatusBarImageView;->a:I
|
|
|
|
const/high16 v0, 0x40000000 # 2.0f
|
|
|
|
invoke-static {p2, v0}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result p2
|
|
|
|
invoke-super {p0, p1, p2}, Landroid/widget/ImageView;->onMeasure(II)V
|
|
|
|
return-void
|
|
.end method
|