ui: fix queue sheet not being scrollable

Fix an issue where the recent BackportBottomSheetBehavior update would
break queue sheet scrolling, as the queue sheet would be set to
invisible and prevent the findScrollingChild helper from being able
to locate it.

Fix this by removing that visibility check in the first place.
This commit is contained in:
Alexander Capehart
2023-07-04 21:47:45 -06:00
parent ff45380857
commit f8fbcac482
2 changed files with 15 additions and 3 deletions
@@ -1671,9 +1671,8 @@ public class BackportBottomSheetBehavior<V extends View> extends CoordinatorLayo
@Nullable
@VisibleForTesting
View findScrollingChild(View view) {
if (view.getVisibility() != View.VISIBLE) {
return null;
}
// MODIFICATION: Remove visibility check that broke nested scrolling in the queue sheet
// due to it being set to invisible when completely hidden
if (ViewCompat.isNestedScrollingEnabled(view)) {
return view;
}