blob: cf3a573d00a278f98e5947e2bd312226fb8f49de (
plain) (
blame)
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
|
package ml.docilealligator.infinityforreddit.customviews;
import android.content.Context;
import android.util.AttributeSet;
import androidx.recyclerview.widget.LinearLayoutManager;
public class LinearLayoutManagerBugFixed extends LinearLayoutManager {
public LinearLayoutManagerBugFixed(Context context) {
super(context);
}
public LinearLayoutManagerBugFixed(Context context, int orientation, boolean reverseLayout) {
super(context, orientation, reverseLayout);
}
public LinearLayoutManagerBugFixed(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
super(context, attrs, defStyleAttr, defStyleRes);
}
@Override
public boolean supportsPredictiveItemAnimations() {
return false;
}
public LinearLayoutManagerBugFixed setStackFromEndAndReturnCurrentObject() {
setStackFromEnd(true);
return this;
}
}
|