SmartRefreshLayoutBindingAdapters.smali
.class public Lcom/sandboxol/common/binding/adapter/SmartRefreshLayoutBindingAdapters;
.super Ljava/lang/Object;
.source "SmartRefreshLayoutBindingAdapters.java"
# direct methods
.method public constructor <init>()V
.registers 1
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method static synthetic a(Lcom/sandboxol/common/command/ReplyCommand;Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;Lcom/scwang/smartrefresh/layout/a/j;)V
.registers 4
if-eqz p0, :cond_10
.line 1
invoke-virtual {p0}, Lcom/sandboxol/common/command/ReplyCommand;->execute()V
const/16 p0, 0x1f4
const/4 p2, 0x1
const/4 v0, 0x0
.line 2
invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v0
invoke-virtual {p1, p0, p2, v0}, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->finishRefresh(IZLjava/lang/Boolean;)Lcom/scwang/smartrefresh/layout/a/j;
:cond_10
return-void
.end method
.method static synthetic a(Lcom/sandboxol/common/command/ReplyCommand;Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;ZLcom/scwang/smartrefresh/layout/a/j;)V
.registers 4
if-eqz p0, :cond_11
const/4 p3, 0x0
.line 3
invoke-static {p3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p3
invoke-virtual {p0, p3}, Lcom/sandboxol/common/command/ReplyCommand;->execute(Ljava/lang/Object;)V
const/16 p0, 0x1f4
const/4 p3, 0x1
xor-int/2addr p2, p3
.line 4
invoke-virtual {p1, p0, p3, p2}, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->finishLoadMore(IZZ)Lcom/scwang/smartrefresh/layout/a/j;
:cond_11
return-void
.end method
.method public static isLoadMoreWhenOnlyPage(Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;Z)V
.registers 2
.line 1
invoke-virtual {p0, p1}, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->setEnableLoadMoreWhenContentNotFull(Z)Lcom/scwang/smartrefresh/layout/a/j;
return-void
.end method
.method public static onEnableRefresh(Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;Z)V
.registers 2
.line 1
invoke-virtual {p0, p1}, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->setEnableRefresh(Z)Lcom/scwang/smartrefresh/layout/a/j;
return-void
.end method
.method public static onLoadMore(Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;Z)V
.registers 2
.line 1
invoke-virtual {p0, p1}, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->setEnableLoadMore(Z)Lcom/scwang/smartrefresh/layout/a/j;
return-void
.end method
.method public static onLoadMoreCommand(Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;Lcom/sandboxol/common/command/ReplyCommand;Z)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;",
"Lcom/sandboxol/common/command/ReplyCommand<",
"Ljava/lang/Integer;",
">;Z)V"
}
.end annotation
xor-int/lit8 v0, p2, 0x1
.line 1
invoke-virtual {p0, v0}, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->setNoMoreData(Z)Lcom/scwang/smartrefresh/layout/a/j;
.line 2
new-instance v0, Lcom/sandboxol/common/binding/adapter/l;
invoke-direct {v0, p1, p0, p2}, Lcom/sandboxol/common/binding/adapter/l;-><init>(Lcom/sandboxol/common/command/ReplyCommand;Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;Z)V
invoke-virtual {p0, v0}, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->setOnLoadMoreListener(Lcom/scwang/smartrefresh/layout/b/b;)Lcom/scwang/smartrefresh/layout/a/j;
return-void
.end method
.method public static onRefreshCommand(Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;Lcom/sandboxol/common/command/ReplyCommand;Z)V
.registers 3
.line 1
new-instance p2, Lcom/sandboxol/common/binding/adapter/k;
invoke-direct {p2, p1, p0}, Lcom/sandboxol/common/binding/adapter/k;-><init>(Lcom/sandboxol/common/command/ReplyCommand;Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;)V
invoke-virtual {p0, p2}, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->setOnRefreshListener(Lcom/scwang/smartrefresh/layout/b/d;)Lcom/scwang/smartrefresh/layout/a/j;
return-void
.end method