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

Commit a5e93f3e authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Keyguard: Add config to hide emergency button in OOS"

parents b8129896 07633737
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
@@ -153,7 +153,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);