summaryrefslogtreecommitdiffstats
path: root/telecomm/java/android
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2015-04-15 16:14:22 -0700
committerYorke Lee <yorkelee@google.com>2015-04-16 09:30:57 -0700
commit49e2d468129cd8b374e76dff103302ccb77da45b (patch)
tree77878dda0944703512110d6da6f3ca9d34a26774 /telecomm/java/android
parent81af4733b53389e700c0cd52cb9a419402bce372 (diff)
downloadframeworks_base-49e2d468129cd8b374e76dff103302ccb77da45b.zip
frameworks_base-49e2d468129cd8b374e76dff103302ccb77da45b.tar.gz
frameworks_base-49e2d468129cd8b374e76dff103302ccb77da45b.tar.bz2
Change hasVoicemailNumber to getVoicemailNumber
Bug: 20223485 Change-Id: I67eb12e2030ec8f73326ade4eb750b0c2f6e52ad
Diffstat (limited to 'telecomm/java/android')
-rw-r--r--telecomm/java/android/telecom/TelecomManager.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/telecomm/java/android/telecom/TelecomManager.java b/telecomm/java/android/telecom/TelecomManager.java
index 60b9cb9..5abbb50 100644
--- a/telecomm/java/android/telecom/TelecomManager.java
+++ b/telecomm/java/android/telecom/TelecomManager.java
@@ -720,20 +720,21 @@ public class TelecomManager {
}
/**
- * Return whether a given phone account has a voicemail number configured.
+ * Return the voicemail number for a given phone account.
*
- * @param accountHandle The handle for the account to check for a voicemail number.
- * @return {@code true} If the given phone account has a voicemail number.
+ * @param accountHandle The handle for the phone account.
+ * @return The voicemail number for the phone account, and {@code null} if one has not been
+ * configured.
*/
- public boolean hasVoiceMailNumber(PhoneAccountHandle accountHandle) {
+ public String getVoiceMailNumber(PhoneAccountHandle accountHandle) {
try {
if (isServiceConnected()) {
- return getTelecomService().hasVoiceMailNumber(accountHandle);
+ return getTelecomService().getVoiceMailNumber(accountHandle);
}
} catch (RemoteException e) {
Log.e(TAG, "RemoteException calling ITelecomService#hasVoiceMailNumber.", e);
}
- return false;
+ return null;
}
/**