2020-10-13 20:45:03 +00:00
|
|
|
.class public final Lcom/discord/views/calls/VolumeSliderView;
|
|
|
|
.super Landroid/widget/LinearLayout;
|
|
|
|
.source "VolumeSliderView.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
2020-10-19 23:59:54 +00:00
|
|
|
.field public static final synthetic g:[Lkotlin/reflect/KProperty;
|
2020-10-13 20:45:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final d:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2020-10-19 23:59:54 +00:00
|
|
|
.field public final e:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field public final f:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public static constructor <clinit>()V
|
|
|
|
.locals 5
|
|
|
|
|
2020-10-19 23:59:54 +00:00
|
|
|
const/4 v0, 0x3
|
2020-10-13 20:45:03 +00:00
|
|
|
|
|
|
|
new-array v0, v0, [Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const-class v1, Lcom/discord/views/calls/VolumeSliderView;
|
|
|
|
|
|
|
|
const-string v2, "seekBar"
|
|
|
|
|
|
|
|
const-string v3, "getSeekBar()Landroid/widget/SeekBar;"
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lc0/n/c/s;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
aput-object v1, v0, v4
|
|
|
|
|
2020-10-19 23:59:54 +00:00
|
|
|
const-class v1, Lcom/discord/views/calls/VolumeSliderView;
|
|
|
|
|
|
|
|
const-string v2, "minVolIcon"
|
|
|
|
|
|
|
|
const-string v3, "getMinVolIcon()Landroid/widget/ImageView;"
|
|
|
|
|
|
|
|
invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lc0/n/c/s;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
|
|
|
|
const-class v1, Lcom/discord/views/calls/VolumeSliderView;
|
|
|
|
|
|
|
|
const-string v2, "maxVolIcon"
|
|
|
|
|
|
|
|
const-string v3, "getMaxVolIcon()Landroid/widget/ImageView;"
|
|
|
|
|
|
|
|
invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Lc0/n/c/s;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const/4 v2, 0x2
|
|
|
|
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
|
|
|
|
sput-object v0, Lcom/discord/views/calls/VolumeSliderView;->g:[Lkotlin/reflect/KProperty;
|
2020-10-13 20:45:03 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
2020-10-19 23:59:54 +00:00
|
|
|
.locals 3
|
2020-10-13 20:45:03 +00:00
|
|
|
|
|
|
|
const-string v0, "context"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
|
2020-10-19 23:59:54 +00:00
|
|
|
const p1, 0x7f0a0b64
|
2020-10-13 20:45:03 +00:00
|
|
|
|
|
|
|
invoke-static {p0, p1}, Lc0/j/a;->g(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/views/calls/VolumeSliderView;->d:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2020-10-19 23:59:54 +00:00
|
|
|
const p1, 0x7f0a0b63
|
|
|
|
|
|
|
|
invoke-static {p0, p1}, Lc0/j/a;->g(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/views/calls/VolumeSliderView;->e:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
const p1, 0x7f0a0b62
|
|
|
|
|
|
|
|
invoke-static {p0, p1}, Lc0/j/a;->g(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/views/calls/VolumeSliderView;->f:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-10-19 23:59:54 +00:00
|
|
|
const v0, 0x7f0d0169
|
2020-10-13 20:45:03 +00:00
|
|
|
|
|
|
|
invoke-static {p1, v0, p0}, Landroid/widget/LinearLayout;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
|
|
|
|
|
2020-10-19 23:59:54 +00:00
|
|
|
if-eqz p2, :cond_1
|
2020-10-13 20:45:03 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/R$a;->VolumeSliderView:[I
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2, v0, v1, v1}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string p2, "context.obtainStyledAttr\u2026e.VolumeSliderView, 0, 0)"
|
|
|
|
|
|
|
|
invoke-static {p1, p2}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
2020-10-19 23:59:54 +00:00
|
|
|
const/4 p2, 0x1
|
|
|
|
|
|
|
|
const/16 v0, 0x64
|
2020-10-13 20:45:03 +00:00
|
|
|
|
2020-10-19 23:59:54 +00:00
|
|
|
invoke-virtual {p1, p2, v0}, Landroid/content/res/TypedArray;->getInt(II)I
|
2020-10-13 20:45:03 +00:00
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
2020-10-19 23:59:54 +00:00
|
|
|
const/4 v0, -0x1
|
|
|
|
|
|
|
|
invoke-virtual {p1, v1, v0}, Landroid/content/res/TypedArray;->getResourceId(II)I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eq v1, v0, :cond_0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/calls/VolumeSliderView;->getMinVolIcon()Landroid/widget/ImageView;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-static {v2, v1}, Lcom/discord/utilities/color/ColorCompat;->getColor(Landroid/content/Context;I)I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
invoke-static {v0, v2}, Lcom/discord/utilities/color/ColorCompatKt;->tintWithColor(Landroid/widget/ImageView;I)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/calls/VolumeSliderView;->getMaxVolIcon()Landroid/widget/ImageView;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-static {v2, v1}, Lcom/discord/utilities/color/ColorCompat;->getColor(Landroid/content/Context;I)I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
invoke-static {v0, v1}, Lcom/discord/utilities/color/ColorCompatKt;->tintWithColor(Landroid/widget/ImageView;I)V
|
|
|
|
|
|
|
|
:cond_0
|
2020-10-13 20:45:03 +00:00
|
|
|
invoke-direct {p0}, Lcom/discord/views/calls/VolumeSliderView;->getSeekBar()Landroid/widget/SeekBar;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0, p2}, Landroid/widget/SeekBar;->setMax(I)V
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
|
2020-10-19 23:59:54 +00:00
|
|
|
:cond_1
|
2020-10-13 20:45:03 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-10-19 23:59:54 +00:00
|
|
|
.method private final getMaxVolIcon()Landroid/widget/ImageView;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/views/calls/VolumeSliderView;->f:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/views/calls/VolumeSliderView;->g:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x2
|
|
|
|
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Landroid/widget/ImageView;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getMinVolIcon()Landroid/widget/ImageView;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/views/calls/VolumeSliderView;->e:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/views/calls/VolumeSliderView;->g:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Landroid/widget/ImageView;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2020-10-13 20:45:03 +00:00
|
|
|
.method private final getSeekBar()Landroid/widget/SeekBar;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/views/calls/VolumeSliderView;->d:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2020-10-19 23:59:54 +00:00
|
|
|
sget-object v1, Lcom/discord/views/calls/VolumeSliderView;->g:[Lkotlin/reflect/KProperty;
|
2020-10-13 20:45:03 +00:00
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Landroid/widget/SeekBar;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final a(I)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/calls/VolumeSliderView;->getSeekBar()Landroid/widget/SeekBar;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/SeekBar;->setProgress(I)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final setOnVolumeChange(Lkotlin/jvm/functions/Function2;)V
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Lkotlin/jvm/functions/Function2<",
|
|
|
|
"-",
|
|
|
|
"Ljava/lang/Float;",
|
|
|
|
"-",
|
|
|
|
"Ljava/lang/Boolean;",
|
|
|
|
"Lkotlin/Unit;",
|
|
|
|
">;)V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const-string v0, "onVolumeChanged"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/views/calls/VolumeSliderView;->getSeekBar()Landroid/widget/SeekBar;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
new-instance v1, Lcom/discord/views/calls/VolumeSliderView$a;
|
|
|
|
|
|
|
|
invoke-direct {v1, p1}, Lcom/discord/views/calls/VolumeSliderView$a;-><init>(Lkotlin/jvm/functions/Function2;)V
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/SeekBar;->setOnSeekBarChangeListener(Landroid/widget/SeekBar$OnSeekBarChangeListener;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|