private void handleRestoreDefaultsButtonTextArgument ( @ NonNull final Bundle arguments ) { CharSequence buttonText = getCharSequenceFromArguments ( arguments , EXTRA_RESTORE_DEFAULTS_BUTTON_TEXT ) ; if ( ! TextUtils . isEmpty ( buttonText ) ) { setRestoreDefaultsButtonText ( buttonText ) ; } }
Handles the extra of the arguments which have been passed to the fragment that allows to specify a custom text for the button which allows to restore the preferences default values .