Fix gender issue on subtext of screen pinning

Create a new string id so that localization team can fix it
individually.

Test: Rebuilt rom and see correct subtext
Fix: 184748174
Change-Id: I3ab644950ee8211c89199446b92e759a5efa4527
This commit is contained in:
Tsung-Mao Fang
2021-04-12 16:28:03 +08:00
parent c7d2169120
commit 304c68a836
2 changed files with 7 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ public class ScreenPinningPreferenceController extends BasePreferenceController
public CharSequence getSummary() {
return Settings.System.getInt(mContext.getContentResolver(),
Settings.System.LOCK_TO_APP_ENABLED, 0) != 0
? mContext.getText(R.string.switch_on_text)
: mContext.getText(R.string.switch_off_text);
? mContext.getText(R.string.screen_pinning_switch_on_text)
: mContext.getText(R.string.screen_pinning_switch_off_text);
}
}