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

Commit 90f4fa04 authored by Anju Mathapati's avatar Anju Mathapati Committed by Linux Build Service Account
Browse files

IMS: Fix Vice crash

Use the Binder api to get userhandle instead of
using the outgoing phoneaccount as it might
not have been set

Change-Id: I8b878abc4f37b9fb8cfc30f42fcea59d6f0f76c6
CRs-Fixed: 1049456
parent bffd07cc
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -442,11 +442,9 @@ public class ViceNotificationImpl extends CallsManagerListenerBase {
            intent.putExtra(TelecomManager.EXTRA_START_CALL_WITH_VIDEO_STATE,
                    VideoProfile.STATE_AUDIO_ONLY);
        }
        final PhoneAccountHandle phoneAccountHandle =
                mTelecomManager.getUserSelectedOutgoingPhoneAccount();

        intent.putExtra(TelecomBroadcastIntentProcessor.EXTRA_USERHANDLE,
                phoneAccountHandle.getUserHandle());
                UserHandle.of(UserHandle.myUserId()));

        return PendingIntent.getBroadcast(mContext, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT);
    }