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

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

Merge "Regional: Customize emergency button"

parents 34dcfa1c a6ee9e81
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2011 The Android Open Source Project
<!--  Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
     Not a Contribution.

     Copyright (C) 2011 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
@@ -20,4 +23,5 @@
    <bool name="kg_top_align_page_shrink_on_bouncer_visible">true</bool>
    <bool name="kg_show_ime_at_screen_on">true</bool>
    <bool name="kg_use_all_caps">true</bool>
    <bool name="icccardexist_hide_emergencybutton">false</bool>
</resources>
+6 −0
Original line number Diff line number Diff line
/*
 * Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
 * Not a Contribution.
 *
 * Copyright (C) 2008 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
@@ -126,6 +129,9 @@ public class EmergencyButton extends Button {
                        mContext.getResources().getBoolean(R.bool.config_showEmergencyButton);
            }
        }
        if (getContext().getResources().getBoolean(R.bool.icccardexist_hide_emergencybutton)) {
            enabled = false;
        }
        mLockPatternUtils.updateEmergencyCallButtonState(this, enabled, false);
    }