private void initializeShowIntentBottmSheetPreference ( ) { Preference showIntentBottomSheetPreference = findPreference ( getString ( R . string . show_intent_bottom_sheet_preference_key ) ) ; showIntentBottomSheetPreference . setOnPreferenceClickListener ( new OnPreferenceClickListener ( ) { @ Override public boolean onPreferenceClick ( Preference preference ) { initializeIntentBottomSheet ( ) ; intentBottomSheet . show ( ) ; return true ; } } ) ; }
Initializes the preference which allows to display the applications which are suited for handling an intent .