417 lines
11 KiB
Smali
417 lines
11 KiB
Smali
.class public final Lcom/vk/debug/HintsDebugFragment;
|
|
.super Lcom/vk/core/fragments/BaseFragment1;
|
|
.source "HintsDebugFragment.kt"
|
|
|
|
# interfaces
|
|
.implements Lcom/vk/core/util/ItemClickListener;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/vk/debug/HintsDebugFragment$c;,
|
|
Lcom/vk/debug/HintsDebugFragment$b;,
|
|
Lcom/vk/debug/HintsDebugFragment$a;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/vk/core/fragments/BaseFragment1;",
|
|
"Lcom/vk/core/util/ItemClickListener<",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private F:Lcom/vk/debug/HintsDebugFragment$c;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Lcom/vk/core/fragments/BaseFragment1;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public bridge synthetic a(Ljava/lang/Object;I)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
check-cast p1, Ljava/lang/String;
|
|
|
|
invoke-virtual {p0, p1, p2}, Lcom/vk/debug/HintsDebugFragment;->a(Ljava/lang/String;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Ljava/lang/String;I)V
|
|
.locals 2
|
|
|
|
.line 2
|
|
new-instance p2, Lcom/vk/api/account/AccountShowHelpHint;
|
|
|
|
invoke-direct {p2, p1}, Lcom/vk/api/account/AccountShowHelpHint;-><init>(Ljava/lang/String;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
.line 3
|
|
invoke-static {p2, v0, v1, v0}, Lcom/vk/api/base/ApiRequest;->d(Lcom/vk/api/base/ApiRequest;Lcom/vk/api/base/ApiThreadHolder;ILjava/lang/Object;)Lio/reactivex/Observable;
|
|
|
|
move-result-object p2
|
|
|
|
.line 4
|
|
sget-object v0, Lcom/vk/debug/HintsDebugFragment$e;->a:Lcom/vk/debug/HintsDebugFragment$e;
|
|
|
|
invoke-virtual {p2, v0}, Lio/reactivex/Observable;->c(Lio/reactivex/functions/Function;)Lio/reactivex/Observable;
|
|
|
|
move-result-object p2
|
|
|
|
.line 5
|
|
new-instance v0, Lcom/vk/debug/HintsDebugFragment$f;
|
|
|
|
invoke-direct {v0, p1}, Lcom/vk/debug/HintsDebugFragment$f;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 6
|
|
sget-object p1, Lcom/vk/debug/HintsDebugFragment$g;->a:Lcom/vk/debug/HintsDebugFragment$g;
|
|
|
|
.line 7
|
|
invoke-virtual {p2, v0, p1}, Lio/reactivex/Observable;->a(Lio/reactivex/functions/Consumer;Lio/reactivex/functions/Consumer;)Lio/reactivex/disposables/Disposable;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "it"
|
|
|
|
.line 8
|
|
invoke-static {p1, p2}, Lkotlin/jvm/internal/Intrinsics;->a(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0, p1}, Lcom/vk/core/fragments/BaseFragment1;->d(Lio/reactivex/disposables/Disposable;)Lio/reactivex/disposables/Disposable;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onCreate(Landroid/os/Bundle;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Lcom/vk/core/fragments/BaseFragment1;->onCreate(Landroid/os/Bundle;)V
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getArguments()Landroid/os/Bundle;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const-string v0, "hints"
|
|
|
|
invoke-virtual {p1, v0}, Landroid/os/Bundle;->getStringArrayList(Ljava/lang/String;)Ljava/util/ArrayList;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance p1, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
.line 3
|
|
:goto_0
|
|
new-instance v0, Lcom/vk/debug/HintsDebugFragment$c;
|
|
|
|
invoke-direct {v0, p0}, Lcom/vk/debug/HintsDebugFragment$c;-><init>(Lcom/vk/core/util/ItemClickListener;)V
|
|
|
|
iput-object v0, p0, Lcom/vk/debug/HintsDebugFragment;->F:Lcom/vk/debug/HintsDebugFragment$c;
|
|
|
|
.line 4
|
|
iget-object v0, p0, Lcom/vk/debug/HintsDebugFragment;->F:Lcom/vk/debug/HintsDebugFragment$c;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {v0, p1}, Lcom/vk/lists/SimpleAdapter;->setItems(Ljava/util/List;)V
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
const-string p1, "adapter"
|
|
|
|
invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->b(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
|
|
.locals 6
|
|
|
|
const/4 p3, 0x0
|
|
|
|
const v0, 0x7f0d0169
|
|
|
|
.line 1
|
|
invoke-virtual {p1, v0, p2, p3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_8
|
|
|
|
check-cast p1, Landroid/view/ViewGroup;
|
|
|
|
const p2, 0x7f0a031c
|
|
|
|
.line 2
|
|
invoke-virtual {p1, p2}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Landroidx/appcompat/widget/Toolbar;
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
const v0, 0x7f1202ae
|
|
|
|
.line 3
|
|
invoke-virtual {p0, v0}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p2, v0}, Landroidx/appcompat/widget/Toolbar;->setTitle(Ljava/lang/CharSequence;)V
|
|
|
|
.line 4
|
|
invoke-virtual {p2}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "toolbar.context"
|
|
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->a(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const v1, 0x7f080376
|
|
|
|
invoke-static {v0, v1}, Lcom/vk/core/util/ContextExtKt;->c(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p2, v0}, Landroidx/appcompat/widget/Toolbar;->setNavigationIcon(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 5
|
|
invoke-static {p0, p2}, Lcom/vtosters/lite/ViewUtils;->a(Lcom/vk/core/fragments/FragmentImpl;Landroidx/appcompat/widget/Toolbar;)V
|
|
|
|
.line 6
|
|
new-instance v0, Lcom/vk/debug/HintsDebugFragment$d;
|
|
|
|
invoke-direct {v0, p0}, Lcom/vk/debug/HintsDebugFragment$d;-><init>(Lcom/vk/debug/HintsDebugFragment;)V
|
|
|
|
invoke-virtual {p2, v0}, Landroidx/appcompat/widget/Toolbar;->setNavigationOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
:cond_0
|
|
const p2, 0x7f0a031b
|
|
|
|
.line 7
|
|
invoke-virtual {p1, p2}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
if-eqz p2, :cond_7
|
|
|
|
.line 8
|
|
iget-object v0, p0, Lcom/vk/debug/HintsDebugFragment;->F:Lcom/vk/debug/HintsDebugFragment$c;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
invoke-virtual {p2, v0}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V
|
|
|
|
.line 9
|
|
new-instance v0, Landroidx/recyclerview/widget/LinearLayoutManager;
|
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v2, :cond_5
|
|
|
|
invoke-direct {v0, v2}, Landroidx/recyclerview/widget/LinearLayoutManager;-><init>(Landroid/content/Context;)V
|
|
|
|
invoke-virtual {p2, v0}, Landroidx/recyclerview/widget/RecyclerView;->setLayoutManager(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)V
|
|
|
|
.line 10
|
|
sget-object v0, Lcom/vk/core/util/AppContextHolder;->a:Landroid/content/Context;
|
|
|
|
const-string v1, "AppContextHolder.context"
|
|
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->a(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "AppContextHolder.context.resources"
|
|
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->a(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
|
|
|
|
move-result-object v0
|
|
|
|
iget v0, v0, Landroid/content/res/Configuration;->screenWidthDp:I
|
|
|
|
.line 11
|
|
invoke-virtual {p2}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v1}, Lcom/vk/core/util/Screen;->l(Landroid/content/Context;)Z
|
|
|
|
move-result v1
|
|
|
|
.line 12
|
|
invoke-virtual {p2}, Landroidx/recyclerview/widget/RecyclerView;->getAdapter()Landroidx/recyclerview/widget/RecyclerView$Adapter;
|
|
|
|
move-result-object v2
|
|
|
|
.line 13
|
|
instance-of v3, v2, Lcom/vk/lists/PaginatedRecyclerAdapter;
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
.line 14
|
|
check-cast v2, Lcom/vk/lists/PaginatedRecyclerAdapter;
|
|
|
|
iget-object v2, v2, Lcom/vk/lists/PaginatedRecyclerAdapter;->a:Landroidx/recyclerview/widget/RecyclerView$Adapter;
|
|
|
|
.line 15
|
|
:cond_1
|
|
new-instance v3, Lcom/vk/core/ui/CardItemDecorator;
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
check-cast v2, Lcom/vk/core/ui/Provider;
|
|
|
|
xor-int/lit8 v4, v1, 0x1
|
|
|
|
invoke-direct {v3, p2, v2, v4}, Lcom/vk/core/ui/CardItemDecorator;-><init>(Landroidx/recyclerview/widget/RecyclerView;Lcom/vk/core/ui/Provider;Z)V
|
|
|
|
const/high16 v2, 0x40c00000 # 6.0f
|
|
|
|
.line 16
|
|
invoke-static {v2}, Lme/grishka/appkit/utils/V;->a(F)I
|
|
|
|
move-result v4
|
|
|
|
invoke-static {v2}, Lme/grishka/appkit/utils/V;->a(F)I
|
|
|
|
move-result v2
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
const/high16 v5, 0x41000000 # 8.0f
|
|
|
|
invoke-static {v5}, Lme/grishka/appkit/utils/V;->a(F)I
|
|
|
|
move-result v5
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const/4 v5, 0x0
|
|
|
|
:goto_0
|
|
invoke-virtual {v3, v4, v2, v5, p3}, Lcom/vk/core/ui/CardItemDecorator;->a(IIII)V
|
|
|
|
.line 17
|
|
invoke-virtual {p2, v3}, Landroidx/recyclerview/widget/RecyclerView;->addItemDecoration(Landroidx/recyclerview/widget/RecyclerView$ItemDecoration;)V
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
const/16 v1, 0x10
|
|
|
|
add-int/lit16 v0, v0, -0x39c
|
|
|
|
.line 18
|
|
div-int/lit8 v0, v0, 0x2
|
|
|
|
invoke-static {v1, v0}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v0
|
|
|
|
int-to-float v0, v0
|
|
|
|
invoke-static {v0}, Lcom/vk/core/util/Screen;->a(F)I
|
|
|
|
move-result v0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
const/4 v0, 0x0
|
|
|
|
:goto_1
|
|
const/high16 v1, 0x2000000
|
|
|
|
.line 19
|
|
invoke-virtual {p2, v1}, Landroid/view/ViewGroup;->setScrollBarStyle(I)V
|
|
|
|
.line 20
|
|
invoke-virtual {p2, p3}, Landroidx/recyclerview/widget/RecyclerView;->setClipToPadding(Z)V
|
|
|
|
.line 21
|
|
invoke-virtual {p2, v0, p3, v0, p3}, Landroid/view/ViewGroup;->setPadding(IIII)V
|
|
|
|
goto :goto_2
|
|
|
|
.line 22
|
|
:cond_4
|
|
new-instance p1, Lkotlin/TypeCastException;
|
|
|
|
const-string p2, "null cannot be cast to non-null type com.vk.core.ui.Provider"
|
|
|
|
invoke-direct {p1, p2}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
.line 23
|
|
:cond_5
|
|
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->a()V
|
|
|
|
throw v1
|
|
|
|
:cond_6
|
|
const-string p1, "adapter"
|
|
|
|
.line 24
|
|
invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->b(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
|
|
:cond_7
|
|
:goto_2
|
|
return-object p1
|
|
|
|
.line 25
|
|
:cond_8
|
|
new-instance p1, Lkotlin/TypeCastException;
|
|
|
|
const-string p2, "null cannot be cast to non-null type android.view.ViewGroup"
|
|
|
|
invoke-direct {p1, p2}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|