2019-07-24 11:27:29 +00:00
|
|
|
.class public Landroidx/appcompat/widget/AlertDialogLayout;
|
|
|
|
.super Landroidx/appcompat/widget/LinearLayoutCompat;
|
|
|
|
.source "AlertDialogLayout.java"
|
|
|
|
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
# annotations
|
|
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
|
|
value = {
|
|
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
|
|
.locals 0
|
2019-12-06 03:29:40 +00:00
|
|
|
.param p1 # Landroid/content/Context;
|
|
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Landroidx/appcompat/widget/LinearLayoutCompat;-><init>(Landroid/content/Context;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
.locals 0
|
2019-12-06 03:29:40 +00:00
|
|
|
.param p1 # Landroid/content/Context;
|
|
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
|
|
|
.param p2 # Landroid/util/AttributeSet;
|
|
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2}, Landroidx/appcompat/widget/LinearLayoutCompat;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private forceUniformWidth(II)V
|
|
|
|
.locals 10
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getMeasuredWidth()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/high16 v1, 0x40000000 # 2.0f
|
|
|
|
|
|
|
|
invoke-static {v0, v1}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-ge v1, p1, :cond_1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0, v1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Landroid/view/View;->getVisibility()I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
const/16 v4, 0x8
|
|
|
|
|
|
|
|
if-eq v2, v4, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
move-object v8, v2
|
|
|
|
|
|
|
|
check-cast v8, Landroidx/appcompat/widget/LinearLayoutCompat$LayoutParams;
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget v2, v8, Landroid/view/ViewGroup$MarginLayoutParams;->width:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v4, -0x1
|
|
|
|
|
|
|
|
if-ne v2, v4, :cond_0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget v9, v8, Landroid/view/ViewGroup$MarginLayoutParams;->height:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v3}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iput v2, v8, Landroid/view/ViewGroup$MarginLayoutParams;->height:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
move-object v2, p0
|
|
|
|
|
|
|
|
move v4, v0
|
|
|
|
|
|
|
|
move v6, p2
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual/range {v2 .. v7}, Landroid/view/ViewGroup;->measureChildWithMargins(Landroid/view/View;IIII)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iput v9, v8, Landroid/view/ViewGroup$MarginLayoutParams;->height:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public static resolveMinimumHeight(Landroid/view/View;)I
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 3
|
|
|
|
|
|
|
|
invoke-static {p0}, Landroidx/core/view/ViewCompat;->getMinimumHeight(Landroid/view/View;)I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
instance-of v0, p0, Landroid/view/ViewGroup;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
check-cast p0, Landroid/view/ViewGroup;
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
if-ne v0, v2, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {p0, v1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-static {p0}, Landroidx/appcompat/widget/AlertDialogLayout;->resolveMinimumHeight(Landroid/view/View;)I
|
|
|
|
|
|
|
|
move-result p0
|
|
|
|
|
|
|
|
return p0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_1
|
|
|
|
return v1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private setChildFrame(Landroid/view/View;IIII)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
add-int/2addr p4, p2
|
|
|
|
|
|
|
|
add-int/2addr p5, p3
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2, p3, p4, p5}, Landroid/view/View;->layout(IIII)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private tryOnMeasure(II)Z
|
|
|
|
.locals 16
|
|
|
|
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
|
|
|
|
move/from16 v1, p1
|
|
|
|
|
|
|
|
move/from16 v2, p2
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getChildCount()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
move-object v6, v4
|
|
|
|
|
|
|
|
move-object v7, v6
|
|
|
|
|
|
|
|
move-object v8, v7
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
const/16 v9, 0x8
|
|
|
|
|
|
|
|
if-ge v4, v3, :cond_6
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {v0, v4}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v10
|
|
|
|
|
|
|
|
invoke-virtual {v10}, Landroid/view/View;->getVisibility()I
|
|
|
|
|
|
|
|
move-result v11
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-ne v11, v9, :cond_0
|
|
|
|
|
|
|
|
goto :goto_2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_0
|
2019-07-24 11:27:29 +00:00
|
|
|
invoke-virtual {v10}, Landroid/view/View;->getId()I
|
|
|
|
|
|
|
|
move-result v9
|
|
|
|
|
|
|
|
sget v11, Landroidx/appcompat/R$id;->topPanel:I
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-ne v9, v11, :cond_1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-object v6, v10
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_1
|
2019-07-24 11:27:29 +00:00
|
|
|
sget v11, Landroidx/appcompat/R$id;->buttonPanel:I
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-ne v9, v11, :cond_2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-object v7, v10
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_2
|
2019-07-24 11:27:29 +00:00
|
|
|
sget v11, Landroidx/appcompat/R$id;->contentPanel:I
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eq v9, v11, :cond_4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
sget v11, Landroidx/appcompat/R$id;->customPanel:I
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-ne v9, v11, :cond_3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_3
|
2019-07-24 11:27:29 +00:00
|
|
|
return v5
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_4
|
2019-07-24 11:27:29 +00:00
|
|
|
:goto_1
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v8, :cond_5
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return v5
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_5
|
2019-07-24 11:27:29 +00:00
|
|
|
move-object v8, v10
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
invoke-static/range {p2 .. p2}, Landroid/view/View$MeasureSpec;->getMode(I)I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
invoke-static/range {p2 .. p2}, Landroid/view/View$MeasureSpec;->getSize(I)I
|
|
|
|
|
|
|
|
move-result v10
|
|
|
|
|
|
|
|
invoke-static/range {p1 .. p1}, Landroid/view/View$MeasureSpec;->getMode(I)I
|
|
|
|
|
|
|
|
move-result v11
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getPaddingTop()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v12
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getPaddingBottom()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v13
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
add-int/2addr v13, v12
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-eqz v6, :cond_7
|
|
|
|
|
|
|
|
invoke-virtual {v6, v1, v5}, Landroid/view/View;->measure(II)V
|
|
|
|
|
|
|
|
invoke-virtual {v6}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result v12
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
add-int/2addr v13, v12
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v6}, Landroid/view/View;->getMeasuredState()I
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
invoke-static {v5, v6}, Landroid/view/View;->combineMeasuredStates(II)I
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
if-eqz v7, :cond_8
|
|
|
|
|
|
|
|
invoke-virtual {v7, v1, v5}, Landroid/view/View;->measure(II)V
|
|
|
|
|
|
|
|
invoke-static {v7}, Landroidx/appcompat/widget/AlertDialogLayout;->resolveMinimumHeight(Landroid/view/View;)I
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result v12
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v7}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
|
|
|
|
move-result v14
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
sub-int/2addr v14, v12
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
add-int/2addr v13, v12
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v7}, Landroid/view/View;->getMeasuredState()I
|
|
|
|
|
|
|
|
move-result v15
|
|
|
|
|
|
|
|
invoke-static {v6, v15}, Landroid/view/View;->combineMeasuredStates(II)I
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_8
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 v12, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v14, 0x0
|
|
|
|
|
|
|
|
:goto_4
|
|
|
|
if-eqz v8, :cond_a
|
|
|
|
|
|
|
|
if-nez v4, :cond_9
|
|
|
|
|
|
|
|
const/4 v15, 0x0
|
|
|
|
|
|
|
|
goto :goto_5
|
|
|
|
|
|
|
|
:cond_9
|
2019-12-06 03:29:40 +00:00
|
|
|
sub-int v15, v10, v13
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {v5, v15}, Ljava/lang/Math;->max(II)I
|
|
|
|
|
|
|
|
move-result v15
|
|
|
|
|
|
|
|
invoke-static {v15, v4}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
|
|
|
|
move-result v15
|
|
|
|
|
|
|
|
:goto_5
|
|
|
|
invoke-virtual {v8, v1, v15}, Landroid/view/View;->measure(II)V
|
|
|
|
|
|
|
|
invoke-virtual {v8}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
|
|
|
|
move-result v15
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
add-int/2addr v13, v15
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v8}, Landroid/view/View;->getMeasuredState()I
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
invoke-static {v6, v5}, Landroid/view/View;->combineMeasuredStates(II)I
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
goto :goto_6
|
|
|
|
|
|
|
|
:cond_a
|
|
|
|
const/4 v15, 0x0
|
|
|
|
|
|
|
|
:goto_6
|
2019-12-06 03:29:40 +00:00
|
|
|
sub-int/2addr v10, v13
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/high16 v5, 0x40000000 # 2.0f
|
|
|
|
|
|
|
|
if-eqz v7, :cond_c
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
sub-int/2addr v13, v12
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {v10, v14}, Ljava/lang/Math;->min(II)I
|
|
|
|
|
|
|
|
move-result v14
|
|
|
|
|
|
|
|
if-lez v14, :cond_b
|
|
|
|
|
|
|
|
sub-int/2addr v10, v14
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
add-int/2addr v12, v14
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_b
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-static {v12, v5}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result v12
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {v7, v1, v12}, Landroid/view/View;->measure(II)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v7}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result v12
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
add-int/2addr v13, v12
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v7}, Landroid/view/View;->getMeasuredState()I
|
|
|
|
|
|
|
|
move-result v7
|
|
|
|
|
|
|
|
invoke-static {v6, v7}, Landroid/view/View;->combineMeasuredStates(II)I
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
:cond_c
|
|
|
|
if-eqz v8, :cond_d
|
|
|
|
|
|
|
|
if-lez v10, :cond_d
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
sub-int/2addr v13, v15
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
add-int/2addr v15, v10
|
|
|
|
|
|
|
|
invoke-static {v15, v4}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
invoke-virtual {v8, v1, v4}, Landroid/view/View;->measure(II)V
|
|
|
|
|
|
|
|
invoke-virtual {v8}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
add-int/2addr v13, v4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v8}, Landroid/view/View;->getMeasuredState()I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
invoke-static {v6, v4}, Landroid/view/View;->combineMeasuredStates(II)I
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
:cond_d
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
:goto_7
|
|
|
|
if-ge v4, v3, :cond_f
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {v0, v4}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v8
|
|
|
|
|
|
|
|
invoke-virtual {v8}, Landroid/view/View;->getVisibility()I
|
|
|
|
|
|
|
|
move-result v10
|
|
|
|
|
|
|
|
if-eq v10, v9, :cond_e
|
|
|
|
|
|
|
|
invoke-virtual {v8}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
|
|
|
|
move-result v8
|
|
|
|
|
|
|
|
invoke-static {v7, v8}, Ljava/lang/Math;->max(II)I
|
|
|
|
|
|
|
|
move-result v7
|
|
|
|
|
|
|
|
:cond_e
|
|
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
|
|
|
|
goto :goto_7
|
|
|
|
|
|
|
|
:cond_f
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getPaddingLeft()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getPaddingRight()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v8
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
add-int/2addr v8, v4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
add-int/2addr v8, v7
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-static {v8, v1, v6}, Landroid/view/View;->resolveSizeAndState(III)I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-static {v13, v2, v4}, Landroid/view/View;->resolveSizeAndState(III)I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {v0, v1, v4}, Landroid/view/ViewGroup;->setMeasuredDimension(II)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-eq v11, v5, :cond_10
|
|
|
|
|
|
|
|
invoke-direct {v0, v3, v2}, Landroidx/appcompat/widget/AlertDialogLayout;->forceUniformWidth(II)V
|
|
|
|
|
|
|
|
:cond_10
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
return v1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public onLayout(ZIIII)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 17
|
|
|
|
|
|
|
|
move-object/from16 v6, p0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getPaddingLeft()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v7
|
|
|
|
|
|
|
|
sub-int v0, p4, p2
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getPaddingRight()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
sub-int v8, v0, v1
|
|
|
|
|
|
|
|
sub-int/2addr v0, v7
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getPaddingRight()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
sub-int v9, v0, v1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getMeasuredHeight()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getChildCount()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v10
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/appcompat/widget/LinearLayoutCompat;->getGravity()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
and-int/lit8 v2, v1, 0x70
|
|
|
|
|
|
|
|
const v3, 0x800007
|
|
|
|
|
|
|
|
and-int v11, v1, v3
|
|
|
|
|
|
|
|
const/16 v1, 0x10
|
|
|
|
|
|
|
|
if-eq v2, v1, :cond_1
|
|
|
|
|
|
|
|
const/16 v1, 0x50
|
|
|
|
|
|
|
|
if-eq v2, v1, :cond_0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getPaddingTop()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getPaddingTop()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
add-int v1, v1, p5
|
|
|
|
|
|
|
|
sub-int v1, v1, p3
|
|
|
|
|
|
|
|
sub-int v0, v1, v0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getPaddingTop()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
sub-int v2, p5, p3
|
|
|
|
|
|
|
|
sub-int/2addr v2, v0
|
|
|
|
|
|
|
|
div-int/lit8 v2, v2, 0x2
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
add-int v0, v2, v1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:goto_0
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/appcompat/widget/LinearLayoutCompat;->getDividerDrawable()Landroid/graphics/drawable/Drawable;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
|
|
|
|
const/4 v12, 0x0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
invoke-virtual {v1}, Landroid/graphics/drawable/Drawable;->getIntrinsicHeight()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
move v12, v1
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
const/4 v13, 0x0
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
if-ge v13, v10, :cond_8
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {v6, v13}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_7
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/view/View;->getVisibility()I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
const/16 v3, 0x8
|
|
|
|
|
|
|
|
if-eq v2, v3, :cond_7
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
|
|
|
|
move-result v14
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
move-object v15, v2
|
|
|
|
|
|
|
|
check-cast v15, Landroidx/appcompat/widget/LinearLayoutCompat$LayoutParams;
|
|
|
|
|
|
|
|
iget v2, v15, Landroidx/appcompat/widget/LinearLayoutCompat$LayoutParams;->gravity:I
|
|
|
|
|
|
|
|
if-gez v2, :cond_3
|
|
|
|
|
|
|
|
move v2, v11
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
invoke-static/range {p0 .. p0}, Landroidx/core/view/ViewCompat;->getLayoutDirection(Landroid/view/View;)I
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
invoke-static {v2, v3}, Landroidx/core/view/GravityCompat;->getAbsoluteGravity(II)I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
and-int/lit8 v2, v2, 0x7
|
|
|
|
|
|
|
|
const/4 v3, 0x1
|
|
|
|
|
|
|
|
if-eq v2, v3, :cond_5
|
|
|
|
|
|
|
|
const/4 v3, 0x5
|
|
|
|
|
|
|
|
if-eq v2, v3, :cond_4
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget v2, v15, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
add-int/2addr v2, v7
|
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
sub-int v2, v8, v4
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget v3, v15, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
sub-int v2, v9, v4
|
|
|
|
|
|
|
|
div-int/lit8 v2, v2, 0x2
|
|
|
|
|
|
|
|
add-int/2addr v2, v7
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget v3, v15, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
add-int/2addr v2, v3
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget v3, v15, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:goto_3
|
|
|
|
sub-int/2addr v2, v3
|
|
|
|
|
|
|
|
:goto_4
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {v6, v13}, Landroidx/appcompat/widget/LinearLayoutCompat;->hasDividerBeforeChildAt(I)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
if-eqz v3, :cond_6
|
|
|
|
|
|
|
|
add-int/2addr v0, v12
|
|
|
|
|
|
|
|
:cond_6
|
2019-12-06 03:29:40 +00:00
|
|
|
iget v3, v15, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
add-int v16, v0, v3
|
|
|
|
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
|
|
|
|
move/from16 v3, v16
|
|
|
|
|
|
|
|
move v5, v14
|
|
|
|
|
|
|
|
invoke-direct/range {v0 .. v5}, Landroidx/appcompat/widget/AlertDialogLayout;->setChildFrame(Landroid/view/View;IIII)V
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget v0, v15, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
add-int/2addr v14, v0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
add-int v14, v14, v16
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move v0, v14
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_7
|
|
|
|
add-int/lit8 v13, v13, 0x1
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public onMeasure(II)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2}, Landroidx/appcompat/widget/AlertDialogLayout;->tryOnMeasure(II)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
invoke-super {p0, p1, p2}, Landroidx/appcompat/widget/LinearLayoutCompat;->onMeasure(II)V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
.end method
|