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

Commit 63a4004e authored by qqzhou's avatar qqzhou Committed by Steve Kondik
Browse files

Dialer: fix force close in speed dial list

The reason is that we use ACTION_CALL_PRIVILEGED which needs
to use another permission in your manifest, so will cause
SecurityException if you use this without the permission.

We will use ACTION_CALL to replace ACTION_CALL_PRIVILEGED.

Change-Id: I028d224521c8148874fee94d6f063306181b8f79
CRs-Fixed: 744880
parent 1f04b444
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -194,7 +194,7 @@ public class SpeedDialListActivity extends ListActivity
                            @Override
                            public void onClick(DialogInterface dialog, int which) {
                                // TODO Auto-generated method stub
                                Intent callIntent = new Intent(Intent.ACTION_CALL_PRIVILEGED);
                                Intent callIntent = new Intent(Intent.ACTION_CALL);
                                callIntent.setData(Uri.fromParts("tel", numStr, null));
                                callIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                                startActivity(callIntent);