commit | 723a23acd8688a7fa513d8fc600b470712560216 | [log] [tgz] |
---|---|---|
author | Shuo Qian <shuoq@google.com> | Tue Aug 10 18:10:27 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Aug 10 18:10:27 2021 +0000 |
tree | 679858dd695f9cb8ea3052cc710100eccda41686 | |
parent | ed229165dc02c162294512cd9f5632278eff3f29 [diff] | |
parent | 59d8f4620ecf74c3ae9bdb09f80f666441291b80 [diff] |
Add some logging to show why audio tone is not present. am: 59d8f4620e Original change: https://android-review.googlesource.com/c/platform/packages/services/Telecomm/+/1789567 Change-Id: I6e93a43b1f0311e852ae04559e738a28d1bfb6a4
diff --git a/src/com/android/server/telecom/RingtoneFactory.java b/src/com/android/server/telecom/RingtoneFactory.java index d3d2d0e..d416376 100644 --- a/src/com/android/server/telecom/RingtoneFactory.java +++ b/src/com/android/server/telecom/RingtoneFactory.java
@@ -85,8 +85,14 @@ if (UserManager.get(contextToUse).isUserUnlocked(contextToUse.getUserId())) { defaultRingtoneUri = RingtoneManager.getActualDefaultRingtoneUri(contextToUse, RingtoneManager.TYPE_RINGTONE); + if (defaultRingtoneUri == null) { + Log.i(this, "getRingtone: defaultRingtoneUri for user is null."); + } } else { defaultRingtoneUri = Settings.System.DEFAULT_RINGTONE_URI; + if (defaultRingtoneUri == null) { + Log.i(this, "getRingtone: Settings.System.DEFAULT_RINGTONE_URI is null."); + } } if (defaultRingtoneUri == null) { return null;