309 lines
9.8 KiB
Smali
309 lines
9.8 KiB
Smali
.class public final Lcom/discord/widgets/nux/WidgetNavigationHelp;
|
|
.super Lcom/discord/app/AppDialog;
|
|
.source "WidgetNavigationHelp.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/discord/widgets/nux/WidgetNavigationHelp$NuxPagerAdapter;,
|
|
Lcom/discord/widgets/nux/WidgetNavigationHelp$NuxPageFragment;,
|
|
Lcom/discord/widgets/nux/WidgetNavigationHelp$Companion;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
.field public static final Companion:Lcom/discord/widgets/nux/WidgetNavigationHelp$Companion;
|
|
|
|
|
|
# instance fields
|
|
.field public final closeBtn$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final indicatorTabs$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final nuxPager$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 5
|
|
|
|
const/4 v0, 0x3
|
|
|
|
new-array v0, v0, [Lkotlin/reflect/KProperty;
|
|
|
|
const-class v1, Lcom/discord/widgets/nux/WidgetNavigationHelp;
|
|
|
|
const-string v2, "closeBtn"
|
|
|
|
const-string v3, "getCloseBtn()Landroid/view/View;"
|
|
|
|
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
|
|
|
|
const-class v1, Lcom/discord/widgets/nux/WidgetNavigationHelp;
|
|
|
|
const-string v2, "nuxPager"
|
|
|
|
const-string v3, "getNuxPager()Landroidx/viewpager2/widget/ViewPager2;"
|
|
|
|
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/widgets/nux/WidgetNavigationHelp;
|
|
|
|
const-string v2, "indicatorTabs"
|
|
|
|
const-string v3, "getIndicatorTabs()Lcom/google/android/material/tabs/TabLayout;"
|
|
|
|
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/widgets/nux/WidgetNavigationHelp;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
new-instance v0, Lcom/discord/widgets/nux/WidgetNavigationHelp$Companion;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Lcom/discord/widgets/nux/WidgetNavigationHelp$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
sput-object v0, Lcom/discord/widgets/nux/WidgetNavigationHelp;->Companion:Lcom/discord/widgets/nux/WidgetNavigationHelp$Companion;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Lcom/discord/app/AppDialog;-><init>()V
|
|
|
|
const v0, 0x7f0a0691
|
|
|
|
invoke-static {p0, v0}, Lc0/j/a;->h(Landroidx/fragment/app/DialogFragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/nux/WidgetNavigationHelp;->closeBtn$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const v0, 0x7f0a0693
|
|
|
|
invoke-static {p0, v0}, Lc0/j/a;->h(Landroidx/fragment/app/DialogFragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/nux/WidgetNavigationHelp;->nuxPager$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const v0, 0x7f0a0692
|
|
|
|
invoke-static {p0, v0}, Lc0/j/a;->h(Landroidx/fragment/app/DialogFragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/nux/WidgetNavigationHelp;->indicatorTabs$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final getCloseBtn()Landroid/view/View;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/nux/WidgetNavigationHelp;->closeBtn$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/nux/WidgetNavigationHelp;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
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/view/View;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getIndicatorTabs()Lcom/google/android/material/tabs/TabLayout;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/nux/WidgetNavigationHelp;->indicatorTabs$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/nux/WidgetNavigationHelp;->$$delegatedProperties:[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, Lcom/google/android/material/tabs/TabLayout;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getNuxPager()Landroidx/viewpager2/widget/ViewPager2;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/nux/WidgetNavigationHelp;->nuxPager$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/nux/WidgetNavigationHelp;->$$delegatedProperties:[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, Landroidx/viewpager2/widget/ViewPager2;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final show(Landroidx/fragment/app/FragmentManager;)V
|
|
.locals 1
|
|
|
|
sget-object v0, Lcom/discord/widgets/nux/WidgetNavigationHelp;->Companion:Lcom/discord/widgets/nux/WidgetNavigationHelp$Companion;
|
|
|
|
invoke-virtual {v0, p0}, Lcom/discord/widgets/nux/WidgetNavigationHelp$Companion;->show(Landroidx/fragment/app/FragmentManager;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getContentViewResId()I
|
|
.locals 1
|
|
|
|
const v0, 0x7f0d0228
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public onStart()V
|
|
.locals 3
|
|
|
|
invoke-super {p0}, Landroidx/fragment/app/DialogFragment;->onStart()V
|
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/DialogFragment;->getDialog()Landroid/app/Dialog;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Landroid/app/Dialog;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const v1, 0x3f666666 # 0.9f
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/Window;->setDimAmount(F)V
|
|
|
|
const/4 v1, -0x1
|
|
|
|
invoke-virtual {v0, v1, v1}, Landroid/view/Window;->setLayout(II)V
|
|
|
|
new-instance v1, Landroid/graphics/drawable/ColorDrawable;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-direct {v1, v2}, Landroid/graphics/drawable/ColorDrawable;-><init>(I)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/Window;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
const/16 v1, 0x35
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/Window;->setSoftInputMode(I)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onViewBound(Landroid/view/View;)V
|
|
.locals 3
|
|
|
|
const-string/jumbo v0, "view"
|
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-super {p0, p1}, Lcom/discord/app/AppDialog;->onViewBound(Landroid/view/View;)V
|
|
|
|
const/16 p1, 0x8
|
|
|
|
invoke-static {p1}, Lcom/discord/utilities/dimen/DimenUtils;->dpToPixels(I)I
|
|
|
|
move-result p1
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/nux/WidgetNavigationHelp;->getNuxPager()Landroidx/viewpager2/widget/ViewPager2;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Landroidx/viewpager2/widget/MarginPageTransformer;
|
|
|
|
invoke-direct {v1, p1}, Landroidx/viewpager2/widget/MarginPageTransformer;-><init>(I)V
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/viewpager2/widget/ViewPager2;->setPageTransformer(Landroidx/viewpager2/widget/ViewPager2$PageTransformer;)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/nux/WidgetNavigationHelp;->getNuxPager()Landroidx/viewpager2/widget/ViewPager2;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance v0, Lcom/discord/widgets/nux/WidgetNavigationHelp$NuxPagerAdapter;
|
|
|
|
invoke-direct {v0, p0}, Lcom/discord/widgets/nux/WidgetNavigationHelp$NuxPagerAdapter;-><init>(Landroidx/fragment/app/Fragment;)V
|
|
|
|
invoke-virtual {p1, v0}, Landroidx/viewpager2/widget/ViewPager2;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V
|
|
|
|
new-instance p1, Lcom/google/android/material/tabs/TabLayoutMediator;
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/nux/WidgetNavigationHelp;->getIndicatorTabs()Lcom/google/android/material/tabs/TabLayout;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/nux/WidgetNavigationHelp;->getNuxPager()Landroidx/viewpager2/widget/ViewPager2;
|
|
|
|
move-result-object v1
|
|
|
|
sget-object v2, Lcom/discord/widgets/nux/WidgetNavigationHelp$onViewBound$1;->INSTANCE:Lcom/discord/widgets/nux/WidgetNavigationHelp$onViewBound$1;
|
|
|
|
invoke-direct {p1, v0, v1, v2}, Lcom/google/android/material/tabs/TabLayoutMediator;-><init>(Lcom/google/android/material/tabs/TabLayout;Landroidx/viewpager2/widget/ViewPager2;Lcom/google/android/material/tabs/TabLayoutMediator$TabConfigurationStrategy;)V
|
|
|
|
invoke-virtual {p1}, Lcom/google/android/material/tabs/TabLayoutMediator;->attach()V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/nux/WidgetNavigationHelp;->getCloseBtn()Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance v0, Lcom/discord/widgets/nux/WidgetNavigationHelp$onViewBound$2;
|
|
|
|
invoke-direct {v0, p0}, Lcom/discord/widgets/nux/WidgetNavigationHelp$onViewBound$2;-><init>(Lcom/discord/widgets/nux/WidgetNavigationHelp;)V
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
return-void
|
|
.end method
|