diff options
author | Santos Cordon <santoscordon@google.com> | 2014-05-30 19:36:41 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-05-30 19:36:41 +0000 |
commit | 515e09b8373a2cffc5be633d4b196bf68e62edbd (patch) | |
tree | 00974909da2ef5db28d83481c0e76693b65356a7 /core | |
parent | f69af6b6d514d0b63c6abefa972e2988889e4d4e (diff) | |
parent | 3534ede5722b98c5be1526ba0bc2cd8acfbe0e55 (diff) | |
download | frameworks_base-515e09b8373a2cffc5be633d4b196bf68e62edbd.zip frameworks_base-515e09b8373a2cffc5be633d4b196bf68e62edbd.tar.gz frameworks_base-515e09b8373a2cffc5be633d4b196bf68e62edbd.tar.bz2 |
Merge "Update showCallScreen to use Telecomm (1/6)" into lmp-preview-dev
Diffstat (limited to 'core')
-rw-r--r-- | core/java/com/android/internal/widget/LockPatternUtils.java | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/core/java/com/android/internal/widget/LockPatternUtils.java b/core/java/com/android/internal/widget/LockPatternUtils.java index 25e3463..d31c5cc 100644 --- a/core/java/com/android/internal/widget/LockPatternUtils.java +++ b/core/java/com/android/internal/widget/LockPatternUtils.java @@ -43,7 +43,6 @@ import android.view.View; import android.widget.Button; import com.android.internal.R; -import com.android.internal.telephony.ITelephony; import com.google.android.collect.Lists; import java.security.MessageDigest; @@ -1360,19 +1359,11 @@ public class LockPatternUtils { /** * Resumes a call in progress. Typically launched from the EmergencyCall button * on various lockscreens. - * - * @return true if we were able to tell InCallScreen to show. */ - public boolean resumeCall() { - ITelephony phone = ITelephony.Stub.asInterface(ServiceManager.checkService("phone")); - try { - if (phone != null && phone.showCallScreen()) { - return true; - } - } catch (RemoteException e) { - // What can we do? - } - return false; + public void resumeCall() { + TelephonyManager telephonyManager = + (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE); + telephonyManager.showCallScreen(); } private void finishBiometricWeak() { |