DiffPageRecyclerView$DataRefreshImpl.smali
.class Lcom/sandboxol/common/widget/rv/pagerv/DiffPageRecyclerView$DataRefreshImpl;
.super Ljava/lang/Object;
.source "DiffPageRecyclerView.java"
# interfaces
.implements Lcom/sandboxol/common/base/diffutil/DataRefreshListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sandboxol/common/widget/rv/pagerv/DiffPageRecyclerView;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = "DataRefreshImpl"
.end annotation
# instance fields
.field final synthetic this$0:Lcom/sandboxol/common/widget/rv/pagerv/DiffPageRecyclerView;
# direct methods
.method constructor <init>(Lcom/sandboxol/common/widget/rv/pagerv/DiffPageRecyclerView;)V
.registers 2
.line 1
iput-object p1, p0, Lcom/sandboxol/common/widget/rv/pagerv/DiffPageRecyclerView$DataRefreshImpl;->this$0:Lcom/sandboxol/common/widget/rv/pagerv/DiffPageRecyclerView;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method static synthetic a(Landroidx/recyclerview/widget/RecyclerView;)V
.registers 2
const/4 v0, 0x0
.line 1
invoke-virtual {p0, v0}, Landroidx/recyclerview/widget/RecyclerView;->scrollToPosition(I)V
return-void
.end method
# virtual methods
.method public scrollToFirstItem()V
.registers 3
.line 1
iget-object v0, p0, Lcom/sandboxol/common/widget/rv/pagerv/DiffPageRecyclerView$DataRefreshImpl;->this$0:Lcom/sandboxol/common/widget/rv/pagerv/DiffPageRecyclerView;
# getter for: Lcom/sandboxol/common/widget/rv/pagerv/DiffPageRecyclerView;->binding:Landroidx/databinding/ViewDataBinding;
invoke-static {v0}, Lcom/sandboxol/common/widget/rv/pagerv/DiffPageRecyclerView;->access$000(Lcom/sandboxol/common/widget/rv/pagerv/DiffPageRecyclerView;)Landroidx/databinding/ViewDataBinding;
move-result-object v0
invoke-virtual {v0}, Landroidx/databinding/ViewDataBinding;->getRoot()Landroid/view/View;
move-result-object v0
sget v1, Lcom/sandboxol/common/R$id;->rvData:I
invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroidx/recyclerview/widget/RecyclerView;
if-eqz v0, :cond_22
.line 2
invoke-virtual {v0}, Landroid/view/ViewGroup;->getChildCount()I
move-result v1
if-lez v1, :cond_22
.line 3
new-instance v1, Lcom/sandboxol/common/widget/rv/pagerv/b;
invoke-direct {v1, v0}, Lcom/sandboxol/common/widget/rv/pagerv/b;-><init>(Landroidx/recyclerview/widget/RecyclerView;)V
invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->post(Ljava/lang/Runnable;)Z
:cond_22
return-void
.end method