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

Commit dd856284 authored by Nicolas Sleiman's avatar Nicolas Sleiman Committed by Automerger Merge Worker
Browse files

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

parents 12c40656 8947db1b
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;