private BottomSheet . Builder createBottomSheetBuilder ( ) { BottomSheet . Builder builder = new BottomSheet . Builder ( getActivity ( ) ) ; builder . setStyle ( getStyle ( ) ) ; if ( shouldTitleBeShown ( ) ) { builder . setTitle ( getBottomSheetTitle ( ) ) ; } if ( shouldIconBeShown ( ) ) { builder . setIcon ( android . R . drawable . ic_dialog_alert ) ; } return builder ; }
Creates and returns a builder which allows to create bottom sheets depending on the app s settings .