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

Commit 07633737 authored by Richard LIU's avatar Richard LIU
Browse files

Keyguard: Add config to hide emergency button in OOS

Hiding emergency buttion is OOS is Carrier specific feature
Add config to control it.

Change-Id: I5534fda5bcfd57c7c0ac84b1d3bbd1f4cae07db3
parent 294526af
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -33,6 +33,9 @@
    <!-- True if we need to show on "Slide" lock screen -->
    <bool name="config_showEmergencyButton">false</bool>

    <!-- True if we need to hide emergency button when OOS -->
    <bool name="config_hideEmergencyButtonInOOS">false</bool>

    <bool name="config_showEmergencyCallOnlyInLockScreen">false</bool>

	<!-- display airplane mode in lock sreen when phone is in APM mode -->
+1 −1
Original line number Diff line number Diff line
@@ -155,7 +155,7 @@ public class EmergencyButton extends Button {
                        mContext.getResources().getBoolean(R.bool.config_showEmergencyButton);
            }
        }
        if (mContext.getResources().getBoolean(R.bool.config_showEmergencyButton)) {
        if (mContext.getResources().getBoolean(R.bool.config_hideEmergencyButtonInOOS)) {
            enabled = enabled && canMakeEmergencyCall();
        }
        mLockPatternUtils.updateEmergencyCallButtonState(this, enabled, false);