Files
vtosters/smali/smali_classes4/com/vk/notifications/SourcesNotificationsSettingsFragment$Adapter.smali
T

200 lines
6.5 KiB
Smali

.class final Lcom/vk/notifications/SourcesNotificationsSettingsFragment$Adapter;
.super Lcom/vk/lists/SimpleAdapter;
.source "SourcesNotificationsSettingsFragment.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/vk/notifications/SourcesNotificationsSettingsFragment;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1a
name = "Adapter"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/vk/lists/SimpleAdapter<",
"Lcom/vk/common/i/RecyclerItem;",
"Landroidx/recyclerview/widget/RecyclerView$ViewHolder;",
">;"
}
.end annotation
# instance fields
.field private final c:Landroid/app/Activity;
.field private final d:Lcom/vk/notifications/SourcesNotificationsSettingsFragment;
# direct methods
.method public constructor <init>(Landroid/app/Activity;Lcom/vk/notifications/SourcesNotificationsSettingsFragment;)V
.locals 0
.line 1
invoke-direct {p0}, Lcom/vk/lists/SimpleAdapter;-><init>()V
iput-object p1, p0, Lcom/vk/notifications/SourcesNotificationsSettingsFragment$Adapter;->c:Landroid/app/Activity;
iput-object p2, p0, Lcom/vk/notifications/SourcesNotificationsSettingsFragment$Adapter;->d:Lcom/vk/notifications/SourcesNotificationsSettingsFragment;
return-void
.end method
# virtual methods
.method public final a(Lcom/vk/dto/user/UserProfile;)V
.locals 11
.line 1
iget-object v0, p0, Lcom/vk/notifications/SourcesNotificationsSettingsFragment$Adapter;->d:Lcom/vk/notifications/SourcesNotificationsSettingsFragment;
iget v1, p1, Lcom/vk/dto/user/UserProfile;->b:I
invoke-virtual {v0, v1}, Lcom/vk/notifications/SourcesNotificationsSettingsFragment;->p0(I)Lio/reactivex/Observable;
move-result-object v2
.line 2
iget-object v3, p0, Lcom/vk/notifications/SourcesNotificationsSettingsFragment$Adapter;->c:Landroid/app/Activity;
const-wide/16 v4, 0x0
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x0
const/16 v9, 0x1e
const/4 v10, 0x0
invoke-static/range {v2 .. v10}, Lcom/vk/core/extensions/RxExtKt;->a(Lio/reactivex/Observable;Landroid/content/Context;JIZZILjava/lang/Object;)Lio/reactivex/Observable;
move-result-object v0
.line 3
new-instance v1, Lcom/vk/notifications/SourcesNotificationsSettingsFragment$Adapter$unsubsribeAction$1;
invoke-direct {v1, p0, p1}, Lcom/vk/notifications/SourcesNotificationsSettingsFragment$Adapter$unsubsribeAction$1;-><init>(Lcom/vk/notifications/SourcesNotificationsSettingsFragment$Adapter;Lcom/vk/dto/user/UserProfile;)V
.line 4
sget-object p1, Lcom/vk/notifications/SourcesNotificationsSettingsFragment$Adapter$c;->a:Lcom/vk/notifications/SourcesNotificationsSettingsFragment$Adapter$c;
.line 5
invoke-virtual {v0, v1, p1}, Lio/reactivex/Observable;->a(Lio/reactivex/functions/Consumer;Lio/reactivex/functions/Consumer;)Lio/reactivex/disposables/Disposable;
return-void
.end method
.method public getItemViewType(I)I
.locals 0
.line 1
invoke-virtual {p0, p1}, Lcom/vk/lists/SimpleAdapter;->k(I)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/vk/common/i/RecyclerItem;
invoke-virtual {p1}, Lcom/vk/common/i/RecyclerItem;->b()I
move-result p1
return p1
.end method
.method public final j()Landroid/app/Activity;
.locals 1
.line 1
iget-object v0, p0, Lcom/vk/notifications/SourcesNotificationsSettingsFragment$Adapter;->c:Landroid/app/Activity;
return-object v0
.end method
.method public final k()Lcom/vk/notifications/SourcesNotificationsSettingsFragment;
.locals 1
.line 1
iget-object v0, p0, Lcom/vk/notifications/SourcesNotificationsSettingsFragment$Adapter;->d:Lcom/vk/notifications/SourcesNotificationsSettingsFragment;
return-object v0
.end method
.method public onBindViewHolder(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)V
.locals 1
.line 1
invoke-virtual {p0, p2}, Lcom/vk/lists/SimpleAdapter;->k(I)Ljava/lang/Object;
move-result-object p2
check-cast p2, Lcom/vk/common/i/RecyclerItem;
.line 2
instance-of v0, p2, Lcom/vk/notifications/SourcesNotificationsSettingsFragment$d;
if-eqz v0, :cond_0
check-cast p1, Lcom/vtosters/lite/ui/holder/UserHolder;
check-cast p2, Lcom/vk/notifications/SourcesNotificationsSettingsFragment$d;
invoke-virtual {p2}, Lcom/vk/notifications/SourcesNotificationsSettingsFragment$d;->c()Lcom/vk/dto/user/UserProfile;
move-result-object p2
invoke-virtual {p1, p2}, Lcom/vtosters/lite/ui/holder/RecyclerHolder;->a(Ljava/lang/Object;)V
:cond_0
return-void
.end method
.method public onCreateViewHolder(Landroid/view/ViewGroup;I)Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
.locals 1
if-nez p2, :cond_0
.line 1
invoke-static {p1}, Lcom/vtosters/lite/ui/holder/UserHolder;->a(Landroid/view/ViewGroup;)Lcom/vtosters/lite/ui/holder/UserHolder;
move-result-object p1
.line 2
new-instance p2, Lcom/vk/notifications/SourcesNotificationsSettingsFragment$Adapter$a;
invoke-direct {p2, p0}, Lcom/vk/notifications/SourcesNotificationsSettingsFragment$Adapter$a;-><init>(Lcom/vk/notifications/SourcesNotificationsSettingsFragment$Adapter;)V
invoke-virtual {p1, p2}, Lcom/vtosters/lite/ui/holder/UserHolder;->b(Lcom/vk/common/g/VoidF1;)Lcom/vtosters/lite/ui/holder/UserHolder;
.line 3
new-instance p2, Lcom/vk/notifications/SourcesNotificationsSettingsFragment$Adapter$b;
invoke-direct {p2, p0}, Lcom/vk/notifications/SourcesNotificationsSettingsFragment$Adapter$b;-><init>(Lcom/vk/notifications/SourcesNotificationsSettingsFragment$Adapter;)V
invoke-virtual {p1, p2}, Lcom/vtosters/lite/ui/holder/UserHolder;->a(Lcom/vk/common/g/VoidF1;)Lcom/vtosters/lite/ui/holder/UserHolder;
const-string p2, "UserHolder.actionable<Us\u2026 })"
invoke-static {p1, p2}, Lkotlin/jvm/internal/Intrinsics;->a(Ljava/lang/Object;Ljava/lang/String;)V
goto :goto_0
.line 4
:cond_0
new-instance p2, Lcom/vk/notifications/SourcesNotificationsSettingsFragment$b;
iget-object v0, p0, Lcom/vk/notifications/SourcesNotificationsSettingsFragment$Adapter;->d:Lcom/vk/notifications/SourcesNotificationsSettingsFragment;
invoke-direct {p2, p1, v0}, Lcom/vk/notifications/SourcesNotificationsSettingsFragment$b;-><init>(Landroid/view/ViewGroup;Lcom/vk/notifications/SourcesNotificationsSettingsFragment;)V
move-object p1, p2
:goto_0
return-object p1
.end method