Loading packages/Keyguard/res/values/config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -29,4 +29,7 @@ <!-- Allow the menu hard key to be disabled in LockScreen on some devices [DO NOT TRANSLATE] --> <bool name="config_disableMenuKeyInLockScreen">false</bool> <!-- True if we need to show on "Slide" lock screen --> <bool name="config_showEmergencyButton">false</bool> </resources> packages/Keyguard/src/com/android/keyguard/EmergencyButton.java +2 −1 Original line number Diff line number Diff line Loading @@ -124,7 +124,8 @@ public class EmergencyButton extends Button { } else { // True if we need to show a secure screen (pin/pattern/SIM pin/SIM puk); // hides emergency button on "Slide" screen if device is not secure. enabled = mLockPatternUtils.isSecure(); enabled = mLockPatternUtils.isSecure() || mContext.getResources().getBoolean(R.bool.config_showEmergencyButton); } } mLockPatternUtils.updateEmergencyCallButtonState(this, phoneState, enabled, false); Loading Loading
packages/Keyguard/res/values/config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -29,4 +29,7 @@ <!-- Allow the menu hard key to be disabled in LockScreen on some devices [DO NOT TRANSLATE] --> <bool name="config_disableMenuKeyInLockScreen">false</bool> <!-- True if we need to show on "Slide" lock screen --> <bool name="config_showEmergencyButton">false</bool> </resources>
packages/Keyguard/src/com/android/keyguard/EmergencyButton.java +2 −1 Original line number Diff line number Diff line Loading @@ -124,7 +124,8 @@ public class EmergencyButton extends Button { } else { // True if we need to show a secure screen (pin/pattern/SIM pin/SIM puk); // hides emergency button on "Slide" screen if device is not secure. enabled = mLockPatternUtils.isSecure(); enabled = mLockPatternUtils.isSecure() || mContext.getResources().getBoolean(R.bool.config_showEmergencyButton); } } mLockPatternUtils.updateEmergencyCallButtonState(this, phoneState, enabled, false); Loading