Merge "Fix gender issue on subtext of screen pinning" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
2216765159
@@ -9769,6 +9769,11 @@
|
|||||||
<string name="switch_on_text">On</string>
|
<string name="switch_on_text">On</string>
|
||||||
<string name="switch_off_text">Off</string>
|
<string name="switch_off_text">Off</string>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- The subtext when screen pinning feature is enabled. [CHAR LIMIT=28] -->
|
||||||
|
<string name="screen_pinning_switch_on_text">On</string>
|
||||||
|
<!-- The subtext when screen pinning feature is disabled. [CHAR LIMIT=28] -->
|
||||||
|
<string name="screen_pinning_switch_off_text">Off</string>
|
||||||
<!-- [CHAR LIMIT=28] Screen pinning title -->
|
<!-- [CHAR LIMIT=28] Screen pinning title -->
|
||||||
<string name="screen_pinning_title">App pinning</string>
|
<string name="screen_pinning_title">App pinning</string>
|
||||||
<!-- [CHAR LIMIT=none] Screen pinning introduction -->
|
<!-- [CHAR LIMIT=none] Screen pinning introduction -->
|
||||||
|
@@ -40,7 +40,7 @@ public class ScreenPinningPreferenceController extends BasePreferenceController
|
|||||||
public CharSequence getSummary() {
|
public CharSequence getSummary() {
|
||||||
return Settings.System.getInt(mContext.getContentResolver(),
|
return Settings.System.getInt(mContext.getContentResolver(),
|
||||||
Settings.System.LOCK_TO_APP_ENABLED, 0) != 0
|
Settings.System.LOCK_TO_APP_ENABLED, 0) != 0
|
||||||
? mContext.getText(R.string.switch_on_text)
|
? mContext.getText(R.string.screen_pinning_switch_on_text)
|
||||||
: mContext.getText(R.string.switch_off_text);
|
: mContext.getText(R.string.screen_pinning_switch_off_text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user