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

Commit 9d356aaf authored by sqian's avatar sqian Committed by android-build-merger
Browse files

DO NOT MERGE: Running Telecom CallRedirection Dialog on top of InCallActivity

am: d20a2660

Change-Id: Icbf7fcc8fd48e822d9b4a99f8ff21fcc1e678c5e
parents f891d0b0 d20a2660
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -1807,7 +1807,15 @@ public class CallsManager extends Call.ListenerBase
            confirmIntent.putExtra(CallRedirectionConfirmDialogActivity.EXTRA_REDIRECTION_APP_NAME,
                    mRoleManagerAdapter.getApplicationLabelForPackageName(callRedirectionApp));
            confirmIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

            // A small delay to start the activity after any Dialer's In Call UI starts
            mHandler.postDelayed(new Runnable("CM.oCRC", mLock) {
                @Override
                public void loggedRun() {
                    mContext.startActivityAsUser(confirmIntent, UserHandle.CURRENT);
                }
            }.prepare(), 500 /* Milliseconds delay */);

        } else {
            call.setTargetPhoneAccount(phoneAccountHandle);
            placeOutgoingCall(call, handle, gatewayInfo, speakerphoneOn, videoState);