721 lines
24 KiB
Smali
721 lines
24 KiB
Smali
.class public final Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;
|
|
.super Lcom/discord/widgets/main/WidgetHome;
|
|
.source "WidgetHomeOverlappingPanels.kt"
|
|
|
|
# interfaces
|
|
.implements Lcom/discord/widgets/tabs/OnTabSelectedListener;
|
|
|
|
|
|
# static fields
|
|
.field public static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
# instance fields
|
|
.field public final overlappingPanels$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public panelLoading:Lcom/discord/widgets/main/WidgetMainPanelLoading;
|
|
|
|
.field public panelNoChannels:Lcom/discord/widgets/main/WidgetMainPanelNoChannels;
|
|
|
|
.field public panelNsfw:Lcom/discord/widgets/main/WidgetMainPanelNsfw;
|
|
|
|
.field public final storeNavigation:Lcom/discord/stores/StoreNavigation;
|
|
|
|
.field public final storeTabsNavigation:Lcom/discord/stores/StoreTabsNavigation;
|
|
|
|
.field public final tabsFeatureFlag:Lcom/discord/widgets/tabs/TabsFeatureFlag;
|
|
|
|
.field public final toolbar$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final unreadCountView$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public viewModel:Lcom/discord/widgets/main/WidgetHomeViewModel;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 6
|
|
|
|
const/4 v0, 0x3
|
|
|
|
new-array v0, v0, [Lkotlin/reflect/KProperty;
|
|
|
|
new-instance v1, Lw/u/b/u;
|
|
|
|
const-class v2, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;
|
|
|
|
invoke-static {v2}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "toolbar"
|
|
|
|
const-string v4, "getToolbar()Landroidx/appcompat/widget/Toolbar;"
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Lw/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v2, Lw/u/b/w;->a:Lw/u/b/x;
|
|
|
|
invoke-virtual {v2, v1}, Lw/u/b/x;->property1(Lw/u/b/t;)Lw/y/d;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
const/4 v1, 0x1
|
|
|
|
new-instance v2, Lw/u/b/u;
|
|
|
|
const-class v3, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;
|
|
|
|
invoke-static {v3}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "unreadCountView"
|
|
|
|
const-string v5, "getUnreadCountView()Landroid/widget/TextView;"
|
|
|
|
invoke-direct {v2, v3, v4, v5}, Lw/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v3, Lw/u/b/w;->a:Lw/u/b/x;
|
|
|
|
invoke-virtual {v3, v2}, Lw/u/b/x;->property1(Lw/u/b/t;)Lw/y/d;
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
const/4 v1, 0x2
|
|
|
|
new-instance v2, Lw/u/b/u;
|
|
|
|
const-class v3, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;
|
|
|
|
invoke-static {v3}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "overlappingPanels"
|
|
|
|
const-string v5, "getOverlappingPanels()Lcom/discord/widgets/main/OverlappingPanelsLayout;"
|
|
|
|
invoke-direct {v2, v3, v4, v5}, Lw/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v3, Lw/u/b/w;->a:Lw/u/b/x;
|
|
|
|
invoke-virtual {v3, v2}, Lw/u/b/x;->property1(Lw/u/b/t;)Lw/y/d;
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
sput-object v0, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/main/WidgetHome;-><init>()V
|
|
|
|
const v0, 0x7f0a0039
|
|
|
|
invoke-static {p0, v0}, Lx/a/a2/w;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;->toolbar$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const v0, 0x7f0a04b5
|
|
|
|
invoke-static {p0, v0}, Lx/a/a2/w;->a(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;->unreadCountView$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
const v0, 0x7f0a09b0
|
|
|
|
invoke-static {p0, v0}, Lx/a/a2/w;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;->overlappingPanels$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getNavigation()Lcom/discord/stores/StoreNavigation;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;->storeNavigation:Lcom/discord/stores/StoreNavigation;
|
|
|
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getTabsNavigation()Lcom/discord/stores/StoreTabsNavigation;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;->storeTabsNavigation:Lcom/discord/stores/StoreTabsNavigation;
|
|
|
|
sget-object v0, Lcom/discord/widgets/tabs/TabsFeatureFlag;->Companion:Lcom/discord/widgets/tabs/TabsFeatureFlag$Companion;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/tabs/TabsFeatureFlag$Companion;->getINSTANCE()Lcom/discord/widgets/tabs/TabsFeatureFlag;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;->tabsFeatureFlag:Lcom/discord/widgets/tabs/TabsFeatureFlag;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic access$configureUI(Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;Lcom/discord/widgets/main/WidgetHomeModel;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;->configureUI(Lcom/discord/widgets/main/WidgetHomeModel;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic access$getOverlappingPanels$p(Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;)Lcom/discord/widgets/main/OverlappingPanelsLayout;
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;->getOverlappingPanels()Lcom/discord/widgets/main/OverlappingPanelsLayout;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final synthetic access$getViewModel$p(Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;)Lcom/discord/widgets/main/WidgetHomeViewModel;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;->viewModel:Lcom/discord/widgets/main/WidgetHomeViewModel;
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
const-string p0, "viewModel"
|
|
|
|
invoke-static {p0}, Lw/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
|
|
|
const/4 p0, 0x0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final synthetic access$handleBackPressed(Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;)Z
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;->handleBackPressed()Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static final synthetic access$setViewModel$p(Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;Lcom/discord/widgets/main/WidgetHomeViewModel;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;->viewModel:Lcom/discord/widgets/main/WidgetHomeViewModel;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final configureOverlappingPanels()V
|
|
.locals 5
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;->getOverlappingPanels()Lcom/discord/widgets/main/OverlappingPanelsLayout;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
new-array v2, v1, [Lcom/discord/widgets/main/OverlappingPanelsLayout$DrawerStateListener;
|
|
|
|
new-instance v3, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels$configureOverlappingPanels$1;
|
|
|
|
invoke-direct {v3, p0}, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels$configureOverlappingPanels$1;-><init>(Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;)V
|
|
|
|
const/4 v4, 0x0
|
|
|
|
aput-object v3, v2, v4
|
|
|
|
invoke-virtual {v0, v2}, Lcom/discord/widgets/main/OverlappingPanelsLayout;->registerLeftDrawerStateListeners([Lcom/discord/widgets/main/OverlappingPanelsLayout$DrawerStateListener;)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;->getOverlappingPanels()Lcom/discord/widgets/main/OverlappingPanelsLayout;
|
|
|
|
move-result-object v0
|
|
|
|
new-array v1, v1, [Lcom/discord/widgets/main/OverlappingPanelsLayout$DrawerStateListener;
|
|
|
|
new-instance v2, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels$configureOverlappingPanels$2;
|
|
|
|
invoke-direct {v2, p0}, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels$configureOverlappingPanels$2;-><init>(Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;)V
|
|
|
|
aput-object v2, v1, v4
|
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/widgets/main/OverlappingPanelsLayout;->registerRightDrawerStateListeners([Lcom/discord/widgets/main/OverlappingPanelsLayout$DrawerStateListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final configureUI(Lcom/discord/widgets/main/WidgetHomeModel;)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;->viewModel:Lcom/discord/widgets/main/WidgetHomeViewModel;
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
invoke-virtual {v0, p1}, Lcom/discord/widgets/main/WidgetHomeViewModel;->setWidgetHomeModel$app_productionDiscordExternalRelease(Lcom/discord/widgets/main/WidgetHomeModel;)V
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;->tabsFeatureFlag:Lcom/discord/widgets/tabs/TabsFeatureFlag;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/tabs/TabsFeatureFlag;->isEnabled()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;->isOnHomeTab()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
:cond_0
|
|
sget-object v0, Lcom/discord/widgets/main/WidgetHomeHeaderManager;->INSTANCE:Lcom/discord/widgets/main/WidgetHomeHeaderManager;
|
|
|
|
invoke-virtual {v0, p0, p1}, Lcom/discord/widgets/main/WidgetHomeHeaderManager;->configure(Lcom/discord/widgets/main/WidgetHome;Lcom/discord/widgets/main/WidgetHomeModel;)V
|
|
|
|
:cond_1
|
|
iget-object v0, p0, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;->panelNsfw:Lcom/discord/widgets/main/WidgetMainPanelNsfw;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
invoke-virtual {v0, p1}, Lcom/discord/widgets/main/WidgetMainPanelNsfw;->configureUI(Lcom/discord/widgets/main/WidgetHomeModel;)V
|
|
|
|
:cond_2
|
|
iget-object v0, p0, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;->panelNoChannels:Lcom/discord/widgets/main/WidgetMainPanelNoChannels;
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
invoke-virtual {v0, p1}, Lcom/discord/widgets/main/WidgetMainPanelNoChannels;->configureUI(Lcom/discord/widgets/main/WidgetHomeModel;)V
|
|
|
|
:cond_3
|
|
return-void
|
|
|
|
:cond_4
|
|
const-string p1, "viewModel"
|
|
|
|
invoke-static {p1}, Lw/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method private final getOverlappingPanels()Lcom/discord/widgets/main/OverlappingPanelsLayout;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;->overlappingPanels$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;->$$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/discord/widgets/main/OverlappingPanelsLayout;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getToolbar()Landroidx/appcompat/widget/Toolbar;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;->toolbar$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;->$$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, Landroidx/appcompat/widget/Toolbar;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final getUnreadCountView()Landroid/widget/TextView;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;->unreadCountView$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;->$$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, Landroid/widget/TextView;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final handleBackPressed()Z
|
|
.locals 3
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;->getOverlappingPanels()Lcom/discord/widgets/main/OverlappingPanelsLayout;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/main/OverlappingPanelsLayout;->getSelectedPanel()Lcom/discord/widgets/main/OverlappingPanelsLayout$Panel;
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v1, Lcom/discord/widgets/main/OverlappingPanelsLayout$Panel;->LEFT:Lcom/discord/widgets/main/OverlappingPanelsLayout$Panel;
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireActivity()Landroidx/fragment/app/FragmentActivity;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, v2}, Landroid/app/Activity;->moveTaskToBack(Z)Z
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-direct {p0}, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;->getOverlappingPanels()Lcom/discord/widgets/main/OverlappingPanelsLayout;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-static {v0, v1, v2, v1}, Lcom/discord/widgets/main/OverlappingPanelsLayout;->openLeftPanel$default(Lcom/discord/widgets/main/OverlappingPanelsLayout;Ljava/lang/Float;ILjava/lang/Object;)V
|
|
|
|
:goto_0
|
|
return v2
|
|
.end method
|
|
|
|
.method private final isOnHomeTab()Z
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;->storeTabsNavigation:Lcom/discord/stores/StoreTabsNavigation;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreTabsNavigation;->getSelectedTab()Lcom/discord/widgets/tabs/NavigationTab;
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v1, Lcom/discord/widgets/tabs/NavigationTab;->HOME:Lcom/discord/widgets/tabs/NavigationTab;
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method private final setUpToolbar()V
|
|
.locals 3
|
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
const v1, 0x7f040104
|
|
|
|
invoke-static {v0, v1}, Lcom/discord/utilities/color/ColorCompat;->getThemedColor(Landroid/content/Context;I)I
|
|
|
|
move-result v0
|
|
|
|
const v1, 0x7f080337
|
|
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
invoke-virtual {p0, v2, v1, v0}, Lcom/discord/app/AppFragment;->setActionBarDisplayHomeAsUpEnabled(ZLjava/lang/Integer;Ljava/lang/Integer;)Landroidx/appcompat/widget/Toolbar;
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;->getToolbar()Landroidx/appcompat/widget/Toolbar;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels$setUpToolbar$1;
|
|
|
|
invoke-direct {v1, p0}, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels$setUpToolbar$1;-><init>(Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/appcompat/widget/Toolbar;->setNavigationOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getContentViewResId()I
|
|
.locals 1
|
|
|
|
const v0, 0x7f0d01ba
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getPanelLayout()Lcom/discord/widgets/main/PanelLayout;
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;->getOverlappingPanels()Lcom/discord/widgets/main/OverlappingPanelsLayout;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public lockRightPanel(Z)V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onPause()V
|
|
.locals 1
|
|
|
|
invoke-super {p0}, Lcom/discord/app/AppFragment;->onPause()V
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;->panelNsfw:Lcom/discord/widgets/main/WidgetMainPanelNsfw;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/main/WidgetMainPanelNsfw;->unbind()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onTabSelected()V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;->viewModel:Lcom/discord/widgets/main/WidgetHomeViewModel;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/main/WidgetHomeViewModel;->getWidgetHomeModel$app_productionDiscordExternalRelease()Lcom/discord/widgets/main/WidgetHomeModel;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
sget-object v1, Lcom/discord/widgets/main/WidgetHomeHeaderManager;->INSTANCE:Lcom/discord/widgets/main/WidgetHomeHeaderManager;
|
|
|
|
invoke-virtual {v1, p0, v0}, Lcom/discord/widgets/main/WidgetHomeHeaderManager;->configure(Lcom/discord/widgets/main/WidgetHome;Lcom/discord/widgets/main/WidgetHomeModel;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
|
|
:cond_1
|
|
const-string v0, "viewModel"
|
|
|
|
invoke-static {v0}, Lw/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public onViewBound(Landroid/view/View;)V
|
|
.locals 4
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
invoke-super {p0, p1}, Lcom/discord/app/AppFragment;->onViewBound(Landroid/view/View;)V
|
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireActivity()Landroidx/fragment/app/FragmentActivity;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v1}, Landroidx/lifecycle/ViewModelProviders;->of(Landroidx/fragment/app/FragmentActivity;)Landroidx/lifecycle/ViewModelProvider;
|
|
|
|
move-result-object v1
|
|
|
|
const-class v2, Lcom/discord/widgets/main/WidgetHomeViewModel;
|
|
|
|
invoke-virtual {v1, v2}, Landroidx/lifecycle/ViewModelProvider;->get(Ljava/lang/Class;)Landroidx/lifecycle/ViewModel;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "ViewModelProviders.of(re\u2026omeViewModel::class.java)"
|
|
|
|
invoke-static {v1, v2}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
check-cast v1, Lcom/discord/widgets/main/WidgetHomeViewModel;
|
|
|
|
iput-object v1, p0, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;->viewModel:Lcom/discord/widgets/main/WidgetHomeViewModel;
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;->setUpToolbar()V
|
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getParentFragment()Landroidx/fragment/app/Fragment;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-virtual {v1}, Landroidx/fragment/app/Fragment;->getParentFragment()Landroidx/fragment/app/Fragment;
|
|
|
|
move-result-object v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-object v1, v0
|
|
|
|
:goto_0
|
|
instance-of v2, v1, Lcom/discord/widgets/tabs/WidgetTabsHost;
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
move-object v1, v0
|
|
|
|
:cond_1
|
|
check-cast v1, Lcom/discord/widgets/tabs/WidgetTabsHost;
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
sget-object v2, Lcom/discord/widgets/tabs/NavigationTab;->HOME:Lcom/discord/widgets/tabs/NavigationTab;
|
|
|
|
invoke-virtual {v1, v2, p0}, Lcom/discord/widgets/tabs/WidgetTabsHost;->registerTabSelectionListener(Lcom/discord/widgets/tabs/NavigationTab;Lcom/discord/widgets/tabs/OnTabSelectedListener;)V
|
|
|
|
:cond_2
|
|
new-instance v1, Lcom/discord/widgets/main/WidgetMainPanelNsfw;
|
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getChildFragmentManager()Landroidx/fragment/app/FragmentManager;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "childFragmentManager"
|
|
|
|
invoke-static {v2, v3}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-direct {v1, p1, v2}, Lcom/discord/widgets/main/WidgetMainPanelNsfw;-><init>(Landroid/view/View;Landroidx/fragment/app/FragmentManager;)V
|
|
|
|
iput-object v1, p0, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;->panelNsfw:Lcom/discord/widgets/main/WidgetMainPanelNsfw;
|
|
|
|
new-instance v1, Lcom/discord/widgets/main/WidgetMainPanelLoading;
|
|
|
|
invoke-direct {v1, p1}, Lcom/discord/widgets/main/WidgetMainPanelLoading;-><init>(Landroid/view/View;)V
|
|
|
|
iput-object v1, p0, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;->panelLoading:Lcom/discord/widgets/main/WidgetMainPanelLoading;
|
|
|
|
new-instance v1, Lcom/discord/widgets/main/WidgetMainPanelNoChannels;
|
|
|
|
invoke-direct {v1, p1}, Lcom/discord/widgets/main/WidgetMainPanelNoChannels;-><init>(Landroid/view/View;)V
|
|
|
|
iput-object v1, p0, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;->panelNoChannels:Lcom/discord/widgets/main/WidgetMainPanelNoChannels;
|
|
|
|
new-instance p1, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels$onViewBound$1;
|
|
|
|
invoke-direct {p1, p0}, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels$onViewBound$1;-><init>(Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;)V
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x2
|
|
|
|
invoke-static {p0, p1, v1, v2, v0}, Lcom/discord/app/AppFragment;->setOnBackPressed$default(Lcom/discord/app/AppFragment;Lrx/functions/Func0;IILjava/lang/Object;)V
|
|
|
|
return-void
|
|
|
|
:cond_3
|
|
const-string p1, "view"
|
|
|
|
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public onViewBoundOrOnResume()V
|
|
.locals 12
|
|
|
|
invoke-super {p0}, Lcom/discord/app/AppFragment;->onViewBoundOrOnResume()V
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;->panelLoading:Lcom/discord/widgets/main/WidgetMainPanelLoading;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0, p0}, Lcom/discord/widgets/main/WidgetMainPanelLoading;->configure(Lcom/discord/app/AppFragment;)V
|
|
|
|
:cond_0
|
|
sget-object v0, Lcom/discord/widgets/main/WidgetHomeModel;->Companion:Lcom/discord/widgets/main/WidgetHomeModel$Companion;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/main/WidgetHomeModel$Companion;->get()Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x2
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-static {v0, p0, v2, v1, v2}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->ui$default(Lrx/Observable;Lcom/discord/app/AppComponent;Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;ILjava/lang/Object;)Lrx/Observable;
|
|
|
|
move-result-object v3
|
|
|
|
const-class v4, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/4 v8, 0x0
|
|
|
|
new-instance v9, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels$onViewBoundOrOnResume$1;
|
|
|
|
invoke-direct {v9, p0}, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels$onViewBoundOrOnResume$1;-><init>(Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;)V
|
|
|
|
const/16 v10, 0x1e
|
|
|
|
const/4 v11, 0x0
|
|
|
|
invoke-static/range {v3 .. v11}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->appSubscribe$default(Lrx/Observable;Ljava/lang/Class;Landroid/content/Context;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;->configureOverlappingPanels()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public unreadCountView()Landroid/widget/TextView;
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/main/WidgetHomeOverlappingPanels;->getUnreadCountView()Landroid/widget/TextView;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|