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

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

Merge "SystemUI: Fix no emergency call button on lock screen"

parents 31b41da3 2ce7d20b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -34,4 +34,7 @@

    <!-- config for showing AM/PM on lock screen in 12hour format -->
    <bool name="config_showAmpm">true</bool>

    <!-- whether to show emergency button in lock screen -->
    <bool name="config_showEmergencyButton">true</bool>
</resources>
+1 −1
Original line number Diff line number Diff line
@@ -166,7 +166,7 @@ public class EmergencyButton extends Button {
                } else {
                    // Only show if there is a secure screen (pin/pattern/SIM pin/SIM puk);
                    visible = mLockPatternUtils.isSecure(KeyguardUpdateMonitor.getCurrentUser()) ||
                            SystemProperties.getBoolean("persist.radio.emgcy_btn_onswipe", false);
                              mContext.getResources().getBoolean(R.bool.config_showEmergencyButton);
                }
            }
        }
+1 −1
Original line number Diff line number Diff line
@@ -706,7 +706,7 @@ public class KeyguardBottomAreaView extends FrameLayout implements View.OnClickL
    }

    private void updateEmergencyButton() {
        if (SystemProperties.getBoolean("persist.radio.emgcy_btn_onswipe",false)) {
        if(mContext.getResources().getBoolean(R.bool.config_showEmergencyButton)){
            if (mEmergencyButton != null) {
                mEmergencyButton.updateEmergencyCallButton();
            }