blob: 5bd335532f46da7bb18cfa8ca2f8faafe0e19f14 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
package de.danoeh.antennapod.view;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.RecyclerView;
/**
* AdapterDataObserver that relays all events to the method anythingChanged().
*/
public abstract class SimpleAdapterDataObserver extends RecyclerView.AdapterDataObserver {
public abstract void anythingChanged();
@Override
public void onChanged() {
anythingChanged();
}
@Override
public void onItemRangeChanged(int positionStart, int itemCount) {
anythingChanged();
}
@Override
public void onItemRangeChanged(int positionStart, int itemCount, @Nullable Object payload) {
anythingChanged();
}
@Override
public void onItemRangeInserted(int positionStart, int itemCount) {
anythingChanged();
}
@Override
public void onItemRangeMoved(int fromPosition, int toPosition, int itemCount) {
anythingChanged();
}
@Override
public void onItemRangeRemoved(int positionStart, int itemCount) {
anythingChanged();
}
}
|