ThemeEditorView$1.smali
.class Lim/tpelyyftgw/ui/components/ThemeEditorView$1;
.super Landroid/widget/FrameLayout;
.source "ThemeEditorView.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lim/tpelyyftgw/ui/components/ThemeEditorView;->show(Landroid/app/Activity;Lim/tpelyyftgw/ui/actionbar/Theme$ThemeInfo;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field private dragging:Z
.field private startX:F
.field private startY:F
.field final synthetic 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;Landroid/content/Context;)V
.registers 3
.param p1, "this$0" # Lim/tpelyyftgw/ui/components/ThemeEditorView;
.param p2, "arg0" # Landroid/content/Context;
.line 1358
iput-object p1, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;
invoke-direct {p0, p2}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V
return-void
.end method
.method static synthetic lambda$onTouchEvent$0(Landroid/content/DialogInterface;)V
.registers 1
.param p0, "dialog" # Landroid/content/DialogInterface;
.line 1417
return-void
.end method
# virtual methods
.method public synthetic lambda$onTouchEvent$1$ThemeEditorView$1(Landroid/content/DialogInterface;)V
.registers 4
.param p1, "dialog" # Landroid/content/DialogInterface;
.line 1419
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;
const/4 v1, 0x0
# setter for: Lim/tpelyyftgw/ui/components/ThemeEditorView;->editorAlert:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
invoke-static {v0, v1}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$5102(Lim/tpelyyftgw/ui/components/ThemeEditorView;Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
.line 1420
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;
# invokes: Lim/tpelyyftgw/ui/components/ThemeEditorView;->show()V
invoke-static {v0}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$5800(Lim/tpelyyftgw/ui/components/ThemeEditorView;)V
.line 1421
return-void
.end method
.method public onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
.registers 3
.param p1, "event" # Landroid/view/MotionEvent;
.line 1366
const/4 v0, 0x1
return v0
.end method
.method public onTouchEvent(Landroid/view/MotionEvent;)Z
.registers 15
.param p1, "event" # Landroid/view/MotionEvent;
.line 1371
invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawX()F
move-result v0
.line 1372
.local v0, "x":F
invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawY()F
move-result v1
.line 1373
.local v1, "y":F
invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I
move-result v2
const/4 v3, 0x0
const/4 v4, 0x2
const/4 v5, 0x1
if-nez v2, :cond_17
.line 1374
iput v0, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->startX:F
.line 1375
iput v1, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->startY:F
goto/16 :goto_eb
.line 1376
:cond_17
invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I
move-result v2
if-ne v2, v4, :cond_4a
iget-boolean v2, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->dragging:Z
if-nez v2, :cond_4a
.line 1377
iget v2, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->startX:F
sub-float/2addr v2, v0
invoke-static {v2}, Ljava/lang/Math;->abs(F)F
move-result v2
const v6, 0x3e99999a # 0.3f
invoke-static {v6, v5}, Lim/tpelyyftgw/messenger/AndroidUtilities;->getPixelsInCM(FZ)F
move-result v7
cmpl-float v2, v2, v7
if-gez v2, :cond_42
iget v2, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->startY:F
sub-float/2addr v2, v1
invoke-static {v2}, Ljava/lang/Math;->abs(F)F
move-result v2
invoke-static {v6, v3}, Lim/tpelyyftgw/messenger/AndroidUtilities;->getPixelsInCM(FZ)F
move-result v6
cmpl-float v2, v2, v6
if-ltz v2, :cond_eb
.line 1378
:cond_42
iput-boolean v5, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->dragging:Z
.line 1379
iput v0, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->startX:F
.line 1380
iput v1, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->startY:F
goto/16 :goto_eb
.line 1382
:cond_4a
invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I
move-result v2
if-ne v2, v5, :cond_eb
.line 1383
iget-boolean v2, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->dragging:Z
if-nez v2, :cond_eb
.line 1384
iget-object v2, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;
# getter for: Lim/tpelyyftgw/ui/components/ThemeEditorView;->editorAlert:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
invoke-static {v2}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$5100(Lim/tpelyyftgw/ui/components/ThemeEditorView;)Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
move-result-object v2
if-nez v2, :cond_eb
.line 1385
iget-object v2, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;
# getter for: Lim/tpelyyftgw/ui/components/ThemeEditorView;->parentActivity:Landroid/app/Activity;
invoke-static {v2}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$4400(Lim/tpelyyftgw/ui/components/ThemeEditorView;)Landroid/app/Activity;
move-result-object v2
check-cast v2, Lim/tpelyyftgw/ui/LaunchActivity;
.line 1387
.local v2, "launchActivity":Lim/tpelyyftgw/ui/LaunchActivity;
const/4 v6, 0x0
.line 1389
.local v6, "actionBarLayout":Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;
invoke-static {}, Lim/tpelyyftgw/messenger/AndroidUtilities;->isTablet()Z
move-result v7
if-eqz v7, :cond_8b
.line 1390
invoke-virtual {v2}, Lim/tpelyyftgw/ui/LaunchActivity;->getLayersActionBarLayout()Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;
move-result-object v6
.line 1391
if-eqz v6, :cond_7a
iget-object v7, v6, Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;->fragmentsStack:Ljava/util/ArrayList;
invoke-virtual {v7}, Ljava/util/ArrayList;->isEmpty()Z
move-result v7
if-eqz v7, :cond_7a
.line 1392
const/4 v6, 0x0
.line 1394
:cond_7a
if-nez v6, :cond_8b
.line 1395
invoke-virtual {v2}, Lim/tpelyyftgw/ui/LaunchActivity;->getRightActionBarLayout()Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;
move-result-object v6
.line 1396
if-eqz v6, :cond_8b
iget-object v7, v6, Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;->fragmentsStack:Ljava/util/ArrayList;
invoke-virtual {v7}, Ljava/util/ArrayList;->isEmpty()Z
move-result v7
if-eqz v7, :cond_8b
.line 1397
const/4 v6, 0x0
.line 1401
:cond_8b
if-nez v6, :cond_91
.line 1402
invoke-virtual {v2}, Lim/tpelyyftgw/ui/LaunchActivity;->getActionBarLayout()Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;
move-result-object v6
.line 1404
:cond_91
if-eqz v6, :cond_eb
.line 1406
iget-object v7, v6, Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;->fragmentsStack:Ljava/util/ArrayList;
invoke-virtual {v7}, Ljava/util/ArrayList;->isEmpty()Z
move-result v7
if-nez v7, :cond_ab
.line 1407
iget-object v7, v6, Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;->fragmentsStack:Ljava/util/ArrayList;
iget-object v8, v6, Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;->fragmentsStack:Ljava/util/ArrayList;
invoke-virtual {v8}, Ljava/util/ArrayList;->size()I
move-result v8
sub-int/2addr v8, v5
invoke-virtual {v7, v8}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v7
check-cast v7, Lim/tpelyyftgw/ui/actionbar/BaseFragment;
.local v7, "fragment":Lim/tpelyyftgw/ui/actionbar/BaseFragment;
goto :goto_ac
.line 1409
.end local v7 # "fragment":Lim/tpelyyftgw/ui/actionbar/BaseFragment;
:cond_ab
const/4 v7, 0x0
.line 1411
.restart local v7 # "fragment":Lim/tpelyyftgw/ui/actionbar/BaseFragment;
:goto_ac
if-eqz v7, :cond_eb
.line 1412
invoke-virtual {v7}, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->getThemeDescriptions()[Lim/tpelyyftgw/ui/actionbar/ThemeDescription;
move-result-object v8
.line 1413
.local v8, "items":[Lim/tpelyyftgw/ui/actionbar/ThemeDescription;
if-eqz v8, :cond_eb
.line 1414
iget-object v9, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;
new-instance v10, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
iget-object v11, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;
# getter for: Lim/tpelyyftgw/ui/components/ThemeEditorView;->parentActivity:Landroid/app/Activity;
invoke-static {v11}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$4400(Lim/tpelyyftgw/ui/components/ThemeEditorView;)Landroid/app/Activity;
move-result-object v12
invoke-direct {v10, v11, v12, v8}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;-><init>(Lim/tpelyyftgw/ui/components/ThemeEditorView;Landroid/content/Context;[Lim/tpelyyftgw/ui/actionbar/ThemeDescription;)V
# setter for: Lim/tpelyyftgw/ui/components/ThemeEditorView;->editorAlert:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
invoke-static {v9, v10}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$5102(Lim/tpelyyftgw/ui/components/ThemeEditorView;Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
.line 1415
iget-object v9, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;
# getter for: Lim/tpelyyftgw/ui/components/ThemeEditorView;->editorAlert:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
invoke-static {v9}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$5100(Lim/tpelyyftgw/ui/components/ThemeEditorView;)Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
move-result-object v9
sget-object v10, Lim/tpelyyftgw/ui/components/-$$Lambda$ThemeEditorView$1$VgUzxgyFzrxFIjFVLjA6DRdn-eA;->INSTANCE:Lim/tpelyyftgw/ui/components/-$$Lambda$ThemeEditorView$1$VgUzxgyFzrxFIjFVLjA6DRdn-eA;
invoke-virtual {v9, v10}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->setOnDismissListener(Landroid/content/DialogInterface$OnDismissListener;)V
.line 1418
iget-object v9, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;
# getter for: Lim/tpelyyftgw/ui/components/ThemeEditorView;->editorAlert:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
invoke-static {v9}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$5100(Lim/tpelyyftgw/ui/components/ThemeEditorView;)Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
move-result-object v9
new-instance v10, Lim/tpelyyftgw/ui/components/-$$Lambda$ThemeEditorView$1$tRvBMv-IKjvQj4z8eWQsgF2v1wQ;
invoke-direct {v10, p0}, Lim/tpelyyftgw/ui/components/-$$Lambda$ThemeEditorView$1$tRvBMv-IKjvQj4z8eWQsgF2v1wQ;-><init>(Lim/tpelyyftgw/ui/components/ThemeEditorView$1;)V
invoke-virtual {v9, v10}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->setOnDismissListener(Landroid/content/DialogInterface$OnDismissListener;)V
.line 1422
iget-object v9, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;
# getter for: Lim/tpelyyftgw/ui/components/ThemeEditorView;->editorAlert:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
invoke-static {v9}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$5100(Lim/tpelyyftgw/ui/components/ThemeEditorView;)Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
move-result-object v9
invoke-virtual {v9}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->show()V
.line 1423
iget-object v9, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;
# invokes: Lim/tpelyyftgw/ui/components/ThemeEditorView;->hide()V
invoke-static {v9}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$5200(Lim/tpelyyftgw/ui/components/ThemeEditorView;)V
.line 1430
.end local v2 # "launchActivity":Lim/tpelyyftgw/ui/LaunchActivity;
.end local v6 # "actionBarLayout":Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;
.end local v7 # "fragment":Lim/tpelyyftgw/ui/actionbar/BaseFragment;
.end local v8 # "items":[Lim/tpelyyftgw/ui/actionbar/ThemeDescription;
:cond_eb
:goto_eb
iget-boolean v2, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->dragging:Z
if-eqz v2, :cond_238
.line 1431
invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I
move-result v2
if-ne v2, v4, :cond_22a
.line 1432
iget v2, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->startX:F
sub-float v2, v0, v2
.line 1433
.local v2, "dx":F
iget v3, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->startY:F
sub-float v3, v1, v3
.line 1434
.local v3, "dy":F
iget-object v6, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;
# getter for: Lim/tpelyyftgw/ui/components/ThemeEditorView;->windowLayoutParams:Landroid/view/WindowManager$LayoutParams;
invoke-static {v6}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$5300(Lim/tpelyyftgw/ui/components/ThemeEditorView;)Landroid/view/WindowManager$LayoutParams;
move-result-object v6
iget v7, v6, Landroid/view/WindowManager$LayoutParams;->x:I
int-to-float v7, v7
add-float/2addr v7, v2
float-to-int v7, v7
iput v7, v6, Landroid/view/WindowManager$LayoutParams;->x:I
.line 1435
iget-object v6, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;
# getter for: Lim/tpelyyftgw/ui/components/ThemeEditorView;->windowLayoutParams:Landroid/view/WindowManager$LayoutParams;
invoke-static {v6}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$5300(Lim/tpelyyftgw/ui/components/ThemeEditorView;)Landroid/view/WindowManager$LayoutParams;
move-result-object v6
iget v7, v6, Landroid/view/WindowManager$LayoutParams;->y:I
int-to-float v7, v7
add-float/2addr v7, v3
float-to-int v7, v7
iput v7, v6, Landroid/view/WindowManager$LayoutParams;->y:I
.line 1436
iget-object v6, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;
# getter for: Lim/tpelyyftgw/ui/components/ThemeEditorView;->editorWidth:I
invoke-static {v6}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$5400(Lim/tpelyyftgw/ui/components/ThemeEditorView;)I
move-result v6
div-int/2addr v6, v4
.line 1437
.local v6, "maxDiff":I
iget-object v4, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;
# getter for: Lim/tpelyyftgw/ui/components/ThemeEditorView;->windowLayoutParams:Landroid/view/WindowManager$LayoutParams;
invoke-static {v4}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$5300(Lim/tpelyyftgw/ui/components/ThemeEditorView;)Landroid/view/WindowManager$LayoutParams;
move-result-object v4
iget v4, v4, Landroid/view/WindowManager$LayoutParams;->x:I
neg-int v7, v6
if-ge v4, v7, :cond_133
.line 1438
iget-object v4, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;
# getter for: Lim/tpelyyftgw/ui/components/ThemeEditorView;->windowLayoutParams:Landroid/view/WindowManager$LayoutParams;
invoke-static {v4}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$5300(Lim/tpelyyftgw/ui/components/ThemeEditorView;)Landroid/view/WindowManager$LayoutParams;
move-result-object v4
neg-int v7, v6
iput v7, v4, Landroid/view/WindowManager$LayoutParams;->x:I
goto :goto_161
.line 1439
:cond_133
iget-object v4, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;
# getter for: Lim/tpelyyftgw/ui/components/ThemeEditorView;->windowLayoutParams:Landroid/view/WindowManager$LayoutParams;
invoke-static {v4}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$5300(Lim/tpelyyftgw/ui/components/ThemeEditorView;)Landroid/view/WindowManager$LayoutParams;
move-result-object v4
iget v4, v4, Landroid/view/WindowManager$LayoutParams;->x:I
sget-object v7, Lim/tpelyyftgw/messenger/AndroidUtilities;->displaySize:Landroid/graphics/Point;
iget v7, v7, Landroid/graphics/Point;->x:I
iget-object v8, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;
# getter for: Lim/tpelyyftgw/ui/components/ThemeEditorView;->windowLayoutParams:Landroid/view/WindowManager$LayoutParams;
invoke-static {v8}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$5300(Lim/tpelyyftgw/ui/components/ThemeEditorView;)Landroid/view/WindowManager$LayoutParams;
move-result-object v8
iget v8, v8, Landroid/view/WindowManager$LayoutParams;->width:I
sub-int/2addr v7, v8
add-int/2addr v7, v6
if-le v4, v7, :cond_161
.line 1440
iget-object v4, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;
# getter for: Lim/tpelyyftgw/ui/components/ThemeEditorView;->windowLayoutParams:Landroid/view/WindowManager$LayoutParams;
invoke-static {v4}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$5300(Lim/tpelyyftgw/ui/components/ThemeEditorView;)Landroid/view/WindowManager$LayoutParams;
move-result-object v4
sget-object v7, Lim/tpelyyftgw/messenger/AndroidUtilities;->displaySize:Landroid/graphics/Point;
iget v7, v7, Landroid/graphics/Point;->x:I
iget-object v8, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;
# getter for: Lim/tpelyyftgw/ui/components/ThemeEditorView;->windowLayoutParams:Landroid/view/WindowManager$LayoutParams;
invoke-static {v8}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$5300(Lim/tpelyyftgw/ui/components/ThemeEditorView;)Landroid/view/WindowManager$LayoutParams;
move-result-object v8
iget v8, v8, Landroid/view/WindowManager$LayoutParams;->width:I
sub-int/2addr v7, v8
add-int/2addr v7, v6
iput v7, v4, Landroid/view/WindowManager$LayoutParams;->x:I
.line 1442
:cond_161
:goto_161
const/high16 v4, 0x3f800000 # 1.0f
.line 1443
.local v4, "alpha":F
iget-object v7, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;
# getter for: Lim/tpelyyftgw/ui/components/ThemeEditorView;->windowLayoutParams:Landroid/view/WindowManager$LayoutParams;
invoke-static {v7}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$5300(Lim/tpelyyftgw/ui/components/ThemeEditorView;)Landroid/view/WindowManager$LayoutParams;
move-result-object v7
iget v7, v7, Landroid/view/WindowManager$LayoutParams;->x:I
const/high16 v8, 0x3f000000 # 0.5f
const/high16 v9, 0x3f800000 # 1.0f
if-gez v7, :cond_181
.line 1444
iget-object v7, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;
# getter for: Lim/tpelyyftgw/ui/components/ThemeEditorView;->windowLayoutParams:Landroid/view/WindowManager$LayoutParams;
invoke-static {v7}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$5300(Lim/tpelyyftgw/ui/components/ThemeEditorView;)Landroid/view/WindowManager$LayoutParams;
move-result-object v7
iget v7, v7, Landroid/view/WindowManager$LayoutParams;->x:I
int-to-float v7, v7
int-to-float v10, v6
div-float/2addr v7, v10
mul-float v7, v7, v8
add-float v4, v7, v9
goto :goto_1b5
.line 1445
:cond_181
iget-object v7, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;
# getter for: Lim/tpelyyftgw/ui/components/ThemeEditorView;->windowLayoutParams:Landroid/view/WindowManager$LayoutParams;
invoke-static {v7}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$5300(Lim/tpelyyftgw/ui/components/ThemeEditorView;)Landroid/view/WindowManager$LayoutParams;
move-result-object v7
iget v7, v7, Landroid/view/WindowManager$LayoutParams;->x:I
sget-object v10, Lim/tpelyyftgw/messenger/AndroidUtilities;->displaySize:Landroid/graphics/Point;
iget v10, v10, Landroid/graphics/Point;->x:I
iget-object v11, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;
# getter for: Lim/tpelyyftgw/ui/components/ThemeEditorView;->windowLayoutParams:Landroid/view/WindowManager$LayoutParams;
invoke-static {v11}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$5300(Lim/tpelyyftgw/ui/components/ThemeEditorView;)Landroid/view/WindowManager$LayoutParams;
move-result-object v11
iget v11, v11, Landroid/view/WindowManager$LayoutParams;->width:I
sub-int/2addr v10, v11
if-le v7, v10, :cond_1b5
.line 1446
iget-object v7, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;
# getter for: Lim/tpelyyftgw/ui/components/ThemeEditorView;->windowLayoutParams:Landroid/view/WindowManager$LayoutParams;
invoke-static {v7}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$5300(Lim/tpelyyftgw/ui/components/ThemeEditorView;)Landroid/view/WindowManager$LayoutParams;
move-result-object v7
iget v7, v7, Landroid/view/WindowManager$LayoutParams;->x:I
sget-object v10, Lim/tpelyyftgw/messenger/AndroidUtilities;->displaySize:Landroid/graphics/Point;
iget v10, v10, Landroid/graphics/Point;->x:I
sub-int/2addr v7, v10
iget-object v10, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;
# getter for: Lim/tpelyyftgw/ui/components/ThemeEditorView;->windowLayoutParams:Landroid/view/WindowManager$LayoutParams;
invoke-static {v10}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$5300(Lim/tpelyyftgw/ui/components/ThemeEditorView;)Landroid/view/WindowManager$LayoutParams;
move-result-object v10
iget v10, v10, Landroid/view/WindowManager$LayoutParams;->width:I
add-int/2addr v7, v10
int-to-float v7, v7
int-to-float v10, v6
div-float/2addr v7, v10
mul-float v7, v7, v8
sub-float v4, v9, v7
.line 1448
:cond_1b5
:goto_1b5
iget-object v7, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;
# getter for: Lim/tpelyyftgw/ui/components/ThemeEditorView;->windowView:Landroid/widget/FrameLayout;
invoke-static {v7}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$5500(Lim/tpelyyftgw/ui/components/ThemeEditorView;)Landroid/widget/FrameLayout;
move-result-object v7
invoke-virtual {v7}, Landroid/widget/FrameLayout;->getAlpha()F
move-result v7
cmpl-float v7, v7, v4
if-eqz v7, :cond_1cc
.line 1449
iget-object v7, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;
# getter for: Lim/tpelyyftgw/ui/components/ThemeEditorView;->windowView:Landroid/widget/FrameLayout;
invoke-static {v7}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$5500(Lim/tpelyyftgw/ui/components/ThemeEditorView;)Landroid/widget/FrameLayout;
move-result-object v7
invoke-virtual {v7, v4}, Landroid/widget/FrameLayout;->setAlpha(F)V
.line 1451
:cond_1cc
const/4 v6, 0x0
.line 1452
iget-object v7, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;
# getter for: Lim/tpelyyftgw/ui/components/ThemeEditorView;->windowLayoutParams:Landroid/view/WindowManager$LayoutParams;
invoke-static {v7}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$5300(Lim/tpelyyftgw/ui/components/ThemeEditorView;)Landroid/view/WindowManager$LayoutParams;
move-result-object v7
iget v7, v7, Landroid/view/WindowManager$LayoutParams;->y:I
neg-int v8, v6
if-ge v7, v8, :cond_1e2
.line 1453
iget-object v7, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;
# getter for: Lim/tpelyyftgw/ui/components/ThemeEditorView;->windowLayoutParams:Landroid/view/WindowManager$LayoutParams;
invoke-static {v7}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$5300(Lim/tpelyyftgw/ui/components/ThemeEditorView;)Landroid/view/WindowManager$LayoutParams;
move-result-object v7
neg-int v8, v6
iput v8, v7, Landroid/view/WindowManager$LayoutParams;->y:I
goto :goto_210
.line 1454
:cond_1e2
iget-object v7, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;
# getter for: Lim/tpelyyftgw/ui/components/ThemeEditorView;->windowLayoutParams:Landroid/view/WindowManager$LayoutParams;
invoke-static {v7}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$5300(Lim/tpelyyftgw/ui/components/ThemeEditorView;)Landroid/view/WindowManager$LayoutParams;
move-result-object v7
iget v7, v7, Landroid/view/WindowManager$LayoutParams;->y:I
sget-object v8, Lim/tpelyyftgw/messenger/AndroidUtilities;->displaySize:Landroid/graphics/Point;
iget v8, v8, Landroid/graphics/Point;->y:I
iget-object v9, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;
# getter for: Lim/tpelyyftgw/ui/components/ThemeEditorView;->windowLayoutParams:Landroid/view/WindowManager$LayoutParams;
invoke-static {v9}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$5300(Lim/tpelyyftgw/ui/components/ThemeEditorView;)Landroid/view/WindowManager$LayoutParams;
move-result-object v9
iget v9, v9, Landroid/view/WindowManager$LayoutParams;->height:I
sub-int/2addr v8, v9
add-int/2addr v8, v6
if-le v7, v8, :cond_210
.line 1455
iget-object v7, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;
# getter for: Lim/tpelyyftgw/ui/components/ThemeEditorView;->windowLayoutParams:Landroid/view/WindowManager$LayoutParams;
invoke-static {v7}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$5300(Lim/tpelyyftgw/ui/components/ThemeEditorView;)Landroid/view/WindowManager$LayoutParams;
move-result-object v7
sget-object v8, Lim/tpelyyftgw/messenger/AndroidUtilities;->displaySize:Landroid/graphics/Point;
iget v8, v8, Landroid/graphics/Point;->y:I
iget-object v9, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;
# getter for: Lim/tpelyyftgw/ui/components/ThemeEditorView;->windowLayoutParams:Landroid/view/WindowManager$LayoutParams;
invoke-static {v9}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$5300(Lim/tpelyyftgw/ui/components/ThemeEditorView;)Landroid/view/WindowManager$LayoutParams;
move-result-object v9
iget v9, v9, Landroid/view/WindowManager$LayoutParams;->height:I
sub-int/2addr v8, v9
add-int/2addr v8, v6
iput v8, v7, Landroid/view/WindowManager$LayoutParams;->y:I
.line 1457
:cond_210
:goto_210
iget-object v7, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;
# getter for: Lim/tpelyyftgw/ui/components/ThemeEditorView;->windowManager:Landroid/view/WindowManager;
invoke-static {v7}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$5600(Lim/tpelyyftgw/ui/components/ThemeEditorView;)Landroid/view/WindowManager;
move-result-object v7
iget-object v8, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;
# getter for: Lim/tpelyyftgw/ui/components/ThemeEditorView;->windowView:Landroid/widget/FrameLayout;
invoke-static {v8}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$5500(Lim/tpelyyftgw/ui/components/ThemeEditorView;)Landroid/widget/FrameLayout;
move-result-object v8
iget-object v9, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;
# getter for: Lim/tpelyyftgw/ui/components/ThemeEditorView;->windowLayoutParams:Landroid/view/WindowManager$LayoutParams;
invoke-static {v9}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$5300(Lim/tpelyyftgw/ui/components/ThemeEditorView;)Landroid/view/WindowManager$LayoutParams;
move-result-object v9
invoke-interface {v7, v8, v9}, Landroid/view/WindowManager;->updateViewLayout(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 1458
iput v0, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->startX:F
.line 1459
iput v1, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->startY:F
.end local v2 # "dx":F
.end local v3 # "dy":F
.end local v4 # "alpha":F
.end local v6 # "maxDiff":I
goto :goto_238
.line 1460
:cond_22a
invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I
move-result v2
if-ne v2, v5, :cond_238
.line 1461
iput-boolean v3, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->dragging:Z
.line 1462
iget-object v2, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$1;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;
# invokes: Lim/tpelyyftgw/ui/components/ThemeEditorView;->animateToBoundsMaybe()V
invoke-static {v2}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$5700(Lim/tpelyyftgw/ui/components/ThemeEditorView;)V
nop
.line 1465
:cond_238
:goto_238
return v5
.end method