Changed the code accordingly

+ Removed some unused code
This commit is contained in:
litetex 2022-07-10 14:19:58 +02:00
parent 25a43b57b2
commit 8b209df253
35 changed files with 153 additions and 413 deletions

View file

@ -132,8 +132,8 @@ public final class FlingBehavior extends AppBarLayout.Behavior {
try {
final Class<?> headerBehaviorType = this.getClass().getSuperclass().getSuperclass();
if (headerBehaviorType != null) {
final Field field
= headerBehaviorType.getDeclaredField("lastNestedScrollingChildRef");
final Field field =
headerBehaviorType.getDeclaredField("lastNestedScrollingChildRef");
field.setAccessible(true);
return field;
}