2019-02-04 20:08:30 +00:00
|
|
|
.class public Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;
|
|
|
|
.super Ljava/lang/Object;
|
2019-02-04 20:29:01 +00:00
|
|
|
.source "WidgetChannelListUnreads.kt"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$UnreadItem;,
|
|
|
|
Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$Model;,
|
|
|
|
Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$Companion;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
|
|
|
.field static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
.field public static final Companion:Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$Companion;
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
.field private static final FADE_DURATION_MS:J = 0x96L
|
|
|
|
|
|
|
|
.field private static final ITEM_OVER_SCROLL_COUNT:I = 0x3
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-04-25 10:39:51 +00:00
|
|
|
.field private final appBarLayout:Lcom/google/android/material/appbar/AppBarLayout;
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
.field private data:Ljava/util/List;
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"+",
|
|
|
|
"Lcom/discord/utilities/mg_recycler/MGRecyclerDataPayload;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
.field private mentionResId:I
|
|
|
|
|
|
|
|
.field private final unreads$delegate:Lkotlin/Lazy;
|
|
|
|
|
|
|
|
.field private final unreadsAdapter:Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple<",
|
|
|
|
"*>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
.field private unreadsEnabled:Z
|
|
|
|
|
|
|
|
.field private unreadsInitialized:Z
|
|
|
|
|
|
|
|
.field private unreadsResId:I
|
|
|
|
|
|
|
|
.field private final unreadsStub:Landroid/view/ViewStub;
|
|
|
|
|
|
|
|
.field private final unreadsText$delegate:Lkotlin/Lazy;
|
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
.field private final unreadsTextBackground$delegate:Lkotlin/Lazy;
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method static constructor <clinit>()V
|
|
|
|
.locals 5
|
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
const/4 v0, 0x3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
new-array v0, v0, [Lkotlin/reflect/KProperty;
|
|
|
|
|
2019-05-22 23:20:16 +00:00
|
|
|
new-instance v1, Lkotlin/jvm/internal/v;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const-class v2, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;
|
|
|
|
|
2019-05-22 23:20:16 +00:00
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/w;->Q(Ljava/lang/Class;)Lkotlin/reflect/b;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "unreads"
|
|
|
|
|
|
|
|
const-string v4, "getUnreads()Landroid/view/View;"
|
|
|
|
|
2019-05-22 23:20:16 +00:00
|
|
|
invoke-direct {v1, v2, v3, v4}, Lkotlin/jvm/internal/v;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-22 23:20:16 +00:00
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/w;->a(Lkotlin/jvm/internal/u;)Lkotlin/reflect/d;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
|
2019-05-22 23:20:16 +00:00
|
|
|
new-instance v1, Lkotlin/jvm/internal/v;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const-class v2, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;
|
|
|
|
|
2019-05-22 23:20:16 +00:00
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/w;->Q(Ljava/lang/Class;)Lkotlin/reflect/b;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "unreadsText"
|
|
|
|
|
|
|
|
const-string v4, "getUnreadsText()Landroid/widget/TextView;"
|
|
|
|
|
2019-05-22 23:20:16 +00:00
|
|
|
invoke-direct {v1, v2, v3, v4}, Lkotlin/jvm/internal/v;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-22 23:20:16 +00:00
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/w;->a(Lkotlin/jvm/internal/u;)Lkotlin/reflect/d;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
|
2019-05-22 23:20:16 +00:00
|
|
|
new-instance v1, Lkotlin/jvm/internal/v;
|
2019-04-25 10:39:51 +00:00
|
|
|
|
|
|
|
const-class v2, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;
|
|
|
|
|
2019-05-22 23:20:16 +00:00
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/w;->Q(Ljava/lang/Class;)Lkotlin/reflect/b;
|
2019-04-25 10:39:51 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "unreadsTextBackground"
|
|
|
|
|
|
|
|
const-string v4, "getUnreadsTextBackground()Landroid/view/View;"
|
|
|
|
|
2019-05-22 23:20:16 +00:00
|
|
|
invoke-direct {v1, v2, v3, v4}, Lkotlin/jvm/internal/v;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
2019-04-25 10:39:51 +00:00
|
|
|
|
2019-05-22 23:20:16 +00:00
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/w;->a(Lkotlin/jvm/internal/u;)Lkotlin/reflect/d;
|
2019-04-25 10:39:51 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x2
|
|
|
|
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
sput-object v0, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$Companion;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
|
|
|
|
sput-object v0, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->Companion:Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$Companion;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
.method public constructor <init>(Landroid/view/ViewStub;Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;Lcom/google/android/material/appbar/AppBarLayout;IIZ)V
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Landroid/view/ViewStub;",
|
|
|
|
"Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple<",
|
2019-04-25 10:39:51 +00:00
|
|
|
"*>;",
|
|
|
|
"Lcom/google/android/material/appbar/AppBarLayout;",
|
|
|
|
"IIZ)V"
|
2019-02-04 20:08:30 +00:00
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const-string v0, "unreadsStub"
|
|
|
|
|
2019-05-22 23:20:16 +00:00
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const-string v0, "unreadsAdapter"
|
|
|
|
|
2019-05-22 23:20:16 +00:00
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->unreadsStub:Landroid/view/ViewStub;
|
|
|
|
|
|
|
|
iput-object p2, p0, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->unreadsAdapter:Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;
|
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
iput-object p3, p0, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->appBarLayout:Lcom/google/android/material/appbar/AppBarLayout;
|
|
|
|
|
|
|
|
iput p4, p0, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->mentionResId:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
iput p5, p0, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->unreadsResId:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
iput-boolean p6, p0, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->unreadsEnabled:Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
new-instance p1, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$unreads$2;
|
|
|
|
|
|
|
|
invoke-direct {p1, p0}, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$unreads$2;-><init>(Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;)V
|
|
|
|
|
|
|
|
check-cast p1, Lkotlin/jvm/functions/Function0;
|
|
|
|
|
|
|
|
invoke-static {p1}, Lkotlin/f;->b(Lkotlin/jvm/functions/Function0;)Lkotlin/Lazy;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->unreads$delegate:Lkotlin/Lazy;
|
|
|
|
|
|
|
|
new-instance p1, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$unreadsText$2;
|
|
|
|
|
|
|
|
invoke-direct {p1, p0}, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$unreadsText$2;-><init>(Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;)V
|
|
|
|
|
|
|
|
check-cast p1, Lkotlin/jvm/functions/Function0;
|
|
|
|
|
|
|
|
invoke-static {p1}, Lkotlin/f;->b(Lkotlin/jvm/functions/Function0;)Lkotlin/Lazy;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->unreadsText$delegate:Lkotlin/Lazy;
|
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
new-instance p1, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$unreadsTextBackground$2;
|
|
|
|
|
|
|
|
invoke-direct {p1, p0}, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$unreadsTextBackground$2;-><init>(Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;)V
|
|
|
|
|
|
|
|
check-cast p1, Lkotlin/jvm/functions/Function0;
|
|
|
|
|
|
|
|
invoke-static {p1}, Lkotlin/f;->b(Lkotlin/jvm/functions/Function0;)Lkotlin/Lazy;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->unreadsTextBackground$delegate:Lkotlin/Lazy;
|
|
|
|
|
2019-05-28 22:16:26 +00:00
|
|
|
sget-object p1, Lkotlin/a/x;->bff:Lkotlin/a/x;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
check-cast p1, Ljava/util/List;
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->data:Ljava/util/List;
|
|
|
|
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->unreadsAdapter:Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;->getRecycler()Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
new-instance p2, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$1;
|
|
|
|
|
|
|
|
invoke-direct {p2, p0}, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$1;-><init>(Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;)V
|
|
|
|
|
|
|
|
check-cast p2, Landroidx/recyclerview/widget/RecyclerView$OnScrollListener;
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2}, Landroidx/recyclerview/widget/RecyclerView;->addOnScrollListener(Landroidx/recyclerview/widget/RecyclerView$OnScrollListener;)V
|
|
|
|
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->unreadsAdapter:Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;
|
|
|
|
|
|
|
|
new-instance p2, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$2;
|
|
|
|
|
|
|
|
invoke-direct {p2, p0}, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$2;-><init>(Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;)V
|
|
|
|
|
|
|
|
check-cast p2, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple$OnUpdated;
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2}, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;->setOnUpdated(Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple$OnUpdated;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
.method public synthetic constructor <init>(Landroid/view/ViewStub;Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;Lcom/google/android/material/appbar/AppBarLayout;IIZILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
.locals 7
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
and-int/lit8 p8, p7, 0x4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
if-eqz p8, :cond_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
const/4 p3, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_0
|
2019-04-25 10:39:51 +00:00
|
|
|
move-object v3, p3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
and-int/lit8 p3, p7, 0x8
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
if-eqz p3, :cond_1
|
|
|
|
|
2019-05-28 22:16:26 +00:00
|
|
|
const p4, 0x7f120afa
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-28 22:16:26 +00:00
|
|
|
const v4, 0x7f120afa
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
goto :goto_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_1
|
|
|
|
move v4, p4
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:goto_0
|
2019-04-25 10:39:51 +00:00
|
|
|
and-int/lit8 p3, p7, 0x10
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
if-eqz p3, :cond_2
|
|
|
|
|
2019-05-28 22:16:26 +00:00
|
|
|
const p5, 0x7f120b06
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-28 22:16:26 +00:00
|
|
|
const v5, 0x7f120b06
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
goto :goto_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_2
|
|
|
|
move v5, p5
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:goto_1
|
2019-04-25 10:39:51 +00:00
|
|
|
and-int/lit8 p3, p7, 0x20
|
|
|
|
|
|
|
|
if-eqz p3, :cond_3
|
|
|
|
|
|
|
|
const/4 p6, 0x1
|
|
|
|
|
|
|
|
const/4 v6, 0x1
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
goto :goto_2
|
2019-04-25 10:39:51 +00:00
|
|
|
|
|
|
|
:cond_3
|
|
|
|
move v6, p6
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:goto_2
|
2019-02-04 20:08:30 +00:00
|
|
|
move-object v0, p0
|
|
|
|
|
|
|
|
move-object v1, p1
|
|
|
|
|
|
|
|
move-object v2, p2
|
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
invoke-direct/range {v0 .. v6}, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;-><init>(Landroid/view/ViewStub;Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;Lcom/google/android/material/appbar/AppBarLayout;IIZ)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$getData$p(Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;)Ljava/util/List;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iget-object p0, p0, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->data:Ljava/util/List;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$getUnreads$p(Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;)Landroid/view/View;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->getUnreads()Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$getUnreadsAdapter$p(Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;)Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iget-object p0, p0, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->unreadsAdapter:Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$getUnreadsStub$p(Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;)Landroid/view/ViewStub;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iget-object p0, p0, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->unreadsStub:Landroid/view/ViewStub;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$handleClick(Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$Model$Indicator;Z)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2}, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->handleClick(Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$Model$Indicator;Z)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$handleVisibleRangeUpdate(Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->handleVisibleRangeUpdate()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$setData$p(Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;Ljava/util/List;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->data:Ljava/util/List;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getIcon(Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$Model$Indicator;)I
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$Model$Indicator;->getType()I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const p1, 0x7f0800d4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_0
|
2019-05-03 18:53:54 +00:00
|
|
|
const p1, 0x7f0800d9
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getText(Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$Model$Indicator;)I
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$Model$Indicator;->getType()I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
iget p1, p0, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->unreadsResId:I
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget p1, p0, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->mentionResId:I
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getUnreads()Landroid/view/View;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->unreads$delegate:Lkotlin/Lazy;
|
|
|
|
|
|
|
|
invoke-interface {v0}, Lkotlin/Lazy;->getValue()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Landroid/view/View;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getUnreadsText()Landroid/widget/TextView;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->unreadsText$delegate:Lkotlin/Lazy;
|
|
|
|
|
|
|
|
invoke-interface {v0}, Lkotlin/Lazy;->getValue()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Landroid/widget/TextView;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
.method private final getUnreadsTextBackground()Landroid/view/View;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->unreadsTextBackground$delegate:Lkotlin/Lazy;
|
|
|
|
|
|
|
|
invoke-interface {v0}, Lkotlin/Lazy;->getValue()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Landroid/view/View;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
.method private final handleClick(Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$Model$Indicator;Z)V
|
2019-04-25 10:39:51 +00:00
|
|
|
.locals 2
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$Model$Indicator;->getIndex()I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
add-int/lit8 p1, p1, -0x3
|
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
invoke-static {p1, v0}, Ljava/lang/Math;->max(II)I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$Model$Indicator;->getIndex()I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
add-int/lit8 p1, p1, 0x3
|
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
iget-object v1, p0, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->unreadsAdapter:Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
invoke-virtual {v1}, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;->getItemCount()I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
move-result v1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
invoke-static {p1, v1}, Ljava/lang/Math;->min(II)I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
:goto_0
|
2019-04-25 10:39:51 +00:00
|
|
|
if-nez p2, :cond_1
|
|
|
|
|
|
|
|
iget-object p2, p0, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->appBarLayout:Lcom/google/android/material/appbar/AppBarLayout;
|
|
|
|
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {p2, v0}, Lcom/google/android/material/appbar/AppBarLayout;->setExpanded(Z)V
|
|
|
|
|
|
|
|
:cond_1
|
2019-02-04 20:08:30 +00:00
|
|
|
iget-object p2, p0, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->unreadsAdapter:Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;->getRecycler()Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-virtual {p2, p1}, Landroidx/recyclerview/widget/RecyclerView;->smoothScrollToPosition(I)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final handleVisibleRangeUpdate()V
|
|
|
|
.locals 18
|
|
|
|
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
|
|
|
|
iget-object v1, v0, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->unreadsAdapter:Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;->getRecycler()Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroidx/recyclerview/widget/RecyclerView;->getLayoutManager()Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
instance-of v2, v1, Landroidx/recyclerview/widget/LinearLayoutManager;
|
|
|
|
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
check-cast v1, Landroidx/recyclerview/widget/LinearLayoutManager;
|
|
|
|
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-virtual {v1}, Landroidx/recyclerview/widget/LinearLayoutManager;->findFirstVisibleItemPosition()I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
new-instance v3, Lkotlin/ranges/IntRange;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroidx/recyclerview/widget/LinearLayoutManager;->findLastVisibleItemPosition()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
invoke-direct {v3, v2, v1}, Lkotlin/ranges/IntRange;-><init>(II)V
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$Model;->Companion:Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$Model$Companion;
|
|
|
|
|
|
|
|
iget-object v2, v0, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->data:Ljava/util/List;
|
|
|
|
|
|
|
|
iget-boolean v4, v0, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->unreadsEnabled:Z
|
|
|
|
|
|
|
|
invoke-virtual {v1, v3, v2, v4}, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$Model$Companion;->get(Lkotlin/ranges/IntRange;Ljava/util/List;Z)Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$Model;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$Model;->getTopIndicator()Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$Model$Indicator;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
if-nez v2, :cond_2
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$Model;->getBottomIndicator()Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$Model$Indicator;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
invoke-virtual {v1}, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$Model;->getTopIndicator()Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$Model$Indicator;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const/4 v3, 0x1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-nez v2, :cond_4
|
|
|
|
|
|
|
|
iget-boolean v4, v0, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->unreadsInitialized:Z
|
|
|
|
|
|
|
|
if-eqz v4, :cond_4
|
|
|
|
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->getUnreads()Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
const-wide/16 v6, 0x96
|
|
|
|
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
const/4 v9, 0x2
|
|
|
|
|
|
|
|
const/4 v10, 0x0
|
|
|
|
|
|
|
|
invoke-static/range {v5 .. v10}, Lcom/discord/utilities/view/extensions/ViewExtensions;->fadeOut$default(Landroid/view/View;JLkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
if-eqz v2, :cond_5
|
|
|
|
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->getUnreads()Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v11
|
|
|
|
|
|
|
|
const-wide/16 v12, 0x96
|
|
|
|
|
|
|
|
const/4 v14, 0x0
|
|
|
|
|
|
|
|
const/4 v15, 0x0
|
|
|
|
|
|
|
|
const/16 v16, 0x6
|
|
|
|
|
|
|
|
const/16 v17, 0x0
|
|
|
|
|
|
|
|
invoke-static/range {v11 .. v17}, Lcom/discord/utilities/view/extensions/ViewExtensions;->fadeIn$default(Landroid/view/View;JLkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
|
|
|
|
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->getUnreads()Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
new-instance v5, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$handleVisibleRangeUpdate$1;
|
|
|
|
|
|
|
|
invoke-direct {v5, v0, v2, v1}, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$handleVisibleRangeUpdate$1;-><init>(Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$Model$Indicator;Z)V
|
|
|
|
|
|
|
|
check-cast v5, Landroid/view/View$OnClickListener;
|
|
|
|
|
|
|
|
invoke-virtual {v4, v5}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
|
|
|
|
iput-boolean v3, v0, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->unreadsInitialized:Z
|
|
|
|
|
|
|
|
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->getUnreads()Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
const-string v4, "unreads"
|
|
|
|
|
2019-05-22 23:20:16 +00:00
|
|
|
invoke-static {v3, v4}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v3, v2, v1}, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->onConfigureView(Landroid/view/View;Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$Model$Indicator;Z)V
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final getMentionResId()I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget v0, p0, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->mentionResId:I
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final getUnreadsEnabled()Z
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->unreadsEnabled:Z
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final getUnreadsResId()I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget v0, p0, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->unreadsResId:I
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method protected onConfigureView(Landroid/view/View;Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$Model$Indicator;Z)V
|
|
|
|
.locals 7
|
|
|
|
|
|
|
|
const-string v0, "view"
|
|
|
|
|
2019-05-22 23:20:16 +00:00
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const-string p1, "indicator"
|
|
|
|
|
2019-05-22 23:20:16 +00:00
|
|
|
invoke-static {p2, p1}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->getUnreadsTextBackground()Landroid/view/View;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-direct {p0, p2}, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->getIcon(Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$Model$Indicator;)I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->setBackgroundResource(I)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->getUnreadsText()Landroid/widget/TextView;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-direct {p0, p2}, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->getText(Lcom/discord/widgets/channels/list/WidgetChannelListUnreads$Model$Indicator;)I
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2}, Landroid/widget/TextView;->setText(I)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->getUnreadsText()Landroid/widget/TextView;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string p1, "unreadsText"
|
|
|
|
|
2019-05-22 23:20:16 +00:00
|
|
|
invoke-static {v0, p1}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
|
2019-05-24 03:06:45 +00:00
|
|
|
const p1, 0x7f0801a1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-24 03:06:45 +00:00
|
|
|
const v3, 0x7f0801a1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2019-05-24 03:06:45 +00:00
|
|
|
const p1, 0x7f08019f
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-24 03:06:45 +00:00
|
|
|
const v3, 0x7f08019f
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:goto_0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
const/16 v5, 0xb
|
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
invoke-static/range {v0 .. v6}, Lcom/discord/utilities/drawable/DrawableCompat;->setCompoundDrawablesCompat$default(Landroid/widget/TextView;IIIIILjava/lang/Object;)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->getUnreads()Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2019-04-18 05:08:29 +00:00
|
|
|
const-string p2, "it"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-22 23:20:16 +00:00
|
|
|
invoke-static {p1, p2}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-18 05:08:29 +00:00
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
move-result-object p1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
instance-of p2, p1, Landroid/view/ViewGroup$MarginLayoutParams;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
if-nez p2, :cond_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
const/4 p1, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_1
|
2019-04-25 10:39:51 +00:00
|
|
|
check-cast p1, Landroid/view/ViewGroup$MarginLayoutParams;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
instance-of p2, p1, Landroid/widget/RelativeLayout$LayoutParams;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
if-eqz p2, :cond_4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
move-object p2, p1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
check-cast p2, Landroid/widget/RelativeLayout$LayoutParams;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
const/16 v0, 0x8
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
const/4 v1, 0x6
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
if-eqz p3, :cond_2
|
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
const/16 v2, 0x8
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
2019-04-25 10:39:51 +00:00
|
|
|
const/4 v2, 0x6
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:goto_1
|
2019-04-25 10:39:51 +00:00
|
|
|
invoke-static {p2, v2}, Lcom/discord/utilities/view/layoutparams/LayoutParamsExtensionsKt;->removeRuleCompat(Landroid/widget/RelativeLayout$LayoutParams;I)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-18 05:08:29 +00:00
|
|
|
if-eqz p3, :cond_3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
const/4 v0, 0x6
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-18 05:08:29 +00:00
|
|
|
:cond_3
|
2019-02-04 20:08:30 +00:00
|
|
|
iget-object p3, p0, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->unreadsAdapter:Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;
|
|
|
|
|
|
|
|
invoke-virtual {p3}, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;->getRecycler()Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
move-result-object p3
|
|
|
|
|
|
|
|
invoke-virtual {p3}, Landroidx/recyclerview/widget/RecyclerView;->getId()I
|
|
|
|
|
|
|
|
move-result p3
|
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
invoke-virtual {p2, v0, p3}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-18 05:08:29 +00:00
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_4
|
2019-04-25 10:39:51 +00:00
|
|
|
instance-of p2, p1, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
2019-04-18 05:08:29 +00:00
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
if-eqz p2, :cond_8
|
2019-04-18 05:08:29 +00:00
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
move-object p2, p1
|
2019-04-18 05:08:29 +00:00
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
check-cast p2, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
2019-04-18 05:08:29 +00:00
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
const/16 v0, 0x30
|
2019-04-18 05:08:29 +00:00
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
const/16 v1, 0x50
|
2019-04-18 05:08:29 +00:00
|
|
|
|
|
|
|
if-eqz p3, :cond_5
|
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
const/16 v2, 0x30
|
2019-04-18 05:08:29 +00:00
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
:cond_5
|
2019-04-25 10:39:51 +00:00
|
|
|
const/16 v2, 0x50
|
2019-04-18 05:08:29 +00:00
|
|
|
|
|
|
|
:goto_2
|
2019-04-25 10:39:51 +00:00
|
|
|
iput v2, p2, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->anchorGravity:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-18 05:08:29 +00:00
|
|
|
if-eqz p3, :cond_6
|
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
const/16 v0, 0x50
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_6
|
2019-04-25 10:39:51 +00:00
|
|
|
iput v0, p2, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->gravity:I
|
2019-04-18 05:08:29 +00:00
|
|
|
|
|
|
|
:goto_3
|
2019-04-25 10:39:51 +00:00
|
|
|
if-eqz p1, :cond_7
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-18 05:08:29 +00:00
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->getUnreads()Landroid/view/View;
|
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
move-result-object p2
|
2019-04-18 05:08:29 +00:00
|
|
|
|
|
|
|
const-string p3, "unreads"
|
|
|
|
|
2019-05-22 23:20:16 +00:00
|
|
|
invoke-static {p2, p3}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-04-18 05:08:29 +00:00
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
check-cast p1, Landroid/view/ViewGroup$LayoutParams;
|
2019-04-18 05:08:29 +00:00
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
invoke-virtual {p2, p1}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-18 05:08:29 +00:00
|
|
|
:cond_7
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string p2, "Unread Layout Params unrecognized"
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw p1
|
2019-02-04 20:08:30 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final setMentionResId(I)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput p1, p0, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->mentionResId:I
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final setUnreadsEnabled(Z)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput-boolean p1, p0, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->unreadsEnabled:Z
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final setUnreadsResId(I)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput p1, p0, Lcom/discord/widgets/channels/list/WidgetChannelListUnreads;->unreadsResId:I
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|