Skip to content

Commit 370febe

Browse files
committed
[Refactor] Fix raw type usage.
1 parent d65e786 commit 370febe

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

sample/src/main/java/me/zhanghai/android/fastscroll/sample/AppBarLayoutLiftOnScrollHack.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ public static void hack(@NonNull AppBarLayout appBarLayout, int liftOnScrollTarg
3030
// Invalidate the cached view reference so that this works after replacing fragment.
3131
appBarLayout.setLiftOnScrollTargetViewId(liftOnScrollTargetViewId);
3232
// Call AppBarLayout.Behavior.onNestedPreScroll() with dy == 0 to update lifted state.
33-
CoordinatorLayout.Behavior behavior =
33+
//noinspection unchecked
34+
CoordinatorLayout.Behavior<AppBarLayout> behavior =
3435
((CoordinatorLayout.LayoutParams) appBarLayout.getLayoutParams()).getBehavior();
3536
CoordinatorLayout coordinatorLayout = (CoordinatorLayout) appBarLayout.getParent();
3637
behavior.onNestedPreScroll(coordinatorLayout, appBarLayout, coordinatorLayout, 0, 0,

0 commit comments

Comments
 (0)