private CharSequence getCharSequenceFromArguments ( @ NonNull final Bundle arguments , @ NonNull final String name ) { CharSequence charSequence = arguments . getCharSequence ( name ) ; if ( charSequence == null ) { int resourceId = arguments . getInt ( name , - 1 ) ; if ( resourceId != - 1 ) { charSequence = getText ( resourceId ) ; } } return charSequence ; }
Returns the char sequence which is specified by a specific extra of the arguments which have been passed to the fragment . The char sequence can either be specified as a string or as a resource id .