Loading core/res/res/values/config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -2082,4 +2082,7 @@ <!-- Controlling respond call via sms feature via config item --> <bool name="config_reject_call_via_sms_enabled">true</bool> <!-- Should the device show AM/PM in unlock screen --> <bool name="config_show_ampm_in_unlock_screen">false</bool> </resources> core/res/res/values/symbols.xml +3 −0 Original line number Diff line number Diff line Loading @@ -2218,4 +2218,7 @@ <java-symbol type="integer" name="ascrollboost_cpuboost" /> <java-symbol type="integer" name="ascrollboost_pcdisbl" /> <java-symbol type="bool" name="config_reject_call_via_sms_enabled"/> <!-- From keyguard for showing am/pm in unlock screen --> <java-symbol type="bool" name="config_show_ampm_in_unlock_screen" /> </resources> packages/Keyguard/src/com/android/keyguard/KeyguardStatusView.java +10 −4 Original line number Diff line number Diff line Loading @@ -109,6 +109,7 @@ public class KeyguardStatusView extends GridLayout { mAlarmStatusView = (TextView) findViewById(R.id.alarm_status); mDateView = (TextClock) findViewById(R.id.date_view); mClockView = (TextClock) findViewById(R.id.clock_view); mClockView.setEllipsize(null); mOwnerInfo = (TextView) findViewById(R.id.owner_info); mLockPatternUtils = new LockPatternUtils(getContext()); final boolean screenOn = KeyguardUpdateMonitor.getInstance(mContext).isScreenOn(); Loading Loading @@ -243,11 +244,16 @@ public class KeyguardStatusView extends GridLayout { } clockView12 = DateFormat.getBestDateTimePattern(locale, clockView12Skel); boolean showAmPm = context.getResources().getBoolean( com.android.internal.R.bool.config_show_ampm_in_unlock_screen); if (showAmPm == false) { // CLDR insists on adding an AM/PM indicator even though it wasn't in the skeleton // format. The following code removes the AM/PM indicator if we didn't want it. if (!clockView12Skel.contains("a")) { clockView12 = clockView12.replaceAll("a", "").trim(); } } clockView24 = DateFormat.getBestDateTimePattern(locale, clockView24Skel); Loading Loading
core/res/res/values/config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -2082,4 +2082,7 @@ <!-- Controlling respond call via sms feature via config item --> <bool name="config_reject_call_via_sms_enabled">true</bool> <!-- Should the device show AM/PM in unlock screen --> <bool name="config_show_ampm_in_unlock_screen">false</bool> </resources>
core/res/res/values/symbols.xml +3 −0 Original line number Diff line number Diff line Loading @@ -2218,4 +2218,7 @@ <java-symbol type="integer" name="ascrollboost_cpuboost" /> <java-symbol type="integer" name="ascrollboost_pcdisbl" /> <java-symbol type="bool" name="config_reject_call_via_sms_enabled"/> <!-- From keyguard for showing am/pm in unlock screen --> <java-symbol type="bool" name="config_show_ampm_in_unlock_screen" /> </resources>
packages/Keyguard/src/com/android/keyguard/KeyguardStatusView.java +10 −4 Original line number Diff line number Diff line Loading @@ -109,6 +109,7 @@ public class KeyguardStatusView extends GridLayout { mAlarmStatusView = (TextView) findViewById(R.id.alarm_status); mDateView = (TextClock) findViewById(R.id.date_view); mClockView = (TextClock) findViewById(R.id.clock_view); mClockView.setEllipsize(null); mOwnerInfo = (TextView) findViewById(R.id.owner_info); mLockPatternUtils = new LockPatternUtils(getContext()); final boolean screenOn = KeyguardUpdateMonitor.getInstance(mContext).isScreenOn(); Loading Loading @@ -243,11 +244,16 @@ public class KeyguardStatusView extends GridLayout { } clockView12 = DateFormat.getBestDateTimePattern(locale, clockView12Skel); boolean showAmPm = context.getResources().getBoolean( com.android.internal.R.bool.config_show_ampm_in_unlock_screen); if (showAmPm == false) { // CLDR insists on adding an AM/PM indicator even though it wasn't in the skeleton // format. The following code removes the AM/PM indicator if we didn't want it. if (!clockView12Skel.contains("a")) { clockView12 = clockView12.replaceAll("a", "").trim(); } } clockView24 = DateFormat.getBestDateTimePattern(locale, clockView24Skel); Loading