/** * Sets the summary for this Preference with a CharSequence. If the summary has a {@linkplain * java.lang.String#format String formatting} marker in it (i.e. "%s" or "%1$s"), then the current * entry value will be substituted in its place when it's retrieved. * * @param summary The summary for the preference. */ @Override public void setSummary(CharSequence summary) { super.setSummary(summary); if (summary == null && mSummary != null) { mSummary = null; } else if (summary != null && !summary.equals(mSummary)) { mSummary = summary.toString(); } }