Skip to content

Commit 80ec5cc

Browse files
pubiqqdsn5ft
authored andcommitted
[AppBarLayout] Add AbsListView to views that support nested scrolling
Resolves #3220 GIT_ORIGIN_REV_ID=14e89d9356190155a82f01414c2221118d8d1d02 PiperOrigin-RevId: 507880939
1 parent e32e625 commit 80ec5cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/java/com/google/android/material/appbar/AppBarLayout.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
import android.view.ViewGroup;
4848
import android.view.ViewOutlineProvider;
4949
import android.view.animation.Interpolator;
50+
import android.widget.AbsListView;
5051
import android.widget.LinearLayout;
51-
import android.widget.ListView;
5252
import android.widget.ScrollView;
5353
import androidx.annotation.ColorInt;
5454
import androidx.annotation.Dimension;
@@ -2253,7 +2253,7 @@ private View findFirstScrollingChild(@NonNull CoordinatorLayout parent) {
22532253
for (int i = 0, z = parent.getChildCount(); i < z; i++) {
22542254
final View child = parent.getChildAt(i);
22552255
if (child instanceof NestedScrollingChild
2256-
|| child instanceof ListView
2256+
|| child instanceof AbsListView
22572257
|| child instanceof ScrollView) {
22582258
return child;
22592259
}

0 commit comments

Comments
 (0)