ThemeEditorView$EditorAlert$1.smali
.class Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;
.super Landroid/widget/FrameLayout;
.source "ThemeEditorView.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;-><init>(Lim/tpelyyftgw/ui/components/ThemeEditorView;Landroid/content/Context;[Lim/tpelyyftgw/ui/actionbar/ThemeDescription;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field private ignoreLayout:Z
.field private rect1:Landroid/graphics/RectF;
.field final synthetic this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
.field final synthetic val$this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method constructor <init>(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;Landroid/content/Context;Lim/tpelyyftgw/ui/components/ThemeEditorView;)V
.registers 4
.param p1, "this$1" # Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
.param p2, "arg0" # Landroid/content/Context;
.line 631
iput-object p1, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
iput-object p3, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->val$this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;
invoke-direct {p0, p2}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V
.line 633
const/4 p3, 0x0
iput-boolean p3, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->ignoreLayout:Z
.line 634
new-instance p3, Landroid/graphics/RectF;
invoke-direct {p3}, Landroid/graphics/RectF;-><init>()V
iput-object p3, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->rect1:Landroid/graphics/RectF;
return-void
.end method
# virtual methods
.method protected onDraw(Landroid/graphics/Canvas;)V
.registers 18
.param p1, "canvas" # Landroid/graphics/Canvas;
.line 693
move-object/from16 v0, p0
move-object/from16 v7, p1
iget-object v1, v0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
invoke-static {v1}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$1600(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)I
move-result v1
iget-object v2, v0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
invoke-static {v2}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$2300(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)I
move-result v2
sub-int/2addr v1, v2
const/high16 v2, 0x40c00000 # 6.0f
invoke-static {v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v2
add-int/2addr v1, v2
.line 694
.local v1, "y":I
iget-object v2, v0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
invoke-static {v2}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$1600(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)I
move-result v2
iget-object v3, v0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
invoke-static {v3}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$2400(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)I
move-result v3
sub-int/2addr v2, v3
const/high16 v3, 0x41500000 # 13.0f
invoke-static {v3}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v3
sub-int/2addr v2, v3
.line 695
.local v2, "top":I
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->getMeasuredHeight()I
move-result v3
const/high16 v4, 0x41f00000 # 30.0f
invoke-static {v4}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v4
add-int/2addr v3, v4
iget-object v4, v0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
invoke-static {v4}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$2500(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)I
move-result v4
add-int/2addr v3, v4
.line 696
.local v3, "height":I
const/4 v4, 0x0
.line 697
.local v4, "statusBarHeight":I
const/high16 v5, 0x3f800000 # 1.0f
.line 698
.local v5, "radProgress":F
iget-object v6, v0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
invoke-static {v6}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$2600(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)Z
move-result v6
const/high16 v8, 0x3f800000 # 1.0f
if-nez v6, :cond_af
sget v6, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v9, 0x15
if-lt v6, v9, :cond_af
.line 699
sget v6, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
add-int/2addr v2, v6
.line 700
sget v6, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
add-int/2addr v1, v6
.line 701
sget v6, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
sub-int/2addr v3, v6
.line 703
iget-object v6, v0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
invoke-static {v6}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$2700(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)I
move-result v6
add-int/2addr v6, v2
sget v9, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
mul-int/lit8 v9, v9, 0x2
if-ge v6, v9, :cond_88
.line 704
sget v6, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
sget v9, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
mul-int/lit8 v9, v9, 0x2
sub-int/2addr v9, v2
iget-object v10, v0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
invoke-static {v10}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$2800(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)I
move-result v10
sub-int/2addr v9, v10
invoke-static {v6, v9}, Ljava/lang/Math;->min(II)I
move-result v6
.line 705
.local v6, "diff":I
sub-int/2addr v2, v6
.line 706
add-int/2addr v3, v6
.line 707
mul-int/lit8 v9, v6, 0x2
int-to-float v9, v9
sget v10, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
int-to-float v10, v10
div-float/2addr v9, v10
invoke-static {v8, v9}, Ljava/lang/Math;->min(FF)F
move-result v9
sub-float v5, v8, v9
.line 709
.end local v6 # "diff":I
:cond_88
iget-object v6, v0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
invoke-static {v6}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$2900(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)I
move-result v6
add-int/2addr v6, v2
sget v9, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
if-ge v6, v9, :cond_a9
.line 710
sget v6, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
sget v9, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
sub-int/2addr v9, v2
iget-object v10, v0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
invoke-static {v10}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$3000(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)I
move-result v10
sub-int/2addr v9, v10
invoke-static {v6, v9}, Ljava/lang/Math;->min(II)I
move-result v4
move v9, v1
move v10, v2
move v11, v3
move v12, v4
move v13, v5
goto :goto_b4
.line 709
:cond_a9
move v9, v1
move v10, v2
move v11, v3
move v12, v4
move v13, v5
goto :goto_b4
.line 714
:cond_af
move v9, v1
move v10, v2
move v11, v3
move v12, v4
move v13, v5
.end local v1 # "y":I
.end local v2 # "top":I
.end local v3 # "height":I
.end local v4 # "statusBarHeight":I
.end local v5 # "radProgress":F
.local v9, "y":I
.local v10, "top":I
.local v11, "height":I
.local v12, "statusBarHeight":I
.local v13, "radProgress":F
:goto_b4
iget-object v1, v0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
invoke-static {v1}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$3100(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)Landroid/graphics/drawable/Drawable;
move-result-object v1
const/4 v2, 0x0
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->getMeasuredWidth()I
move-result v3
invoke-virtual {v1, v2, v10, v3, v11}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V
.line 715
iget-object v1, v0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
invoke-static {v1}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$3100(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)Landroid/graphics/drawable/Drawable;
move-result-object v1
invoke-virtual {v1, v7}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V
.line 717
cmpl-float v1, v13, v8
if-eqz v1, :cond_11b
.line 718
sget-object v1, Lim/tpelyyftgw/ui/actionbar/Theme;->dialogs_onlineCirclePaint:Landroid/graphics/Paint;
const/4 v2, -0x1
invoke-virtual {v1, v2}, Landroid/graphics/Paint;->setColor(I)V
.line 719
iget-object v1, v0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->rect1:Landroid/graphics/RectF;
iget-object v2, v0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
invoke-static {v2}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$3200(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)I
move-result v2
int-to-float v2, v2
iget-object v3, v0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
invoke-static {v3}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$3300(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)I
move-result v3
add-int/2addr v3, v10
int-to-float v3, v3
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->getMeasuredWidth()I
move-result v4
iget-object v5, v0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
invoke-static {v5}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$3400(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)I
move-result v5
sub-int/2addr v4, v5
int-to-float v4, v4
iget-object v5, v0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
invoke-static {v5}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$3500(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)I
move-result v5
add-int/2addr v5, v10
const/high16 v6, 0x41c00000 # 24.0f
invoke-static {v6}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v6
add-int/2addr v5, v6
int-to-float v5, v5
invoke-virtual {v1, v2, v3, v4, v5}, Landroid/graphics/RectF;->set(FFFF)V
.line 720
iget-object v1, v0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->rect1:Landroid/graphics/RectF;
const/high16 v2, 0x41400000 # 12.0f
invoke-static {v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v3
int-to-float v3, v3
mul-float v3, v3, v13
invoke-static {v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v2
int-to-float v2, v2
mul-float v2, v2, v13
sget-object v4, Lim/tpelyyftgw/ui/actionbar/Theme;->dialogs_onlineCirclePaint:Landroid/graphics/Paint;
invoke-virtual {v7, v1, v3, v2, v4}, Landroid/graphics/Canvas;->drawRoundRect(Landroid/graphics/RectF;FFLandroid/graphics/Paint;)V
.line 723
:cond_11b
const/high16 v1, 0x42100000 # 36.0f
invoke-static {v1}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v8
.line 724
.local v8, "w":I
iget-object v1, v0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->rect1:Landroid/graphics/RectF;
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->getMeasuredWidth()I
move-result v2
sub-int/2addr v2, v8
div-int/lit8 v2, v2, 0x2
int-to-float v2, v2
int-to-float v3, v9
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->getMeasuredWidth()I
move-result v4
add-int/2addr v4, v8
div-int/lit8 v4, v4, 0x2
int-to-float v4, v4
const/high16 v5, 0x40800000 # 4.0f
invoke-static {v5}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v5
add-int/2addr v5, v9
int-to-float v5, v5
invoke-virtual {v1, v2, v3, v4, v5}, Landroid/graphics/RectF;->set(FFFF)V
.line 725
sget-object v1, Lim/tpelyyftgw/ui/actionbar/Theme;->dialogs_onlineCirclePaint:Landroid/graphics/Paint;
const v2, -0x1e1b18
invoke-virtual {v1, v2}, Landroid/graphics/Paint;->setColor(I)V
.line 726
sget-object v1, Lim/tpelyyftgw/ui/actionbar/Theme;->dialogs_onlineCirclePaint:Landroid/graphics/Paint;
const/high16 v2, 0x437f0000 # 255.0f
iget-object v3, v0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
invoke-static {v3}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$100(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)Lim/tpelyyftgw/ui/components/RecyclerListView;
move-result-object v3
invoke-virtual {v3}, Lim/tpelyyftgw/ui/components/RecyclerListView;->getAlpha()F
move-result v3
mul-float v3, v3, v2
float-to-int v2, v3
invoke-virtual {v1, v2}, Landroid/graphics/Paint;->setAlpha(I)V
.line 727
iget-object v1, v0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->rect1:Landroid/graphics/RectF;
const/high16 v2, 0x40000000 # 2.0f
invoke-static {v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v3
int-to-float v3, v3
invoke-static {v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v2
int-to-float v2, v2
sget-object v4, Lim/tpelyyftgw/ui/actionbar/Theme;->dialogs_onlineCirclePaint:Landroid/graphics/Paint;
invoke-virtual {v7, v1, v3, v2, v4}, Landroid/graphics/Canvas;->drawRoundRect(Landroid/graphics/RectF;FFLandroid/graphics/Paint;)V
.line 729
if-lez v12, :cond_1b8
.line 730
const/4 v14, -0x1
.line 731
.local v14, "color1":I
const/16 v1, 0xff
invoke-static {v14}, Landroid/graphics/Color;->red(I)I
move-result v2
int-to-float v2, v2
const v3, 0x3f4ccccd # 0.8f
mul-float v2, v2, v3
float-to-int v2, v2
invoke-static {v14}, Landroid/graphics/Color;->green(I)I
move-result v4
int-to-float v4, v4
mul-float v4, v4, v3
float-to-int v4, v4
invoke-static {v14}, Landroid/graphics/Color;->blue(I)I
move-result v5
int-to-float v5, v5
mul-float v5, v5, v3
float-to-int v3, v5
invoke-static {v1, v2, v4, v3}, Landroid/graphics/Color;->argb(IIII)I
move-result v15
.line 732
.local v15, "finalColor":I
sget-object v1, Lim/tpelyyftgw/ui/actionbar/Theme;->dialogs_onlineCirclePaint:Landroid/graphics/Paint;
invoke-virtual {v1, v15}, Landroid/graphics/Paint;->setColor(I)V
.line 733
iget-object v1, v0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
invoke-static {v1}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$3600(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)I
move-result v1
int-to-float v2, v1
sget v1, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
sub-int/2addr v1, v12
int-to-float v3, v1
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->getMeasuredWidth()I
move-result v1
iget-object v4, v0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
invoke-static {v4}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$3700(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)I
move-result v4
sub-int/2addr v1, v4
int-to-float v4, v1
sget v1, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
int-to-float v5, v1
sget-object v6, Lim/tpelyyftgw/ui/actionbar/Theme;->dialogs_onlineCirclePaint:Landroid/graphics/Paint;
move-object/from16 v1, p1
invoke-virtual/range {v1 .. v6}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V
.line 735
.end local v14 # "color1":I
.end local v15 # "finalColor":I
:cond_1b8
return-void
.end method
.method public onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
.registers 4
.param p1, "ev" # Landroid/view/MotionEvent;
.line 638
invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I
move-result v0
if-nez v0, :cond_24
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$1600(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)I
move-result v0
if-eqz v0, :cond_24
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
move-result v0
iget-object v1, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
invoke-static {v1}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$1600(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)I
move-result v1
int-to-float v1, v1
cmpg-float v0, v0, v1
if-gez v0, :cond_24
.line 639
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->dismiss()V
.line 640
const/4 v0, 0x1
return v0
.line 642
:cond_24
invoke-super {p0, p1}, Landroid/widget/FrameLayout;->onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
move-result v0
return v0
.end method
.method protected onLayout(ZIIII)V
.registers 7
.param p1, "changed" # Z
.param p2, "left" # I
.param p3, "top" # I
.param p4, "right" # I
.param p5, "bottom" # I
.line 679
invoke-super/range {p0 .. p5}, Landroid/widget/FrameLayout;->onLayout(ZIIII)V
.line 680
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$2200(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)V
.line 681
return-void
.end method
.method protected onMeasure(II)V
.registers 11
.param p1, "widthMeasureSpec" # I
.param p2, "heightMeasureSpec" # I
.line 652
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I
move-result v0
.line 653
.local v0, "width":I
invoke-static {p2}, Landroid/view/View$MeasureSpec;->getSize(I)I
move-result v1
.line 654
.local v1, "height":I
sget v2, Landroid/os/Build$VERSION;->SDK_INT:I
const/4 v3, 0x1
const/16 v4, 0x15
const/4 v5, 0x0
if-lt v2, v4, :cond_2d
iget-object v2, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
invoke-static {v2}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$1700(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)Z
move-result v2
if-nez v2, :cond_2d
.line 655
iput-boolean v3, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->ignoreLayout:Z
.line 656
iget-object v2, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
invoke-static {v2}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$1800(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)I
move-result v2
sget v6, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
iget-object v7, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
invoke-static {v7}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$1900(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)I
move-result v7
invoke-virtual {p0, v2, v6, v7, v5}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->setPadding(IIII)V
.line 657
iput-boolean v5, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->ignoreLayout:Z
.line 660
:cond_2d
sget v2, Landroid/os/Build$VERSION;->SDK_INT:I
if-lt v2, v4, :cond_34
sget v2, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
goto :goto_35
:cond_34
const/4 v2, 0x0
:goto_35
sub-int v2, v1, v2
invoke-static {v0, v2}, Ljava/lang/Math;->min(II)I
move-result v2
.line 662
.local v2, "pickerSize":I
sget v6, Landroid/os/Build$VERSION;->SDK_INT:I
if-lt v6, v4, :cond_42
sget v4, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
goto :goto_43
:cond_42
const/4 v4, 0x0
:goto_43
sub-int v4, v1, v4
const/high16 v6, 0x41000000 # 8.0f
invoke-static {v6}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v6
add-int/2addr v4, v6
sub-int/2addr v4, v2
.line 663
.local v4, "padding":I
iget-object v6, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
invoke-static {v6}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$100(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)Lim/tpelyyftgw/ui/components/RecyclerListView;
move-result-object v6
invoke-virtual {v6}, Lim/tpelyyftgw/ui/components/RecyclerListView;->getPaddingTop()I
move-result v6
if-eq v6, v4, :cond_94
.line 664
iput-boolean v3, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->ignoreLayout:Z
.line 665
iget-object v3, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
invoke-static {v3}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$100(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)Lim/tpelyyftgw/ui/components/RecyclerListView;
move-result-object v3
invoke-virtual {v3}, Lim/tpelyyftgw/ui/components/RecyclerListView;->getPaddingTop()I
move-result v3
.line 666
.local v3, "previousPadding":I
iget-object v6, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
invoke-static {v6}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$100(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)Lim/tpelyyftgw/ui/components/RecyclerListView;
move-result-object v6
const/high16 v7, 0x42400000 # 48.0f
invoke-static {v7}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v7
invoke-virtual {v6, v5, v4, v5, v7}, Lim/tpelyyftgw/ui/components/RecyclerListView;->setPadding(IIII)V
.line 667
iget-object v6, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
invoke-static {v6}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$2000(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$ColorPicker;
move-result-object v6
invoke-virtual {v6}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$ColorPicker;->getVisibility()I
move-result v6
if-nez v6, :cond_92
.line 669
iget-object v6, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
invoke-static {v6}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$100(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)Lim/tpelyyftgw/ui/components/RecyclerListView;
move-result-object v7
invoke-virtual {v7}, Lim/tpelyyftgw/ui/components/RecyclerListView;->getPaddingTop()I
move-result v7
invoke-virtual {v6, v7}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->setScrollOffsetY(I)V
.line 670
iget-object v6, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
invoke-static {v6, v5}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$2102(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;I)I
.line 672
:cond_92
iput-boolean v5, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->ignoreLayout:Z
.line 674
.end local v3 # "previousPadding":I
:cond_94
const/high16 v3, 0x40000000 # 2.0f
invoke-static {v1, v3}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result v3
invoke-super {p0, p1, v3}, Landroid/widget/FrameLayout;->onMeasure(II)V
.line 675
return-void
.end method
.method public onTouchEvent(Landroid/view/MotionEvent;)Z
.registers 3
.param p1, "e" # Landroid/view/MotionEvent;
.line 647
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->isDismissed()Z
move-result v0
if-nez v0, :cond_10
invoke-super {p0, p1}, Landroid/widget/FrameLayout;->onTouchEvent(Landroid/view/MotionEvent;)Z
move-result v0
if-eqz v0, :cond_10
const/4 v0, 0x1
goto :goto_11
:cond_10
const/4 v0, 0x0
:goto_11
return v0
.end method
.method public requestLayout()V
.registers 2
.line 685
iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$1;->ignoreLayout:Z
if-eqz v0, :cond_5
.line 686
return-void
.line 688
:cond_5
invoke-super {p0}, Landroid/widget/FrameLayout;->requestLayout()V
.line 689
return-void
.end method