44 lines
1.2 KiB
Java
44 lines
1.2 KiB
Java
|
package o;
|
||
|
|
||
|
import android.widget.ListView;
|
||
|
|
||
|
/* renamed from: o.kKZ, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class C15993kKZ extends llf {
|
||
|
private final ListView i;
|
||
|
|
||
|
public C15993kKZ(ListView listView) {
|
||
|
super(listView);
|
||
|
this.i = listView;
|
||
|
}
|
||
|
|
||
|
@Override // o.llf
|
||
|
public final void e(int i) {
|
||
|
USI.vz_(this.i, i);
|
||
|
}
|
||
|
|
||
|
@Override // o.llf
|
||
|
public final boolean d(int i) {
|
||
|
ListView listView = this.i;
|
||
|
int count = listView.getCount();
|
||
|
if (count == 0) {
|
||
|
return false;
|
||
|
}
|
||
|
int childCount = listView.getChildCount();
|
||
|
int firstVisiblePosition = listView.getFirstVisiblePosition();
|
||
|
if (i > 0) {
|
||
|
if (firstVisiblePosition + childCount >= count && listView.getChildAt(childCount - 1).getBottom() <= listView.getHeight()) {
|
||
|
return false;
|
||
|
}
|
||
|
} else {
|
||
|
if (i >= 0) {
|
||
|
return false;
|
||
|
}
|
||
|
if (firstVisiblePosition <= 0 && listView.getChildAt(0).getTop() >= 0) {
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
return true;
|
||
|
}
|
||
|
}
|