diff options
author | John Wang <johnwang@google.com> | 2011-06-08 20:38:59 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-06-08 20:38:59 -0700 |
commit | 08a8f3f9dc035bc462061ae87090a8da59c6713a (patch) | |
tree | 56e71eef97ba82581b77ca2c6bf668ae4c679bf6 /core | |
parent | a1396dfe7ad6ec6953f544be42d69d7804ab0fd4 (diff) | |
parent | 5328bf0b2e62c2719daf9154edbe81fd819974a6 (diff) | |
download | frameworks_base-08a8f3f9dc035bc462061ae87090a8da59c6713a.zip frameworks_base-08a8f3f9dc035bc462061ae87090a8da59c6713a.tar.gz frameworks_base-08a8f3f9dc035bc462061ae87090a8da59c6713a.tar.bz2 |
Merge "Set emergency call text visibility." into honeycomb-LTE
Diffstat (limited to 'core')
-rw-r--r-- | core/java/com/android/internal/widget/LockPatternUtils.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/core/java/com/android/internal/widget/LockPatternUtils.java b/core/java/com/android/internal/widget/LockPatternUtils.java index 682ebc4..c3f6329 100644 --- a/core/java/com/android/internal/widget/LockPatternUtils.java +++ b/core/java/com/android/internal/widget/LockPatternUtils.java @@ -35,6 +35,7 @@ import android.text.TextUtils; import android.util.Log; import android.view.View; import android.widget.Button; +import android.widget.TextView; import java.io.File; import java.io.FileNotFoundException; @@ -870,6 +871,18 @@ public class LockPatternUtils { } /** + * Sets the visibility of emergency call prompt based on emergency capable + * @param emergencyText the emergency call text to be updated + */ + public void updateEmergencyCallText(TextView emergencyText) { + if (isEmergencyCallCapable()) { + emergencyText.setVisibility(View.VISIBLE); + } else { + emergencyText.setVisibility(View.GONE); + } + } + + /** * Resumes a call in progress. Typically launched from the EmergencyCall button * on various lockscreens. * |