SharingLocationsAlert$1.smali
.class Lim/tpelyyftgw/ui/components/SharingLocationsAlert$1;
.super Landroid/widget/FrameLayout;
.source "SharingLocationsAlert.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lim/tpelyyftgw/ui/components/SharingLocationsAlert;-><init>(Landroid/content/Context;Lim/tpelyyftgw/ui/components/SharingLocationsAlert$SharingLocationsAlertDelegate;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lim/tpelyyftgw/ui/components/SharingLocationsAlert;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method constructor <init>(Lim/tpelyyftgw/ui/components/SharingLocationsAlert;Landroid/content/Context;)V
.registers 3
.param p1, "this$0" # Lim/tpelyyftgw/ui/components/SharingLocationsAlert;
.param p2, "arg0" # Landroid/content/Context;
.line 63
iput-object p1, p0, Lim/tpelyyftgw/ui/components/SharingLocationsAlert$1;->this$0:Lim/tpelyyftgw/ui/components/SharingLocationsAlert;
invoke-direct {p0, p2}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V
return-void
.end method
# virtual methods
.method protected onDraw(Landroid/graphics/Canvas;)V
.registers 7
.param p1, "canvas" # Landroid/graphics/Canvas;
.line 122
iget-object v0, p0, Lim/tpelyyftgw/ui/components/SharingLocationsAlert$1;->this$0:Lim/tpelyyftgw/ui/components/SharingLocationsAlert;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/SharingLocationsAlert;->access$500(Lim/tpelyyftgw/ui/components/SharingLocationsAlert;)Landroid/graphics/drawable/Drawable;
move-result-object v0
iget-object v1, p0, Lim/tpelyyftgw/ui/components/SharingLocationsAlert$1;->this$0:Lim/tpelyyftgw/ui/components/SharingLocationsAlert;
invoke-static {v1}, Lim/tpelyyftgw/ui/components/SharingLocationsAlert;->access$000(Lim/tpelyyftgw/ui/components/SharingLocationsAlert;)I
move-result v1
iget-object v2, p0, Lim/tpelyyftgw/ui/components/SharingLocationsAlert$1;->this$0:Lim/tpelyyftgw/ui/components/SharingLocationsAlert;
invoke-static {v2}, Lim/tpelyyftgw/ui/components/SharingLocationsAlert;->access$400(Lim/tpelyyftgw/ui/components/SharingLocationsAlert;)I
move-result v2
sub-int/2addr v1, v2
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/SharingLocationsAlert$1;->getMeasuredWidth()I
move-result v2
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/SharingLocationsAlert$1;->getMeasuredHeight()I
move-result v3
const/4 v4, 0x0
invoke-virtual {v0, v4, v1, v2, v3}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V
.line 123
iget-object v0, p0, Lim/tpelyyftgw/ui/components/SharingLocationsAlert$1;->this$0:Lim/tpelyyftgw/ui/components/SharingLocationsAlert;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/SharingLocationsAlert;->access$500(Lim/tpelyyftgw/ui/components/SharingLocationsAlert;)Landroid/graphics/drawable/Drawable;
move-result-object v0
invoke-virtual {v0, p1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V
.line 124
return-void
.end method
.method public onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
.registers 4
.param p1, "ev" # Landroid/view/MotionEvent;
.line 67
invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I
move-result v0
if-nez v0, :cond_24
iget-object v0, p0, Lim/tpelyyftgw/ui/components/SharingLocationsAlert$1;->this$0:Lim/tpelyyftgw/ui/components/SharingLocationsAlert;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/SharingLocationsAlert;->access$000(Lim/tpelyyftgw/ui/components/SharingLocationsAlert;)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/SharingLocationsAlert$1;->this$0:Lim/tpelyyftgw/ui/components/SharingLocationsAlert;
invoke-static {v1}, Lim/tpelyyftgw/ui/components/SharingLocationsAlert;->access$000(Lim/tpelyyftgw/ui/components/SharingLocationsAlert;)I
move-result v1
int-to-float v1, v1
cmpg-float v0, v0, v1
if-gez v0, :cond_24
.line 68
iget-object v0, p0, Lim/tpelyyftgw/ui/components/SharingLocationsAlert$1;->this$0:Lim/tpelyyftgw/ui/components/SharingLocationsAlert;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/SharingLocationsAlert;->dismiss()V
.line 69
const/4 v0, 0x1
return v0
.line 71
: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 108
invoke-super/range {p0 .. p5}, Landroid/widget/FrameLayout;->onLayout(ZIIII)V
.line 109
iget-object v0, p0, Lim/tpelyyftgw/ui/components/SharingLocationsAlert$1;->this$0:Lim/tpelyyftgw/ui/components/SharingLocationsAlert;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/SharingLocationsAlert;->access$300(Lim/tpelyyftgw/ui/components/SharingLocationsAlert;)V
.line 110
return-void
.end method
.method protected onMeasure(II)V
.registers 10
.param p1, "widthMeasureSpec" # I
.param p2, "heightMeasureSpec" # I
.line 81
invoke-static {p2}, Landroid/view/View$MeasureSpec;->getSize(I)I
move-result v0
.line 82
.local v0, "height":I
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v2, 0x15
if-lt v1, v2, :cond_d
.line 83
sget v1, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I
sub-int/2addr v0, v1
.line 85
:cond_d
invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/SharingLocationsAlert$1;->getMeasuredWidth()I
move-result v1
.line 86
.local v1, "measuredWidth":I
const/high16 v2, 0x42600000 # 56.0f
invoke-static {v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v3
invoke-static {v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v2
add-int/2addr v3, v2
const/4 v2, 0x1
add-int/2addr v3, v2
invoke-static {}, Lim/tpelyyftgw/messenger/LocationController;->getLocationsCount()I
move-result v4
const/high16 v5, 0x42580000 # 54.0f
invoke-static {v5}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v5
mul-int v4, v4, v5
add-int/2addr v3, v4
.line 89
.local v3, "contentSize":I
div-int/lit8 v4, v0, 0x5
mul-int/lit8 v4, v4, 0x3
const/high16 v5, 0x41000000 # 8.0f
if-ge v3, v4, :cond_38
.line 90
invoke-static {v5}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v4
.local v4, "padding":I
goto :goto_41
.line 92
.end local v4 # "padding":I
:cond_38
div-int/lit8 v4, v0, 0x5
mul-int/lit8 v4, v4, 0x2
.line 93
.restart local v4 # "padding":I
if-ge v3, v0, :cond_41
.line 94
sub-int v6, v0, v3
sub-int/2addr v4, v6
.line 98
:cond_41
:goto_41
iget-object v6, p0, Lim/tpelyyftgw/ui/components/SharingLocationsAlert$1;->this$0:Lim/tpelyyftgw/ui/components/SharingLocationsAlert;
invoke-static {v6}, Lim/tpelyyftgw/ui/components/SharingLocationsAlert;->access$100(Lim/tpelyyftgw/ui/components/SharingLocationsAlert;)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_65
.line 99
iget-object v6, p0, Lim/tpelyyftgw/ui/components/SharingLocationsAlert$1;->this$0:Lim/tpelyyftgw/ui/components/SharingLocationsAlert;
invoke-static {v6, v2}, Lim/tpelyyftgw/ui/components/SharingLocationsAlert;->access$202(Lim/tpelyyftgw/ui/components/SharingLocationsAlert;Z)Z
.line 100
iget-object v2, p0, Lim/tpelyyftgw/ui/components/SharingLocationsAlert$1;->this$0:Lim/tpelyyftgw/ui/components/SharingLocationsAlert;
invoke-static {v2}, Lim/tpelyyftgw/ui/components/SharingLocationsAlert;->access$100(Lim/tpelyyftgw/ui/components/SharingLocationsAlert;)Lim/tpelyyftgw/ui/components/RecyclerListView;
move-result-object v2
invoke-static {v5}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v5
const/4 v6, 0x0
invoke-virtual {v2, v6, v4, v6, v5}, Lim/tpelyyftgw/ui/components/RecyclerListView;->setPadding(IIII)V
.line 101
iget-object v2, p0, Lim/tpelyyftgw/ui/components/SharingLocationsAlert$1;->this$0:Lim/tpelyyftgw/ui/components/SharingLocationsAlert;
invoke-static {v2, v6}, Lim/tpelyyftgw/ui/components/SharingLocationsAlert;->access$202(Lim/tpelyyftgw/ui/components/SharingLocationsAlert;Z)Z
.line 103
:cond_65
invoke-static {v3, v0}, Ljava/lang/Math;->min(II)I
move-result v2
const/high16 v5, 0x40000000 # 2.0f
invoke-static {v2, v5}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result v2
invoke-super {p0, p1, v2}, Landroid/widget/FrameLayout;->onMeasure(II)V
.line 104
return-void
.end method
.method public onTouchEvent(Landroid/view/MotionEvent;)Z
.registers 3
.param p1, "e" # Landroid/view/MotionEvent;
.line 76
iget-object v0, p0, Lim/tpelyyftgw/ui/components/SharingLocationsAlert$1;->this$0:Lim/tpelyyftgw/ui/components/SharingLocationsAlert;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/SharingLocationsAlert;->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 114
iget-object v0, p0, Lim/tpelyyftgw/ui/components/SharingLocationsAlert$1;->this$0:Lim/tpelyyftgw/ui/components/SharingLocationsAlert;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/SharingLocationsAlert;->access$200(Lim/tpelyyftgw/ui/components/SharingLocationsAlert;)Z
move-result v0
if-eqz v0, :cond_9
.line 115
return-void
.line 117
:cond_9
invoke-super {p0}, Landroid/widget/FrameLayout;->requestLayout()V
.line 118
return-void
.end method