apkfuckery/com.discord/smali/androidx/appcompat/widget/DialogTitle.smali

102 lines
2.7 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class public Landroidx/appcompat/widget/DialogTitle;
2019-11-10 14:21:47 +00:00
.super Landroidx/appcompat/widget/AppCompatTextView;
2019-07-24 11:27:29 +00:00
.source "DialogTitle.java"
# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.locals 0
2019-11-10 14:21:47 +00:00
invoke-direct {p0, p1}, Landroidx/appcompat/widget/AppCompatTextView;-><init>(Landroid/content/Context;)V
2019-07-24 11:27:29 +00:00
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.locals 0
2019-11-10 14:21:47 +00:00
invoke-direct {p0, p1, p2}, Landroidx/appcompat/widget/AppCompatTextView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
2019-07-24 11:27:29 +00:00
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
.locals 0
2019-11-10 14:21:47 +00:00
invoke-direct {p0, p1, p2, p3}, Landroidx/appcompat/widget/AppCompatTextView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
2019-07-24 11:27:29 +00:00
return-void
.end method
# virtual methods
.method protected onMeasure(II)V
.locals 6
2019-11-10 14:21:47 +00:00
invoke-super {p0, p1, p2}, Landroidx/appcompat/widget/AppCompatTextView;->onMeasure(II)V
2019-07-24 11:27:29 +00:00
invoke-virtual {p0}, Landroidx/appcompat/widget/DialogTitle;->getLayout()Landroid/text/Layout;
move-result-object v0
if-eqz v0, :cond_1
invoke-virtual {v0}, Landroid/text/Layout;->getLineCount()I
move-result v1
if-lez v1, :cond_1
add-int/lit8 v1, v1, -0x1
invoke-virtual {v0, v1}, Landroid/text/Layout;->getEllipsisCount(I)I
move-result v0
if-lez v0, :cond_1
const/4 v0, 0x0
invoke-virtual {p0, v0}, Landroidx/appcompat/widget/DialogTitle;->setSingleLine(Z)V
const/4 v1, 0x2
invoke-virtual {p0, v1}, Landroidx/appcompat/widget/DialogTitle;->setMaxLines(I)V
invoke-virtual {p0}, Landroidx/appcompat/widget/DialogTitle;->getContext()Landroid/content/Context;
move-result-object v1
const/4 v2, 0x0
sget-object v3, Landroidx/appcompat/R$styleable;->TextAppearance:[I
const v4, 0x1010041
const v5, 0x1030044
invoke-virtual {v1, v2, v3, v4, v5}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
move-result-object v1
sget v2, Landroidx/appcompat/R$styleable;->TextAppearance_android_textSize:I
invoke-virtual {v1, v2, v0}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
move-result v2
if-eqz v2, :cond_0
int-to-float v2, v2
invoke-virtual {p0, v0, v2}, Landroidx/appcompat/widget/DialogTitle;->setTextSize(IF)V
:cond_0
invoke-virtual {v1}, Landroid/content/res/TypedArray;->recycle()V
2019-11-10 14:21:47 +00:00
invoke-super {p0, p1, p2}, Landroidx/appcompat/widget/AppCompatTextView;->onMeasure(II)V
2019-07-24 11:27:29 +00:00
:cond_1
return-void
.end method