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:
@@ -38,11 +38,11 @@ public class ScreenPinningPreferenceController extends BasePreferenceController
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getSummary() {
|
||||
public CharSequence getSummary() {
|
||||
return Settings.System.getInt(mContext.getContentResolver(),
|
||||
Settings.System.LOCK_TO_APP_ENABLED, 0) != 0
|
||||
? mContext.getString(R.string.switch_on_text)
|
||||
: mContext.getString(R.string.switch_off_text);
|
||||
? mContext.getText(R.string.switch_on_text)
|
||||
: mContext.getText(R.string.switch_off_text);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user