am 08ee7fa4
: Merge "Fixing emergency dialer flicker on lock screen (issue 5314293)" into ics-factoryrom
* commit '08ee7fa463aee5e83f77789e9a99f17a34ab68b4': Fixing emergency dialer flicker on lock screen (issue 5314293)
This commit is contained in:
@ -947,9 +947,11 @@ public class LockPatternUtils {
|
||||
*
|
||||
* If there's currently a call in progress, the button will take them to the call
|
||||
* @param button the button to update
|
||||
* @param showIfCapable indicates whether the button should be shown if emergency calls are
|
||||
* possible on the device
|
||||
*/
|
||||
public void updateEmergencyCallButtonState(Button button) {
|
||||
if (isEmergencyCallCapable()) {
|
||||
public void updateEmergencyCallButtonState(Button button, boolean showIfCapable) {
|
||||
if (isEmergencyCallCapable() && showIfCapable) {
|
||||
button.setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
button.setVisibility(View.GONE);
|
||||
|
Reference in New Issue
Block a user