Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 304c68a8 authored by Tsung-Mao Fang's avatar Tsung-Mao Fang
Browse files

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
parent c7d21691
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -9769,6 +9769,11 @@
    <string name="switch_on_text">On</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 -->
    <string name="screen_pinning_title">App pinning</string>
    <!-- [CHAR LIMIT=none] Screen pinning introduction -->
+2 −2
Original line number Diff line number Diff line
@@ -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);
    }
}