diff options
author | Yorke Lee <yorkelee@google.com> | 2013-11-22 18:24:59 -0800 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2013-11-22 18:24:59 -0800 |
commit | 62280c72fd651b00dd5499f4c3b32f30be57ce0d (patch) | |
tree | f9770e5a35eb5c49ea4a4f4fbcb4b5f841973251 /src | |
parent | 5c432033aed8c083f225b79c49c570d2b24618c1 (diff) |
Remove use of hidden TelephonyManager methods
Bug: 6948882
Change-Id: Ibce04c24e64fdb33fba532c0f0e5dca3b11f1b6c
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/dialer/SpecialCharSequenceMgr.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/dialer/SpecialCharSequenceMgr.java b/src/com/android/dialer/SpecialCharSequenceMgr.java index fdef263fb..f4f818afc 100644 --- a/src/com/android/dialer/SpecialCharSequenceMgr.java +++ b/src/com/android/dialer/SpecialCharSequenceMgr.java @@ -158,7 +158,7 @@ public class SpecialCharSequenceMgr { TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); if (telephonyManager == null - || !TelephonyCapabilities.supportsAdn(telephonyManager.getCurrentPhoneType())) { + || telephonyManager.getPhoneType() != TelephonyManager.PHONE_TYPE_GSM) { return false; } @@ -243,7 +243,7 @@ public class SpecialCharSequenceMgr { TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); if (telephonyManager != null && input.equals(MMI_IMEI_DISPLAY)) { - int phoneType = telephonyManager.getCurrentPhoneType(); + int phoneType = telephonyManager.getPhoneType(); if (phoneType == TelephonyManager.PHONE_TYPE_GSM) { showIMEIPanel(context, useSystemWindow, telephonyManager); return true; |