From ea3d99a85b918392731c8e5667719941d9357857 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=99=E7=91=9E=E9=93=B6?= Date: Tue, 11 Jun 2019 09:52:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yuruiyin/appbarlayoutbehavior/AppBarLayoutBehavior.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/appbarlayoutbehavior/src/main/java/com/yuruiyin/appbarlayoutbehavior/AppBarLayoutBehavior.java b/appbarlayoutbehavior/src/main/java/com/yuruiyin/appbarlayoutbehavior/AppBarLayoutBehavior.java index 74e1450..2b2e805 100644 --- a/appbarlayoutbehavior/src/main/java/com/yuruiyin/appbarlayoutbehavior/AppBarLayoutBehavior.java +++ b/appbarlayoutbehavior/src/main/java/com/yuruiyin/appbarlayoutbehavior/AppBarLayoutBehavior.java @@ -52,11 +52,10 @@ public boolean onInterceptTouchEvent(CoordinatorLayout parent, AppBarLayout chil /** * 反射获取私有的flingRunnable 属性,考虑support 28以后变量名修改的问题 * @return Field - * @throws NoSuchFieldException */ private Field getFlingRunnableField() throws NoSuchFieldException { try { - // support design 27及一下版本 + // support design 27及以下版本 Class headerBehaviorType = this.getClass().getSuperclass().getSuperclass(); return headerBehaviorType.getDeclaredField("mFlingRunnable"); } catch (NoSuchFieldException e) { @@ -69,11 +68,10 @@ private Field getFlingRunnableField() throws NoSuchFieldException { /** * 反射获取私有的scroller 属性,考虑support 28以后变量名修改的问题 * @return Field - * @throws NoSuchFieldException */ private Field getScrollerField() throws NoSuchFieldException { try { - // support design 27及一下版本 + // support design 27及以下版本 Class headerBehaviorType = this.getClass().getSuperclass().getSuperclass(); return headerBehaviorType.getDeclaredField("mScroller"); } catch (NoSuchFieldException e) {