Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8947db1b authored by Nicolas Sleiman's avatar Nicolas Sleiman Committed by Android (Google) Code Review
Browse files

Merge "Use the incoming call's user to get the ringtone." into udc-dev

parents da367ac9 f9f16d52
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -72,9 +72,10 @@ public class RingtoneFactory {
        AudioAttributes audioAttrs = getDefaultRingtoneAudioAttributes(hapticChannelsMuted);

        // Use the default ringtone of the work profile if the contact is a work profile contact.
        // or the default ringtone of the receiving user.
        Context userContext = isWorkContact(incomingCall) ?
                getWorkProfileContextForUser(mCallsManager.getCurrentUserHandle()) :
                getContextForUserHandle(mCallsManager.getCurrentUserHandle());
                getContextForUserHandle(incomingCall.getUserHandleFromTargetPhoneAccount());
        Uri ringtoneUri = incomingCall.getRingtone();
        Ringtone ringtone = null;