2020-07-08 16:44:49 +00:00
|
|
|
.class public final Lcom/discord/views/VoiceUserLimitView;
|
|
|
|
.super Landroid/widget/LinearLayout;
|
|
|
|
.source "VoiceUserLimitView.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final d:Landroid/widget/TextView;
|
|
|
|
|
|
|
|
.field public final e:Landroid/widget/TextView;
|
|
|
|
|
|
|
|
.field public final f:Landroid/graphics/Paint;
|
|
|
|
|
|
|
|
.field public final g:I
|
|
|
|
|
|
|
|
.field public final h:Landroid/graphics/Path;
|
|
|
|
|
|
|
|
.field public final i:Landroid/graphics/Point;
|
|
|
|
|
|
|
|
.field public final j:Landroid/graphics/Point;
|
|
|
|
|
|
|
|
.field public final k:Landroid/graphics/Point;
|
|
|
|
|
|
|
|
.field public final l:Lkotlin/Lazy;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
.locals 2
|
|
|
|
|
2020-09-08 08:16:32 +00:00
|
|
|
if-eqz p1, :cond_0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
|
|
|
|
new-instance p1, Landroid/graphics/Paint;
|
|
|
|
|
|
|
|
const/4 p2, 0x1
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Landroid/graphics/Paint;-><init>(I)V
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/views/VoiceUserLimitView;->f:Landroid/graphics/Paint;
|
|
|
|
|
|
|
|
new-instance p1, Landroid/graphics/Path;
|
|
|
|
|
|
|
|
invoke-direct {p1}, Landroid/graphics/Path;-><init>()V
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/views/VoiceUserLimitView;->h:Landroid/graphics/Path;
|
|
|
|
|
|
|
|
new-instance p1, Landroid/graphics/Point;
|
|
|
|
|
|
|
|
invoke-direct {p1}, Landroid/graphics/Point;-><init>()V
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/views/VoiceUserLimitView;->i:Landroid/graphics/Point;
|
|
|
|
|
|
|
|
new-instance p1, Landroid/graphics/Point;
|
|
|
|
|
|
|
|
invoke-direct {p1}, Landroid/graphics/Point;-><init>()V
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/views/VoiceUserLimitView;->j:Landroid/graphics/Point;
|
|
|
|
|
|
|
|
new-instance p1, Landroid/graphics/Point;
|
|
|
|
|
|
|
|
invoke-direct {p1}, Landroid/graphics/Point;-><init>()V
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/views/VoiceUserLimitView;->k:Landroid/graphics/Point;
|
|
|
|
|
|
|
|
new-instance p1, Lf/a/n/g0;
|
|
|
|
|
|
|
|
invoke-direct {p1, p0}, Lf/a/n/g0;-><init>(Lcom/discord/views/VoiceUserLimitView;)V
|
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-static {p1}, Lf/n/a/k/a;->lazy(Lkotlin/jvm/functions/Function0;)Lkotlin/Lazy;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/views/VoiceUserLimitView;->l:Lkotlin/Lazy;
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-08-10 21:02:22 +00:00
|
|
|
const v0, 0x7f0d0148
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
invoke-static {p1, v0, p0}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
const p1, 0x7f0a0a72
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string v0, "findViewById(R.id.voice_user_limit_current)"
|
|
|
|
|
2020-09-08 08:16:32 +00:00
|
|
|
invoke-static {p1, v0}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
check-cast p1, Landroid/widget/TextView;
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/views/VoiceUserLimitView;->d:Landroid/widget/TextView;
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
const p1, 0x7f0a0a73
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string v0, "findViewById(R.id.voice_user_limit_max)"
|
|
|
|
|
2020-09-08 08:16:32 +00:00
|
|
|
invoke-static {p1, v0}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
check-cast p1, Landroid/widget/TextView;
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/views/VoiceUserLimitView;->e:Landroid/widget/TextView;
|
|
|
|
|
2020-09-08 08:16:32 +00:00
|
|
|
const/high16 p1, 0x40c00000 # 6.0f
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getResources()Landroid/content/res/Resources;
|
|
|
|
|
2020-09-08 08:16:32 +00:00
|
|
|
move-result-object v0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-08 08:16:32 +00:00
|
|
|
const-string v1, "resources"
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-08 08:16:32 +00:00
|
|
|
invoke-static {v0, v1}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-08 08:16:32 +00:00
|
|
|
invoke-virtual {v0}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-08 08:16:32 +00:00
|
|
|
move-result-object v0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-08 08:16:32 +00:00
|
|
|
invoke-static {p2, p1, v0}, Landroid/util/TypedValue;->applyDimension(IFLandroid/util/DisplayMetrics;)F
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-static {p1}, Lf/n/a/k/a;->roundToInt(F)I
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
iput p1, p0, Lcom/discord/views/VoiceUserLimitView;->g:I
|
|
|
|
|
|
|
|
iget-object p1, p0, Lcom/discord/views/VoiceUserLimitView;->f:Landroid/graphics/Paint;
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-08-04 06:02:43 +00:00
|
|
|
const v1, 0x7f040123
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
invoke-static {v0, v1}, Lcom/discord/utilities/color/ColorCompat;->getThemedColor(Landroid/content/Context;I)I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/graphics/Paint;->setColor(I)V
|
|
|
|
|
|
|
|
iget-object p1, p0, Lcom/discord/views/VoiceUserLimitView;->f:Landroid/graphics/Paint;
|
|
|
|
|
|
|
|
const/high16 v0, 0x40000000 # 2.0f
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/graphics/Paint;->setStrokeWidth(F)V
|
|
|
|
|
|
|
|
iget-object p1, p0, Lcom/discord/views/VoiceUserLimitView;->f:Landroid/graphics/Paint;
|
|
|
|
|
|
|
|
sget-object v0, Landroid/graphics/Paint$Style;->FILL_AND_STROKE:Landroid/graphics/Paint$Style;
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V
|
|
|
|
|
|
|
|
iget-object p1, p0, Lcom/discord/views/VoiceUserLimitView;->f:Landroid/graphics/Paint;
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2}, Landroid/graphics/Paint;->setAntiAlias(Z)V
|
|
|
|
|
|
|
|
iget-object p1, p0, Lcom/discord/views/VoiceUserLimitView;->h:Landroid/graphics/Path;
|
|
|
|
|
|
|
|
sget-object p2, Landroid/graphics/Path$FillType;->EVEN_ODD:Landroid/graphics/Path$FillType;
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2}, Landroid/graphics/Path;->setFillType(Landroid/graphics/Path$FillType;)V
|
|
|
|
|
|
|
|
return-void
|
2020-09-08 08:16:32 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "context"
|
|
|
|
|
|
|
|
invoke-static {p1}, Lk0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
2020-07-08 16:44:49 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getVideoCamDrawable()Landroid/graphics/drawable/Drawable;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/views/VoiceUserLimitView;->l:Lkotlin/Lazy;
|
|
|
|
|
|
|
|
invoke-interface {v0}, Lkotlin/Lazy;->getValue()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Landroid/graphics/drawable/Drawable;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final a(IIZ)V
|
|
|
|
.locals 7
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/views/VoiceUserLimitView;->d:Landroid/widget/TextView;
|
|
|
|
|
|
|
|
const-string v1, "java.lang.String.format(format, *args)"
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
const/4 v3, 0x1
|
|
|
|
|
|
|
|
const-string v4, "%02d"
|
|
|
|
|
|
|
|
const/16 v5, 0x64
|
|
|
|
|
|
|
|
if-ge p1, v5, :cond_0
|
|
|
|
|
|
|
|
new-array v6, v3, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
aput-object p1, v6, v2
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-static {v6, v3, v4, v1}, Lf/e/b/a/a;->A([Ljava/lang/Object;ILjava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-static {p1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
|
|
|
|
iget-object p1, p0, Lcom/discord/views/VoiceUserLimitView;->e:Landroid/widget/TextView;
|
|
|
|
|
|
|
|
if-ge p2, v5, :cond_1
|
|
|
|
|
|
|
|
new-array v0, v3, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
aput-object p2, v0, v2
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-static {v0, v3, v4, v1}, Lf/e/b/a/a;->A([Ljava/lang/Object;ILjava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-static {p2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
invoke-virtual {p1, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
if-eqz p3, :cond_2
|
|
|
|
|
|
|
|
iget-object p2, p0, Lcom/discord/views/VoiceUserLimitView;->d:Landroid/widget/TextView;
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/VoiceUserLimitView;->getVideoCamDrawable()Landroid/graphics/drawable/Drawable;
|
|
|
|
|
|
|
|
move-result-object p3
|
|
|
|
|
|
|
|
invoke-virtual {p2, p3, p1, p1, p1}, Landroid/widget/TextView;->setCompoundDrawablesWithIntrinsicBounds(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
iget-object p2, p0, Lcom/discord/views/VoiceUserLimitView;->d:Landroid/widget/TextView;
|
|
|
|
|
|
|
|
invoke-virtual {p2, p1, p1, p1, p1}, Landroid/widget/TextView;->setCompoundDrawablesWithIntrinsicBounds(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public dispatchDraw(Landroid/graphics/Canvas;)V
|
|
|
|
.locals 4
|
|
|
|
|
|
|
|
invoke-super {p0, p1}, Landroid/widget/LinearLayout;->dispatchDraw(Landroid/graphics/Canvas;)V
|
|
|
|
|
2020-09-08 08:16:32 +00:00
|
|
|
if-eqz p1, :cond_0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getHeight()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/views/VoiceUserLimitView;->d:Landroid/widget/TextView;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/widget/TextView;->getWidth()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
iget-object v2, p0, Lcom/discord/views/VoiceUserLimitView;->d:Landroid/widget/TextView;
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Landroid/widget/TextView;->getWidth()I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
iget v3, p0, Lcom/discord/views/VoiceUserLimitView;->g:I
|
|
|
|
|
|
|
|
add-int/2addr v2, v3
|
|
|
|
|
|
|
|
iget-object v3, p0, Lcom/discord/views/VoiceUserLimitView;->i:Landroid/graphics/Point;
|
|
|
|
|
|
|
|
invoke-virtual {v3, v1, v0}, Landroid/graphics/Point;->set(II)V
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/views/VoiceUserLimitView;->j:Landroid/graphics/Point;
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {v0, v2, v3}, Landroid/graphics/Point;->set(II)V
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/views/VoiceUserLimitView;->k:Landroid/graphics/Point;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1, v3}, Landroid/graphics/Point;->set(II)V
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/views/VoiceUserLimitView;->h:Landroid/graphics/Path;
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/views/VoiceUserLimitView;->i:Landroid/graphics/Point;
|
|
|
|
|
|
|
|
iget v2, v1, Landroid/graphics/Point;->x:I
|
|
|
|
|
|
|
|
int-to-float v2, v2
|
|
|
|
|
|
|
|
iget v1, v1, Landroid/graphics/Point;->y:I
|
|
|
|
|
|
|
|
int-to-float v1, v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v2, v1}, Landroid/graphics/Path;->moveTo(FF)V
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/views/VoiceUserLimitView;->h:Landroid/graphics/Path;
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/views/VoiceUserLimitView;->j:Landroid/graphics/Point;
|
|
|
|
|
|
|
|
iget v2, v1, Landroid/graphics/Point;->x:I
|
|
|
|
|
|
|
|
int-to-float v2, v2
|
|
|
|
|
|
|
|
iget v1, v1, Landroid/graphics/Point;->y:I
|
|
|
|
|
|
|
|
int-to-float v1, v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v2, v1}, Landroid/graphics/Path;->lineTo(FF)V
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/views/VoiceUserLimitView;->h:Landroid/graphics/Path;
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/views/VoiceUserLimitView;->k:Landroid/graphics/Point;
|
|
|
|
|
|
|
|
iget v2, v1, Landroid/graphics/Point;->x:I
|
|
|
|
|
|
|
|
int-to-float v2, v2
|
|
|
|
|
|
|
|
iget v1, v1, Landroid/graphics/Point;->y:I
|
|
|
|
|
|
|
|
int-to-float v1, v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v2, v1}, Landroid/graphics/Path;->lineTo(FF)V
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/views/VoiceUserLimitView;->h:Landroid/graphics/Path;
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/views/VoiceUserLimitView;->i:Landroid/graphics/Point;
|
|
|
|
|
|
|
|
iget v2, v1, Landroid/graphics/Point;->x:I
|
|
|
|
|
|
|
|
int-to-float v2, v2
|
|
|
|
|
|
|
|
iget v1, v1, Landroid/graphics/Point;->y:I
|
|
|
|
|
|
|
|
int-to-float v1, v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v2, v1}, Landroid/graphics/Path;->lineTo(FF)V
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/views/VoiceUserLimitView;->h:Landroid/graphics/Path;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/Path;->close()V
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/views/VoiceUserLimitView;->h:Landroid/graphics/Path;
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/views/VoiceUserLimitView;->f:Landroid/graphics/Paint;
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/graphics/Canvas;->drawPath(Landroid/graphics/Path;Landroid/graphics/Paint;)V
|
|
|
|
|
|
|
|
iget-object p1, p0, Lcom/discord/views/VoiceUserLimitView;->h:Landroid/graphics/Path;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/graphics/Path;->reset()V
|
|
|
|
|
|
|
|
return-void
|
2020-09-08 08:16:32 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-static {}, Lk0/n/c/h;->throwNpe()V
|
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
2020-07-08 16:44:49 +00:00
|
|
|
.end method
|