181 lines
5.1 KiB
Smali
181 lines
5.1 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 public constructor <init>()V
|
|
.locals 0
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
sget p2, Lcom/google/android/material/R$styleable;->MaterialAlertDialog_backgroundInsetStart:I
|
|
|
|
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
|
|
|
|
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p1, p2, v0}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
|
|
|
move-result p2
|
|
|
|
sget v0, Lcom/google/android/material/R$styleable;->MaterialAlertDialog_backgroundInsetTop:I
|
|
|
|
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
|
|
|
|
invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
|
|
|
move-result v0
|
|
|
|
sget v1, Lcom/google/android/material/R$styleable;->MaterialAlertDialog_backgroundInsetEnd:I
|
|
|
|
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
|
|
|
|
invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {p1, v1, v2}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
|
|
|
move-result v1
|
|
|
|
sget v2, Lcom/google/android/material/R$styleable;->MaterialAlertDialog_backgroundInsetBottom:I
|
|
|
|
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
|
|
|
|
invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
move-result v3
|
|
|
|
invoke-virtual {p1, v2, v3}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
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
|
|
|
|
: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
|
|
|
|
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
|