Change PreferenceController#getSummary return type.
Return CharSequence instead of String. All user visible string should be modeled as CharSequence. Bug: 73950519 Test: robotest Change-Id: I30befef0c33f94351d4a2774e283bd1ed804aa8b
This commit is contained in:
@@ -55,9 +55,9 @@ public abstract class DefaultAppShortcutPreferenceControllerBase extends BasePre
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getSummary() {
|
||||
public CharSequence getSummary() {
|
||||
int summaryResId = isDefaultApp() ? R.string.yes : R.string.no;
|
||||
return mContext.getString(summaryResId);
|
||||
return mContext.getText(summaryResId);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user