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

Commit a481edf3 authored by Junyeong Bak's avatar Junyeong Bak Committed by Hall Liu
Browse files

Fix ComponentName of SystemDialer



Replace InCallUI in system dialer component to Dialer

Test: Make emergency call in 3rd party dialer
Bug: 147135521

Change-Id: I686cb7b2728491401270c7b6f2f8abba5c5098a7
Signed-off-by: default avatarJunyeong Bak <junyeong.bak@samsung.com>
parent 0cd4c9b4
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@ import android.app.AppOpsManager;
import android.app.Activity;
import android.app.BroadcastOptions;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
@@ -494,7 +495,9 @@ public class NewOutgoingCallIntentBroadcaster {

    private void launchSystemDialer(Uri handle) {
        Intent systemDialerIntent = new Intent();
        systemDialerIntent.setComponent(mDefaultDialerCache.getSystemDialerComponent());
        systemDialerIntent.setComponent(
                new ComponentName(mDefaultDialerCache.getSystemDialerApplication(),
                    mContext.getResources().getString(R.string.dialer_default_class)));
        systemDialerIntent.setAction(Intent.ACTION_DIAL);
        systemDialerIntent.setData(handle);
        systemDialerIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);