NonNull instead of NotNull annotations
This commit is contained in:
parent
08412d6108
commit
787b136d13
|
@ -11,7 +11,6 @@ import android.widget.OverScroller;
|
||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
import androidx.coordinatorlayout.widget.CoordinatorLayout;
|
import androidx.coordinatorlayout.widget.CoordinatorLayout;
|
||||||
import org.jetbrains.annotations.NotNull;
|
|
||||||
import org.schabi.newpipe.R;
|
import org.schabi.newpipe.R;
|
||||||
|
|
||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
|
@ -85,9 +84,9 @@ public final class FlingBehavior extends AppBarLayout.Behavior {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onStartNestedScroll(@NotNull final CoordinatorLayout parent,
|
public boolean onStartNestedScroll(@NonNull final CoordinatorLayout parent,
|
||||||
@NotNull final AppBarLayout child,
|
@NonNull final AppBarLayout child,
|
||||||
@NotNull final View directTargetChild,
|
@NonNull final View directTargetChild,
|
||||||
final View target,
|
final View target,
|
||||||
final int nestedScrollAxes,
|
final int nestedScrollAxes,
|
||||||
final int type) {
|
final int type) {
|
||||||
|
@ -96,9 +95,9 @@ public final class FlingBehavior extends AppBarLayout.Behavior {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onNestedFling(@NotNull final CoordinatorLayout coordinatorLayout,
|
public boolean onNestedFling(@NonNull final CoordinatorLayout coordinatorLayout,
|
||||||
@NotNull final AppBarLayout child,
|
@NonNull final AppBarLayout child,
|
||||||
@NotNull final View target, final float velocityX,
|
@NonNull final View target, final float velocityX,
|
||||||
final float velocityY, final boolean consumed) {
|
final float velocityY, final boolean consumed) {
|
||||||
return allowScroll && super.onNestedFling(
|
return allowScroll && super.onNestedFling(
|
||||||
coordinatorLayout, child, target, velocityX, velocityY, consumed);
|
coordinatorLayout, child, target, velocityX, velocityY, consumed);
|
||||||
|
|
Loading…
Reference in New Issue