Skip to content

Commit

Permalink
Merge pull request #4 from zhanglihow/master
Browse files Browse the repository at this point in the history
Update AppBarLayoutBehavior.java
  • Loading branch information
yuruiyin authored Jun 11, 2019
2 parents 34d579f + 3cd3e32 commit d0c84bf
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ private Field getFlingRunnableField() throws NoSuchFieldException {
Class<?> headerBehaviorType = this.getClass().getSuperclass().getSuperclass();
return headerBehaviorType.getDeclaredField("mFlingRunnable");
} catch (NoSuchFieldException e) {
e.printStackTrace();
// 可能是28及以上版本
Class<?> headerBehaviorType = this.getClass().getSuperclass().getSuperclass().getSuperclass();
return headerBehaviorType.getDeclaredField("flingRunnable");
Expand All @@ -78,7 +77,6 @@ private Field getScrollerField() throws NoSuchFieldException {
Class<?> headerBehaviorType = this.getClass().getSuperclass().getSuperclass();
return headerBehaviorType.getDeclaredField("mScroller");
} catch (NoSuchFieldException e) {
e.printStackTrace();
// 可能是28及以上版本
Class<?> headerBehaviorType = this.getClass().getSuperclass().getSuperclass().getSuperclass();
return headerBehaviorType.getDeclaredField("scroller");
Expand Down

0 comments on commit d0c84bf

Please sign in to comment.