2019-02-04 20:08:30 +00:00
.class public abstract L androidx/recyclerview/widget/RecyclerView$Adapter ;
.super L java/lang/Object ;
2019-02-04 20:29:01 +00:00
.source "RecyclerView.java"
2019-02-04 20:08:30 +00:00
# annotations
.annotation system L dalvik/annotation/EnclosingClass ;
value = L androidx/recyclerview/widget/RecyclerView ;
.end annotation
.annotation system L dalvik/annotation/InnerClass ;
accessFlags = 0x409
name = "Adapter"
.end annotation
.annotation system L dalvik/annotation/Signature ;
value = {
"<VH:" ,
"Landroidx/recyclerview/widget/RecyclerView$ViewHolder;" ,
">" ,
"Ljava/lang/Object;"
}
.end annotation
# instance fields
.field private mHasStableIds : Z
.field private final mObservable : L androidx/recyclerview/widget/RecyclerView$AdapterDataObservable ;
# direct methods
.method public constructor <init> ( ) V
.locals 1
invoke-direct { p0 } , L java/lang/Object ;-> <init> ( ) V
new-instance v0 , L androidx/recyclerview/widget/RecyclerView$AdapterDataObservable ;
invoke-direct { v0 } , L androidx/recyclerview/widget/RecyclerView$AdapterDataObservable ;-> <init> ( ) V
iput-object v0 , p0 , L androidx/recyclerview/widget/RecyclerView$Adapter ;-> mObservable : L androidx/recyclerview/widget/RecyclerView$AdapterDataObservable ;
const/4 v0 , 0x0
iput-boolean v0 , p0 , L androidx/recyclerview/widget/RecyclerView$Adapter ;-> mHasStableIds : Z
return-void
.end method
# virtual methods
.method public final bindViewHolder ( L androidx/recyclerview/widget/RecyclerView$ViewHolder ;I ) V
.locals 2
. param p1 # Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
.annotation system L dalvik/annotation/Signature ;
value = {
"(TVH;I)V"
}
.end annotation
iput p2 , p1 , L androidx/recyclerview/widget/RecyclerView$ViewHolder ;-> mPosition : I
invoke-virtual { p0 } , L androidx/recyclerview/widget/RecyclerView$Adapter ;-> hasStableIds ( ) Z
move-result v0
if-eqz v0 , :cond_0
invoke-virtual { p0 , p2 } , L androidx/recyclerview/widget/RecyclerView$Adapter ;-> getItemId ( I ) J
move-result-wide v0
iput-wide v0 , p1 , L androidx/recyclerview/widget/RecyclerView$ViewHolder ;-> mItemId : J
:cond_0
const/16 v0 , 0x207
const/4 v1 , 0x1
invoke-virtual { p1 , v1 , v0 } , L androidx/recyclerview/widget/RecyclerView$ViewHolder ;-> setFlags ( II ) V
const-string v0 , "RV OnBindView"
invoke-static { v0 } , L androidx/core/os/TraceCompat ;-> beginSection ( L java/lang/String ;) V
invoke-virtual { p1 } , L androidx/recyclerview/widget/RecyclerView$ViewHolder ;-> getUnmodifiedPayloads ( ) L java/util/List ;
move-result-object v0
invoke-virtual { p0 , p1 , p2 , v0 } , L androidx/recyclerview/widget/RecyclerView$Adapter ;-> onBindViewHolder ( L androidx/recyclerview/widget/RecyclerView$ViewHolder ;I L java/util/List ;) V
invoke-virtual { p1 } , L androidx/recyclerview/widget/RecyclerView$ViewHolder ;-> clearPayload ( ) V
iget-object p1 , p1 , L androidx/recyclerview/widget/RecyclerView$ViewHolder ;-> itemView : L android/view/View ;
invoke-virtual { p1 } , L android/view/View ;-> getLayoutParams ( ) L android/view/ViewGroup$LayoutParams ;
move-result-object p1
instance-of p2 , p1 , L androidx/recyclerview/widget/RecyclerView$LayoutParams ;
if-eqz p2 , :cond_1
check-cast p1 , L androidx/recyclerview/widget/RecyclerView$LayoutParams ;
iput-boolean v1 , p1 , L androidx/recyclerview/widget/RecyclerView$LayoutParams ;-> mInsetsDirty : Z
:cond_1
invoke-static { } , L androidx/core/os/TraceCompat ;-> endSection ( ) V
return-void
.end method
.method public final createViewHolder ( L android/view/ViewGroup ;I ) L androidx/recyclerview/widget/RecyclerView$ViewHolder ;
.locals 1
. param p1 # Landroid/view/ViewGroup;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
.annotation build L androidx/annotation/NonNull ;
.end annotation
.annotation system L dalvik/annotation/Signature ;
value = {
"(" ,
"Landroid/view/ViewGroup;" ,
"I)TVH;"
}
.end annotation
:try_start_0
const-string v0 , "RV CreateView"
invoke-static { v0 } , L androidx/core/os/TraceCompat ;-> beginSection ( L java/lang/String ;) V
invoke-virtual { p0 , p1 , p2 } , L androidx/recyclerview/widget/RecyclerView$Adapter ;-> onCreateViewHolder ( L android/view/ViewGroup ;I ) L androidx/recyclerview/widget/RecyclerView$ViewHolder ;
move-result-object p1
iget-object v0 , p1 , L androidx/recyclerview/widget/RecyclerView$ViewHolder ;-> itemView : L android/view/View ;
invoke-virtual { v0 } , L android/view/View ;-> getParent ( ) L android/view/ViewParent ;
move-result-object v0
if-nez v0 , :cond_0
iput p2 , p1 , L androidx/recyclerview/widget/RecyclerView$ViewHolder ;-> mItemViewType : I
:try_end_0
.catchall { :try_start_0 . . :try_end_0 } :catchall_0
invoke-static { } , L androidx/core/os/TraceCompat ;-> endSection ( ) V
return-object p1
:cond_0
:try_start_1
new-instance p1 , L java/lang/IllegalStateException ;
const-string p2 , "ViewHolder views must not be attached when created. Ensure that you are not passing \'true\' to the attachToRoot parameter of LayoutInflater.inflate(..., boolean attachToRoot)"
invoke-direct { p1 , p2 } , L java/lang/IllegalStateException ;-> <init> ( L java/lang/String ;) V
throw p1
:try_end_1
.catchall { :try_start_1 . . :try_end_1 } :catchall_0
:catchall_0
move-exception p1
invoke-static { } , L androidx/core/os/TraceCompat ;-> endSection ( ) V
throw p1
.end method
.method public abstract getItemCount ( ) I
.end method
.method public getItemId ( I ) J
.locals 2
const-wide/16 v0 , - 0x1
return-wide v0
.end method
.method public getItemViewType ( I ) I
.locals 0
const/4 p1 , 0x0
return p1
.end method
.method public final hasObservers ( ) Z
.locals 1
iget-object v0 , p0 , L androidx/recyclerview/widget/RecyclerView$Adapter ;-> mObservable : L androidx/recyclerview/widget/RecyclerView$AdapterDataObservable ;
invoke-virtual { v0 } , L androidx/recyclerview/widget/RecyclerView$AdapterDataObservable ;-> hasObservers ( ) Z
move-result v0
return v0
.end method
.method public final hasStableIds ( ) Z
.locals 1
iget-boolean v0 , p0 , L androidx/recyclerview/widget/RecyclerView$Adapter ;-> mHasStableIds : Z
return v0
.end method
.method public final notifyDataSetChanged ( ) V
.locals 1
iget-object v0 , p0 , L androidx/recyclerview/widget/RecyclerView$Adapter ;-> mObservable : L androidx/recyclerview/widget/RecyclerView$AdapterDataObservable ;
invoke-virtual { v0 } , L androidx/recyclerview/widget/RecyclerView$AdapterDataObservable ;-> notifyChanged ( ) V
return-void
.end method
.method public final notifyItemChanged ( I ) V
.locals 2
iget-object v0 , p0 , L androidx/recyclerview/widget/RecyclerView$Adapter ;-> mObservable : L androidx/recyclerview/widget/RecyclerView$AdapterDataObservable ;
const/4 v1 , 0x1
invoke-virtual { v0 , p1 , v1 } , L androidx/recyclerview/widget/RecyclerView$AdapterDataObservable ;-> notifyItemRangeChanged ( II ) V
return-void
.end method
.method public final notifyItemChanged ( I L java/lang/Object ;) V
.locals 2
. param p2 # Ljava/lang/Object;
.annotation build L androidx/annotation/Nullable ;
.end annotation
. end param
iget-object v0 , p0 , L androidx/recyclerview/widget/RecyclerView$Adapter ;-> mObservable : L androidx/recyclerview/widget/RecyclerView$AdapterDataObservable ;
const/4 v1 , 0x1
invoke-virtual { v0 , p1 , v1 , p2 } , L androidx/recyclerview/widget/RecyclerView$AdapterDataObservable ;-> notifyItemRangeChanged ( II L java/lang/Object ;) V
return-void
.end method
.method public final notifyItemInserted ( I ) V
.locals 2
iget-object v0 , p0 , L androidx/recyclerview/widget/RecyclerView$Adapter ;-> mObservable : L androidx/recyclerview/widget/RecyclerView$AdapterDataObservable ;
const/4 v1 , 0x1
invoke-virtual { v0 , p1 , v1 } , L androidx/recyclerview/widget/RecyclerView$AdapterDataObservable ;-> notifyItemRangeInserted ( II ) V
return-void
.end method
.method public final notifyItemMoved ( II ) V
.locals 1
iget-object v0 , p0 , L androidx/recyclerview/widget/RecyclerView$Adapter ;-> mObservable : L androidx/recyclerview/widget/RecyclerView$AdapterDataObservable ;
invoke-virtual { v0 , p1 , p2 } , L androidx/recyclerview/widget/RecyclerView$AdapterDataObservable ;-> notifyItemMoved ( II ) V
return-void
.end method
.method public final notifyItemRangeChanged ( II ) V
.locals 1
iget-object v0 , p0 , L androidx/recyclerview/widget/RecyclerView$Adapter ;-> mObservable : L androidx/recyclerview/widget/RecyclerView$AdapterDataObservable ;
invoke-virtual { v0 , p1 , p2 } , L androidx/recyclerview/widget/RecyclerView$AdapterDataObservable ;-> notifyItemRangeChanged ( II ) V
return-void
.end method
.method public final notifyItemRangeChanged ( II L java/lang/Object ;) V
.locals 1
. param p3 # Ljava/lang/Object;
.annotation build L androidx/annotation/Nullable ;
.end annotation
. end param
iget-object v0 , p0 , L androidx/recyclerview/widget/RecyclerView$Adapter ;-> mObservable : L androidx/recyclerview/widget/RecyclerView$AdapterDataObservable ;
invoke-virtual { v0 , p1 , p2 , p3 } , L androidx/recyclerview/widget/RecyclerView$AdapterDataObservable ;-> notifyItemRangeChanged ( II L java/lang/Object ;) V
return-void
.end method
.method public final notifyItemRangeInserted ( II ) V
.locals 1
iget-object v0 , p0 , L androidx/recyclerview/widget/RecyclerView$Adapter ;-> mObservable : L androidx/recyclerview/widget/RecyclerView$AdapterDataObservable ;
invoke-virtual { v0 , p1 , p2 } , L androidx/recyclerview/widget/RecyclerView$AdapterDataObservable ;-> notifyItemRangeInserted ( II ) V
return-void
.end method
.method public final notifyItemRangeRemoved ( II ) V
.locals 1
iget-object v0 , p0 , L androidx/recyclerview/widget/RecyclerView$Adapter ;-> mObservable : L androidx/recyclerview/widget/RecyclerView$AdapterDataObservable ;
invoke-virtual { v0 , p1 , p2 } , L androidx/recyclerview/widget/RecyclerView$AdapterDataObservable ;-> notifyItemRangeRemoved ( II ) V
return-void
.end method
.method public final notifyItemRemoved ( I ) V
.locals 2
iget-object v0 , p0 , L androidx/recyclerview/widget/RecyclerView$Adapter ;-> mObservable : L androidx/recyclerview/widget/RecyclerView$AdapterDataObservable ;
const/4 v1 , 0x1
invoke-virtual { v0 , p1 , v1 } , L androidx/recyclerview/widget/RecyclerView$AdapterDataObservable ;-> notifyItemRangeRemoved ( II ) V
return-void
.end method
.method public onAttachedToRecyclerView ( L androidx/recyclerview/widget/RecyclerView ;) V
.locals 0
. param p1 # Landroidx/recyclerview/widget/RecyclerView;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
return-void
.end method
.method public abstract onBindViewHolder ( L androidx/recyclerview/widget/RecyclerView$ViewHolder ;I ) V
. param p1 # Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
.annotation system L dalvik/annotation/Signature ;
value = {
"(TVH;I)V"
}
.end annotation
.end method
.method public onBindViewHolder ( L androidx/recyclerview/widget/RecyclerView$ViewHolder ;I L java/util/List ;) V
.locals 0
. param p1 # Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
. param p3 # Ljava/util/List;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
.annotation system L dalvik/annotation/Signature ;
value = {
"(TVH;I" ,
"Ljava/util/List<" ,
"Ljava/lang/Object;" ,
">;)V"
}
.end annotation
invoke-virtual { p0 , p1 , p2 } , L androidx/recyclerview/widget/RecyclerView$Adapter ;-> onBindViewHolder ( L androidx/recyclerview/widget/RecyclerView$ViewHolder ;I ) V
return-void
.end method
.method public abstract onCreateViewHolder ( L android/view/ViewGroup ;I ) L androidx/recyclerview/widget/RecyclerView$ViewHolder ;
. param p1 # Landroid/view/ViewGroup;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
.annotation build L androidx/annotation/NonNull ;
.end annotation
.annotation system L dalvik/annotation/Signature ;
value = {
"(" ,
"Landroid/view/ViewGroup;" ,
"I)TVH;"
}
.end annotation
.end method
.method public onDetachedFromRecyclerView ( L androidx/recyclerview/widget/RecyclerView ;) V
.locals 0
. param p1 # Landroidx/recyclerview/widget/RecyclerView;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
return-void
.end method
.method public onFailedToRecycleView ( L androidx/recyclerview/widget/RecyclerView$ViewHolder ;) Z
.locals 0
. param p1 # Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
.annotation system L dalvik/annotation/Signature ;
value = {
"(TVH;)Z"
}
.end annotation
const/4 p1 , 0x0
return p1
.end method
.method public onViewAttachedToWindow ( L androidx/recyclerview/widget/RecyclerView$ViewHolder ;) V
.locals 0
. param p1 # Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
.annotation system L dalvik/annotation/Signature ;
value = {
"(TVH;)V"
}
.end annotation
return-void
.end method
.method public onViewDetachedFromWindow ( L androidx/recyclerview/widget/RecyclerView$ViewHolder ;) V
.locals 0
. param p1 # Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
.annotation system L dalvik/annotation/Signature ;
value = {
"(TVH;)V"
}
.end annotation
return-void
.end method
.method public onViewRecycled ( L androidx/recyclerview/widget/RecyclerView$ViewHolder ;) V
.locals 0
. param p1 # Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
.annotation system L dalvik/annotation/Signature ;
value = {
"(TVH;)V"
}
.end annotation
return-void
.end method
.method public registerAdapterDataObserver ( L androidx/recyclerview/widget/RecyclerView$AdapterDataObserver ;) V
.locals 1
. param p1 # Landroidx/recyclerview/widget/RecyclerView$AdapterDataObserver;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
iget-object v0 , p0 , L androidx/recyclerview/widget/RecyclerView$Adapter ;-> mObservable : L androidx/recyclerview/widget/RecyclerView$AdapterDataObservable ;
invoke-virtual { v0 , p1 } , L androidx/recyclerview/widget/RecyclerView$AdapterDataObservable ;-> registerObserver ( L java/lang/Object ;) V
return-void
.end method
.method public setHasStableIds ( Z ) V
.locals 1
invoke-virtual { p0 } , L androidx/recyclerview/widget/RecyclerView$Adapter ;-> hasObservers ( ) Z
move-result v0
if-nez v0 , :cond_0
iput-boolean p1 , p0 , L androidx/recyclerview/widget/RecyclerView$Adapter ;-> mHasStableIds : Z
return-void
:cond_0
new-instance p1 , L java/lang/IllegalStateException ;
const-string v0 , "Cannot change whether this adapter has stable IDs while the adapter has registered observers."
invoke-direct { p1 , v0 } , L java/lang/IllegalStateException ;-> <init> ( L java/lang/String ;) V
throw p1
.end method
.method public unregisterAdapterDataObserver ( L androidx/recyclerview/widget/RecyclerView$AdapterDataObserver ;) V
.locals 1
. param p1 # Landroidx/recyclerview/widget/RecyclerView$AdapterDataObserver;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
iget-object v0 , p0 , L androidx/recyclerview/widget/RecyclerView$Adapter ;-> mObservable : L androidx/recyclerview/widget/RecyclerView$AdapterDataObservable ;
invoke-virtual { v0 , p1 } , L androidx/recyclerview/widget/RecyclerView$AdapterDataObservable ;-> unregisterObserver ( L java/lang/Object ;) V
return-void
.end method