discord-jadx/app/src/main/java/androidx/core/view/NestedScrollingParentHelper...

41 lines
1.1 KiB
Java

package androidx.core.view;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
public class NestedScrollingParentHelper {
private int mNestedScrollAxesNonTouch;
private int mNestedScrollAxesTouch;
public NestedScrollingParentHelper(@NonNull ViewGroup viewGroup) {
}
public int getNestedScrollAxes() {
return this.mNestedScrollAxesTouch | this.mNestedScrollAxesNonTouch;
}
public void onNestedScrollAccepted(@NonNull View view, @NonNull View view2, int i) {
onNestedScrollAccepted(view, view2, i, 0);
}
public void onNestedScrollAccepted(@NonNull View view, @NonNull View view2, int i, int i2) {
if (i2 == 1) {
this.mNestedScrollAxesNonTouch = i;
} else {
this.mNestedScrollAxesTouch = i;
}
}
public void onStopNestedScroll(@NonNull View view) {
onStopNestedScroll(view, 0);
}
public void onStopNestedScroll(@NonNull View view, int i) {
if (i == 1) {
this.mNestedScrollAxesNonTouch = 0;
} else {
this.mNestedScrollAxesTouch = 0;
}
}
}