apkfuckery/com.discord/smali/androidx/recyclerview/widget/RecyclerView$AdapterDataObservable.smali

225 lines
5.3 KiB
Smali
Raw Normal View History

2019-12-06 03:29:40 +00:00
.class public Landroidx/recyclerview/widget/RecyclerView$AdapterDataObservable;
2019-07-24 11:27:29 +00:00
.super Landroid/database/Observable;
.source "RecyclerView.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/recyclerview/widget/RecyclerView;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
2019-12-06 03:29:40 +00:00
accessFlags = 0x9
2019-07-24 11:27:29 +00:00
name = "AdapterDataObservable"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/database/Observable<",
"Landroidx/recyclerview/widget/RecyclerView$AdapterDataObserver;",
">;"
}
.end annotation
# direct methods
2019-12-06 03:29:40 +00:00
.method public constructor <init>()V
2019-07-24 11:27:29 +00:00
.locals 0
invoke-direct {p0}, Landroid/database/Observable;-><init>()V
return-void
.end method
# virtual methods
.method public hasObservers()Z
.locals 1
2019-12-06 03:29:40 +00:00
iget-object v0, p0, Landroid/database/Observable;->mObservers:Ljava/util/ArrayList;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0}, Ljava/util/ArrayList;->isEmpty()Z
move-result v0
2019-12-06 03:29:40 +00:00
xor-int/lit8 v0, v0, 0x1
2019-07-24 11:27:29 +00:00
return v0
.end method
.method public notifyChanged()V
.locals 2
2019-12-06 03:29:40 +00:00
iget-object v0, p0, Landroid/database/Observable;->mObservers:Ljava/util/ArrayList;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
add-int/lit8 v0, v0, -0x1
:goto_0
if-ltz v0, :cond_0
2019-12-06 03:29:40 +00:00
iget-object v1, p0, Landroid/database/Observable;->mObservers:Ljava/util/ArrayList;
2019-07-24 11:27:29 +00:00
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/recyclerview/widget/RecyclerView$AdapterDataObserver;
invoke-virtual {v1}, Landroidx/recyclerview/widget/RecyclerView$AdapterDataObserver;->onChanged()V
add-int/lit8 v0, v0, -0x1
goto :goto_0
:cond_0
return-void
.end method
.method public notifyItemMoved(II)V
.locals 3
2019-12-06 03:29:40 +00:00
iget-object v0, p0, Landroid/database/Observable;->mObservers:Ljava/util/ArrayList;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
const/4 v1, 0x1
sub-int/2addr v0, v1
:goto_0
if-ltz v0, :cond_0
2019-12-06 03:29:40 +00:00
iget-object v2, p0, Landroid/database/Observable;->mObservers:Ljava/util/ArrayList;
2019-07-24 11:27:29 +00:00
invoke-virtual {v2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, Landroidx/recyclerview/widget/RecyclerView$AdapterDataObserver;
invoke-virtual {v2, p1, p2, v1}, Landroidx/recyclerview/widget/RecyclerView$AdapterDataObserver;->onItemRangeMoved(III)V
add-int/lit8 v0, v0, -0x1
goto :goto_0
:cond_0
return-void
.end method
.method public notifyItemRangeChanged(II)V
.locals 1
const/4 v0, 0x0
invoke-virtual {p0, p1, p2, v0}, Landroidx/recyclerview/widget/RecyclerView$AdapterDataObservable;->notifyItemRangeChanged(IILjava/lang/Object;)V
return-void
.end method
.method public notifyItemRangeChanged(IILjava/lang/Object;)V
.locals 2
2019-12-06 03:29:40 +00:00
.param p3 # Ljava/lang/Object;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iget-object v0, p0, Landroid/database/Observable;->mObservers:Ljava/util/ArrayList;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
add-int/lit8 v0, v0, -0x1
:goto_0
if-ltz v0, :cond_0
2019-12-06 03:29:40 +00:00
iget-object v1, p0, Landroid/database/Observable;->mObservers:Ljava/util/ArrayList;
2019-07-24 11:27:29 +00:00
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/recyclerview/widget/RecyclerView$AdapterDataObserver;
invoke-virtual {v1, p1, p2, p3}, Landroidx/recyclerview/widget/RecyclerView$AdapterDataObserver;->onItemRangeChanged(IILjava/lang/Object;)V
add-int/lit8 v0, v0, -0x1
goto :goto_0
:cond_0
return-void
.end method
.method public notifyItemRangeInserted(II)V
.locals 2
2019-12-06 03:29:40 +00:00
iget-object v0, p0, Landroid/database/Observable;->mObservers:Ljava/util/ArrayList;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
add-int/lit8 v0, v0, -0x1
:goto_0
if-ltz v0, :cond_0
2019-12-06 03:29:40 +00:00
iget-object v1, p0, Landroid/database/Observable;->mObservers:Ljava/util/ArrayList;
2019-07-24 11:27:29 +00:00
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/recyclerview/widget/RecyclerView$AdapterDataObserver;
invoke-virtual {v1, p1, p2}, Landroidx/recyclerview/widget/RecyclerView$AdapterDataObserver;->onItemRangeInserted(II)V
add-int/lit8 v0, v0, -0x1
goto :goto_0
:cond_0
return-void
.end method
.method public notifyItemRangeRemoved(II)V
.locals 2
2019-12-06 03:29:40 +00:00
iget-object v0, p0, Landroid/database/Observable;->mObservers:Ljava/util/ArrayList;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
add-int/lit8 v0, v0, -0x1
:goto_0
if-ltz v0, :cond_0
2019-12-06 03:29:40 +00:00
iget-object v1, p0, Landroid/database/Observable;->mObservers:Ljava/util/ArrayList;
2019-07-24 11:27:29 +00:00
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/recyclerview/widget/RecyclerView$AdapterDataObserver;
invoke-virtual {v1, p1, p2}, Landroidx/recyclerview/widget/RecyclerView$AdapterDataObserver;->onItemRangeRemoved(II)V
add-int/lit8 v0, v0, -0x1
goto :goto_0
:cond_0
return-void
.end method