use of com.flipboard.bottomsheet.BottomSheetLayout in project bottomsheet by Flipboard.
the class BottomSheetFragmentDelegate method findBottomSheetLayout.
@Nullable
private BottomSheetLayout findBottomSheetLayout() {
Fragment parentFragment = fragment.getParentFragment();
if (parentFragment != null) {
View view = parentFragment.getView();
if (view != null) {
return (BottomSheetLayout) view.findViewById(bottomSheetLayoutId);
} else {
return null;
}
}
Activity parentActivity = fragment.getActivity();
if (parentActivity != null) {
return (BottomSheetLayout) parentActivity.findViewById(bottomSheetLayoutId);
}
return null;
}
Aggregations