You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.1 KiB

package p032k0;
import android.os.Build;
import android.view.View;
import android.widget.ListView;
/* renamed from: k0.w */
/* loaded from: classes.dex */
public final class C1338w {
/* renamed from: k0.w$a */
/* loaded from: classes.dex */
public static class C1339a {
/* renamed from: a */
public static boolean m1595a(ListView listView, int i) {
boolean canScrollList;
canScrollList = listView.canScrollList(i);
return canScrollList;
}
/* renamed from: b */
public static void m1594b(ListView listView, int i) {
listView.scrollListBy(i);
}
}
/* renamed from: a */
public static void m1596a(ListView listView, int i) {
View childAt;
if (Build.VERSION.SDK_INT >= 19) {
C1339a.m1594b(listView, i);
return;
}
int firstVisiblePosition = listView.getFirstVisiblePosition();
if (firstVisiblePosition == -1 || (childAt = listView.getChildAt(0)) == null) {
return;
}
listView.setSelectionFromTop(firstVisiblePosition, childAt.getTop() - i);
}
}