Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ class Behavior extends AppBarLayout.Behavior {
private boolean shouldBlockNestedScroll;
private Field cachedFlingRunnableField;
private Method scrollMethod;
private Method getDownNestedScrollRange;
private Method updateAccessibilityActions;

public Behavior() {
Expand Down Expand Up @@ -265,12 +264,7 @@ public void onNestedScroll(CoordinatorLayout coordinatorLayout, AppBarLayout chi
"scroll", CoordinatorLayout.class, View.class, int.class, int.class, int.class);
scrollMethod.setAccessible(true);
}
if (getDownNestedScrollRange == null) {
Class appBarClass = child.getClass().getSuperclass().getSuperclass();
getDownNestedScrollRange = appBarClass.getDeclaredMethod("getDownNestedScrollRange");
getDownNestedScrollRange.setAccessible(true);
}
int downRange = (int) getDownNestedScrollRange.invoke(child);
int downRange = child.getTotalScrollRange();
consumed[1] = (int) scrollMethod.invoke(
this, coordinatorLayout, child, dyUnconsumed, -downRange, 0);
}
Expand Down
Loading