package X6FRs_4.IMuAHx_6.WwEq_13;

import android.widget.ListView;
/* compiled from: ListViewAutoScrollHelper.java */
/* loaded from: classes.dex */
public class IFxWkV_5 extends KQgRr5e_0 {
    public final ListView KQgRr5e_0;

    public IFxWkV_5(ListView listView) {
        super(listView);
        this.KQgRr5e_0 = listView;
    }

    @Override // X6FRs_4.IMuAHx_6.WwEq_13.KQgRr5e_0
    public void KQgRr5e_0(int i, int i2) {
        IMuAHx_6.KQgRr5e_0(this.KQgRr5e_0, i2);
    }

    @Override // X6FRs_4.IMuAHx_6.WwEq_13.KQgRr5e_0
    public boolean KQgRr5e_0(int i) {
        return false;
    }

    @Override // X6FRs_4.IMuAHx_6.WwEq_13.KQgRr5e_0
    public boolean QxJ9d_1(int i) {
        ListView listView = this.KQgRr5e_0;
        int count = listView.getCount();
        if (count == 0) {
            return false;
        }
        int childCount = listView.getChildCount();
        int firstVisiblePosition = listView.getFirstVisiblePosition();
        int i2 = firstVisiblePosition + childCount;
        if (i > 0) {
            if (i2 >= count && listView.getChildAt(childCount - 1).getBottom() <= listView.getHeight()) {
                return false;
            }
        } else if (i >= 0) {
            return false;
        } else {
            if (firstVisiblePosition <= 0 && listView.getChildAt(0).getTop() >= 0) {
                return false;
            }
        }
        return true;
    }
}
