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-03 20:34:25 -06:00
parent 39b1fd1057
commit f84b6f68b3
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;
}