private Style getStyle() {
        SharedPreferences sharedPreferences =
                PreferenceManager.getDefaultSharedPreferences(getActivity());
        String key = getString(R.string.bottom_sheet_style_preference_key);
        String defaultValue = getString(R.string.bottom_sheet_style_preference_default_value);
        String style = sharedPreferences.getString(key, defaultValue);

        switch (style) {
            case "list":
                return Style.LIST;
            case "list_columns":
                return Style.LIST_COLUMNS;
            default:
                return Style.GRID;
        }
    }
private Style getStyle ( ) { SharedPreferences sharedPreferences = PreferenceManager . getDefaultSharedPreferences ( getActivity ( ) ) ; String key = getString ( R . string . bottom_sheet_style_preference_key ) ; String defaultValue = getString ( R . string . bottom_sheet_style_preference_default_value ) ; String style = sharedPreferences . getString ( key , defaultValue ) ; switch ( style ) { case "list" : return Style . LIST ; case "list_columns" : return Style . LIST_COLUMNS ; default : return Style . GRID ; } }
Returns the style, which should be used to create bottom sheets, depending on the app's
settings.

@return The style, which should be used to create bottom sheets, as a value of the enum
{@link Style}