Add custom ringtone support.
Bug: 15313520
Change-Id: Ib4a553139b5b9d7852bdeb57ad5e33dfa35f9be8
diff --git a/src/com/android/telecomm/Call.java b/src/com/android/telecomm/Call.java
index c51632c..2bcc978 100644
--- a/src/com/android/telecomm/Call.java
+++ b/src/com/android/telecomm/Call.java
@@ -709,6 +709,10 @@
mHandoffCallServiceDescriptor = descriptor;
}
+ Uri getRingtone() {
+ return mCallerInfo == null ? null : mCallerInfo.contactRingtoneUri;
+ }
+
/**
* @return True if the call is ringing, else logs the action name.
*/
@@ -737,6 +741,7 @@
mQueryToken++; // Updated so that previous queries can no longer set the information.
mCallerInfo = null;
if (!TextUtils.isEmpty(number)) {
+ Log.v(this, "Looking up information for: %s.", Log.piiHandle(number));
CallerInfoAsyncQuery.startQuery(
mQueryToken,
TelecommApp.getInstance(),
@@ -758,6 +763,7 @@
if (mQueryToken == token) {
mCallerInfo = callerInfo;
+ Log.i(this, "CallerInfo received for %s: %s", Log.piiHandle(mHandle), callerInfo);
if (mCallerInfo.person_id != 0) {
Uri personUri =