204 lines
5.4 KiB
Smali
204 lines
5.4 KiB
Smali
.class public Lcom/google/android/material/dialog/MaterialDialogs;
|
|
.super Ljava/lang/Object;
|
|
.source "MaterialDialogs.java"
|
|
|
|
|
|
# annotations
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method private constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static getDialogBackgroundInsets(Landroid/content/Context;II)Landroid/graphics/Rect;
|
|
.locals 7
|
|
.param p0 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/AttrRes;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
sget-object v2, Lcom/google/android/material/R$styleable;->MaterialAlertDialog:[I
|
|
|
|
const/4 v0, 0x0
|
|
|
|
new-array v5, v0, [I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
move-object v0, p0
|
|
|
|
move v3, p1
|
|
|
|
move v4, p2
|
|
|
|
.line 2
|
|
invoke-static/range {v0 .. v5}, Lcom/google/android/material/internal/ThemeEnforcement;->obtainStyledAttributes(Landroid/content/Context;Landroid/util/AttributeSet;[III[I)Landroid/content/res/TypedArray;
|
|
|
|
move-result-object p1
|
|
|
|
.line 3
|
|
sget p2, Lcom/google/android/material/R$styleable;->MaterialAlertDialog_backgroundInsetStart:I
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
sget v1, Lcom/google/android/material/R$dimen;->mtrl_alert_dialog_background_inset_start:I
|
|
|
|
.line 5
|
|
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
move-result v0
|
|
|
|
.line 6
|
|
invoke-virtual {p1, p2, v0}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
|
|
|
move-result p2
|
|
|
|
.line 7
|
|
sget v0, Lcom/google/android/material/R$styleable;->MaterialAlertDialog_backgroundInsetTop:I
|
|
|
|
.line 8
|
|
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v1
|
|
|
|
sget v2, Lcom/google/android/material/R$dimen;->mtrl_alert_dialog_background_inset_top:I
|
|
|
|
.line 9
|
|
invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
move-result v1
|
|
|
|
.line 10
|
|
invoke-virtual {p1, v0, v1}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
|
|
|
move-result v0
|
|
|
|
.line 11
|
|
sget v1, Lcom/google/android/material/R$styleable;->MaterialAlertDialog_backgroundInsetEnd:I
|
|
|
|
.line 12
|
|
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v2
|
|
|
|
sget v3, Lcom/google/android/material/R$dimen;->mtrl_alert_dialog_background_inset_end:I
|
|
|
|
.line 13
|
|
invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
move-result v2
|
|
|
|
.line 14
|
|
invoke-virtual {p1, v1, v2}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
|
|
|
move-result v1
|
|
|
|
.line 15
|
|
sget v2, Lcom/google/android/material/R$styleable;->MaterialAlertDialog_backgroundInsetBottom:I
|
|
|
|
.line 16
|
|
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v3
|
|
|
|
sget v4, Lcom/google/android/material/R$dimen;->mtrl_alert_dialog_background_inset_bottom:I
|
|
|
|
.line 17
|
|
invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
move-result v3
|
|
|
|
.line 18
|
|
invoke-virtual {p1, v2, v3}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
|
|
|
move-result v2
|
|
|
|
.line 19
|
|
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
.line 20
|
|
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Landroid/content/res/Configuration;->getLayoutDirection()I
|
|
|
|
move-result p0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
if-ne p0, p1, :cond_0
|
|
|
|
move v6, v1
|
|
|
|
move v1, p2
|
|
|
|
move p2, v6
|
|
|
|
.line 21
|
|
:cond_0
|
|
new-instance p0, Landroid/graphics/Rect;
|
|
|
|
invoke-direct {p0, p2, v0, v1, v2}, Landroid/graphics/Rect;-><init>(IIII)V
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static insetDrawable(Landroid/graphics/drawable/Drawable;Landroid/graphics/Rect;)Landroid/graphics/drawable/InsetDrawable;
|
|
.locals 7
|
|
.param p0 # Landroid/graphics/drawable/Drawable;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Landroid/graphics/Rect;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v6, Landroid/graphics/drawable/InsetDrawable;
|
|
|
|
iget v2, p1, Landroid/graphics/Rect;->left:I
|
|
|
|
iget v3, p1, Landroid/graphics/Rect;->top:I
|
|
|
|
iget v4, p1, Landroid/graphics/Rect;->right:I
|
|
|
|
iget v5, p1, Landroid/graphics/Rect;->bottom:I
|
|
|
|
move-object v0, v6
|
|
|
|
move-object v1, p0
|
|
|
|
invoke-direct/range {v0 .. v5}, Landroid/graphics/drawable/InsetDrawable;-><init>(Landroid/graphics/drawable/Drawable;IIII)V
|
|
|
|
return-object v6
|
|
.end method
|