public final void setText ( @ Nullable final String text ) { boolean hasDisabledDependents = shouldDisableDependents ( ) ; this . text = text ; persistString ( text ) ; boolean isDisablingDependents = shouldDisableDependents ( ) ; if ( isDisablingDependents != hasDisabledDependents ) { notifyDependencyChange ( isDisablingDependents ) ; } notifyChanged ( ) ; }
Sets the current text of the preference . By setting a value it will be persisted .