From 08b62952bec264c130188f3d12c324721bdba697 Mon Sep 17 00:00:00 2001 From: teach Date: Wed, 6 May 2020 16:44:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/donkingliang/consecutivescroller/ScrollUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/consecutivescroller/src/main/java/com/donkingliang/consecutivescroller/ScrollUtils.java b/consecutivescroller/src/main/java/com/donkingliang/consecutivescroller/ScrollUtils.java index 7775f49..9572a88 100644 --- a/consecutivescroller/src/main/java/com/donkingliang/consecutivescroller/ScrollUtils.java +++ b/consecutivescroller/src/main/java/com/donkingliang/consecutivescroller/ScrollUtils.java @@ -232,7 +232,8 @@ static boolean isConsecutiveScrollerChild(View view) { * @return */ static boolean isRecyclerLayout(View view) { - return view instanceof RecyclerView || view instanceof AbsListView; + View scrolledView = getScrolledView(view); + return scrolledView instanceof RecyclerView || scrolledView instanceof AbsListView; } /**