diff options
author | Santos Cordon <santoscordon@google.com> | 2014-05-29 13:07:10 -0700 |
---|---|---|
committer | Santos Cordon <santoscordon@google.com> | 2014-05-30 11:35:42 -0700 |
commit | 3534ede5722b98c5be1526ba0bc2cd8acfbe0e55 (patch) | |
tree | a868cad3c18543edf28438afd088f63351e40a60 /core/java | |
parent | eec8f0cbbba8cfe3de29fef4b2362af3817ea575 (diff) | |
download | frameworks_base-3534ede5722b98c5be1526ba0bc2cd8acfbe0e55.zip frameworks_base-3534ede5722b98c5be1526ba0bc2cd8acfbe0e55.tar.gz frameworks_base-3534ede5722b98c5be1526ba0bc2cd8acfbe0e55.tar.bz2 |
Update showCallScreen to use Telecomm (1/6)
- Add API methods to InCallService and ITelecommService.
- Remove old methods from ITelephony.
- Route the TelephonyManager methods through ITelecommService instead of
ITelephony.
- Update Lock screen to use TelephonyManager instead of ITelephony.
Bug: 15008165
Change-Id: Ib674e2e48efaa1cc97d1513dc2c2b27fdb343657
Diffstat (limited to 'core/java')
-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() { |