115 lines
3.1 KiB
Smali
115 lines
3.1 KiB
Smali
.class final Lcom/vk/common/widget/BottomSwipePaginatedView$a;
|
|
.super Lcom/vk/lists/AbstractPaginatedView$c;
|
|
.source "BottomSwipePaginatedView.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/vk/common/widget/BottomSwipePaginatedView;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x1a
|
|
name = "a"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private final a:Ljava/lang/ref/WeakReference;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/ref/WeakReference<",
|
|
"Lcom/vtosters/lite/ui/refreshlayout/SwipeRefreshLayout;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/vtosters/lite/ui/refreshlayout/SwipeRefreshLayout;)V
|
|
.locals 1
|
|
|
|
const-string v0, "swipeRefreshLayout"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->b(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 44
|
|
invoke-direct {p0}, Lcom/vk/lists/AbstractPaginatedView$c;-><init>()V
|
|
|
|
.line 45
|
|
new-instance v0, Ljava/lang/ref/WeakReference;
|
|
|
|
invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
|
|
|
|
iput-object v0, p0, Lcom/vk/common/widget/BottomSwipePaginatedView$a;->a:Ljava/lang/ref/WeakReference;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Landroid/support/v4/widget/SwipeRefreshLayout$b;)V
|
|
.locals 1
|
|
|
|
const-string v0, "listener"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->b(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 52
|
|
iget-object v0, p0, Lcom/vk/common/widget/BottomSwipePaginatedView$a;->a:Ljava/lang/ref/WeakReference;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/vtosters/lite/ui/refreshlayout/SwipeRefreshLayout;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0, p1}, Lcom/vtosters/lite/ui/refreshlayout/SwipeRefreshLayout;->setOnRefreshListener(Landroid/support/v4/widget/SwipeRefreshLayout$b;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Z)V
|
|
.locals 1
|
|
|
|
.line 48
|
|
iget-object v0, p0, Lcom/vk/common/widget/BottomSwipePaginatedView$a;->a:Ljava/lang/ref/WeakReference;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/vtosters/lite/ui/refreshlayout/SwipeRefreshLayout;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0, p1}, Lcom/vtosters/lite/ui/refreshlayout/SwipeRefreshLayout;->setEnabled(Z)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public b(Z)V
|
|
.locals 1
|
|
|
|
.line 56
|
|
iget-object v0, p0, Lcom/vk/common/widget/BottomSwipePaginatedView$a;->a:Ljava/lang/ref/WeakReference;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/vtosters/lite/ui/refreshlayout/SwipeRefreshLayout;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0, p1}, Lcom/vtosters/lite/ui/refreshlayout/SwipeRefreshLayout;->setRefreshing(Z)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|