mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-22 13:21:49 +01:00
squid:S2039 - Member variable visibility should be specified (#279)
This commit is contained in:
parent
e2ecf0ce5f
commit
270cacb1d7
@ -120,11 +120,11 @@ public class VerticalViewPagerImpl extends ViewGroup {
|
|||||||
private int mExpectedAdapterCount;
|
private int mExpectedAdapterCount;
|
||||||
|
|
||||||
static class ItemInfo {
|
static class ItemInfo {
|
||||||
Object object;
|
private Object object;
|
||||||
int position;
|
private int position;
|
||||||
boolean scrolling;
|
private boolean scrolling;
|
||||||
float heightFactor;
|
private float heightFactor;
|
||||||
float offset;
|
private float offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final Comparator<ItemInfo> COMPARATOR = new Comparator<ItemInfo>(){
|
private static final Comparator<ItemInfo> COMPARATOR = new Comparator<ItemInfo>(){
|
||||||
@ -1260,9 +1260,9 @@ public class VerticalViewPagerImpl extends ViewGroup {
|
|||||||
* contains that state.
|
* contains that state.
|
||||||
*/
|
*/
|
||||||
public static class SavedState extends BaseSavedState {
|
public static class SavedState extends BaseSavedState {
|
||||||
int position;
|
private int position;
|
||||||
Parcelable adapterState;
|
private Parcelable adapterState;
|
||||||
ClassLoader loader;
|
private ClassLoader loader;
|
||||||
|
|
||||||
public SavedState(Parcelable superState) {
|
public SavedState(Parcelable superState) {
|
||||||
super(superState);
|
super(superState);
|
||||||
@ -2946,23 +2946,23 @@ public class VerticalViewPagerImpl extends ViewGroup {
|
|||||||
/**
|
/**
|
||||||
* Width as a 0-1 multiplier of the measured pager width
|
* Width as a 0-1 multiplier of the measured pager width
|
||||||
*/
|
*/
|
||||||
float heightFactor = 0.f;
|
private float heightFactor = 0.f;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* true if this view was added during layout and needs to be measured
|
* true if this view was added during layout and needs to be measured
|
||||||
* before being positioned.
|
* before being positioned.
|
||||||
*/
|
*/
|
||||||
boolean needsMeasure;
|
private boolean needsMeasure;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adapter position this view is for if !isDecor
|
* Adapter position this view is for if !isDecor
|
||||||
*/
|
*/
|
||||||
int position;
|
private int position;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Current child index within the ViewPager that this view occupies
|
* Current child index within the ViewPager that this view occupies
|
||||||
*/
|
*/
|
||||||
int childIndex;
|
private int childIndex;
|
||||||
|
|
||||||
public LayoutParams() {
|
public LayoutParams() {
|
||||||
super(FILL_PARENT, FILL_PARENT);
|
super(FILL_PARENT, FILL_PARENT);
|
||||||
|
@ -17,8 +17,8 @@ import rx.subscriptions.CompositeSubscription;
|
|||||||
import rx.subscriptions.Subscriptions;
|
import rx.subscriptions.Subscriptions;
|
||||||
|
|
||||||
public class DynamicConcurrentMergeOperator<T, R> implements Operator<R, T> {
|
public class DynamicConcurrentMergeOperator<T, R> implements Operator<R, T> {
|
||||||
final Func1<? super T, ? extends Observable<? extends R>> mapper;
|
private final Func1<? super T, ? extends Observable<? extends R>> mapper;
|
||||||
final Observable<Integer> workerCount;
|
private final Observable<Integer> workerCount;
|
||||||
|
|
||||||
public DynamicConcurrentMergeOperator(
|
public DynamicConcurrentMergeOperator(
|
||||||
Func1<? super T, ? extends Observable<? extends R>> mapper,
|
Func1<? super T, ? extends Observable<? extends R>> mapper,
|
||||||
@ -37,14 +37,14 @@ public class DynamicConcurrentMergeOperator<T, R> implements Operator<R, T> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static final class DynamicConcurrentMerge<T, R> extends Subscriber<T> {
|
static final class DynamicConcurrentMerge<T, R> extends Subscriber<T> {
|
||||||
final Subscriber<? super R> actual;
|
private final Subscriber<? super R> actual;
|
||||||
final Func1<? super T, ? extends Observable<? extends R>> mapper;
|
private final Func1<? super T, ? extends Observable<? extends R>> mapper;
|
||||||
final Queue<T> queue;
|
private final Queue<T> queue;
|
||||||
final CopyOnWriteArrayList<DynamicWorker<T, R>> workers;
|
private final CopyOnWriteArrayList<DynamicWorker<T, R>> workers;
|
||||||
final CompositeSubscription composite;
|
private final CompositeSubscription composite;
|
||||||
final AtomicInteger wipActive;
|
private final AtomicInteger wipActive;
|
||||||
final AtomicBoolean once;
|
private final AtomicBoolean once;
|
||||||
long id;
|
private long id;
|
||||||
|
|
||||||
public DynamicConcurrentMerge(Subscriber<? super R> actual,
|
public DynamicConcurrentMerge(Subscriber<? super R> actual,
|
||||||
Func1<? super T, ? extends Observable<? extends R>> mapper) {
|
Func1<? super T, ? extends Observable<? extends R>> mapper) {
|
||||||
@ -121,10 +121,10 @@ public class DynamicConcurrentMergeOperator<T, R> implements Operator<R, T> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static final class DynamicWorker<T, R> {
|
static final class DynamicWorker<T, R> {
|
||||||
final long id;
|
private final long id;
|
||||||
final AtomicBoolean running;
|
private final AtomicBoolean running;
|
||||||
final DynamicConcurrentMerge<T, R> parent;
|
private final DynamicConcurrentMerge<T, R> parent;
|
||||||
final AtomicBoolean stop;
|
private final AtomicBoolean stop;
|
||||||
|
|
||||||
public DynamicWorker(long id, DynamicConcurrentMerge<T, R> parent) {
|
public DynamicWorker(long id, DynamicConcurrentMerge<T, R> parent) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
|
@ -10,7 +10,7 @@ public class EndlessGridScrollListener extends RecyclerView.OnScrollListener {
|
|||||||
private int previousTotal = 0; // The total number of items in the dataset after the last load
|
private int previousTotal = 0; // The total number of items in the dataset after the last load
|
||||||
private boolean loading = true; // True if we are still waiting for the last set of data to load.
|
private boolean loading = true; // True if we are still waiting for the last set of data to load.
|
||||||
private int visibleThreshold = 5; // The minimum amount of items to have below your current scroll position before loading more.
|
private int visibleThreshold = 5; // The minimum amount of items to have below your current scroll position before loading more.
|
||||||
int firstVisibleItem, visibleItemCount, totalItemCount;
|
private int firstVisibleItem, visibleItemCount, totalItemCount;
|
||||||
|
|
||||||
private GridLayoutManager layoutManager;
|
private GridLayoutManager layoutManager;
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ public class EndlessListScrollListener extends RecyclerView.OnScrollListener {
|
|||||||
private int previousTotal = 0; // The total number of items in the dataset after the last load
|
private int previousTotal = 0; // The total number of items in the dataset after the last load
|
||||||
private boolean loading = true; // True if we are still waiting for the last set of data to load.
|
private boolean loading = true; // True if we are still waiting for the last set of data to load.
|
||||||
private int visibleThreshold = 5; // The minimum amount of items to have below your current scroll position before loading more.
|
private int visibleThreshold = 5; // The minimum amount of items to have below your current scroll position before loading more.
|
||||||
int firstVisibleItem, visibleItemCount, totalItemCount;
|
private int firstVisibleItem, visibleItemCount, totalItemCount;
|
||||||
|
|
||||||
private LinearLayoutManager layoutManager;
|
private LinearLayoutManager layoutManager;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user