summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorWink Saville <wink@google.com>2011-02-01 19:22:15 -0800
committerWink Saville <wink@google.com>2011-02-01 19:22:15 -0800
commit9d72be33181f1bd1386017ce0b0ce17d8ce1cb66 (patch)
treea736c3b787235290dded5344e37150edf443c461 /core
parent3b8657debcbcf1bb4e66ac797d7ea15d737ecb42 (diff)
downloadframeworks_base-9d72be33181f1bd1386017ce0b0ce17d8ce1cb66.zip
frameworks_base-9d72be33181f1bd1386017ce0b0ce17d8ce1cb66.tar.gz
frameworks_base-9d72be33181f1bd1386017ce0b0ce17d8ce1cb66.tar.bz2
Add TelephonyManager.getCurrentPhoneType
The new method getCurrentPhoneType has the old behavior of getPhoneType and does not check for voice capable. This allows code to assume the old behavior. bug: 3198435 Change-Id: I0542838ceca2f757cceb6cd7f795e95fe886523e
Diffstat (limited to 'core')
-rw-r--r--core/java/android/accounts/AccountManagerService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/accounts/AccountManagerService.java b/core/java/android/accounts/AccountManagerService.java
index fb16609..2e70a56 100644
--- a/core/java/android/accounts/AccountManagerService.java
+++ b/core/java/android/accounts/AccountManagerService.java
@@ -1781,7 +1781,7 @@ public class AccountManagerService
// will return a different value, but we *don't* erase the
// passwords. We only erase them if it has a different
// subscriber ID once it's provisioned.
- if (telephonyManager.getPhoneType() == TelephonyManager.PHONE_TYPE_CDMA) {
+ if (telephonyManager.getCurrentPhoneType() == TelephonyManager.PHONE_TYPE_CDMA) {
IBinder service = ServiceManager.checkService(Context.TELEPHONY_SERVICE);
if (service == null) {
Log.w(TAG, "call to checkService(TELEPHONY_SERVICE) failed");