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

Commit c8658819 authored by Tyler Gunn's avatar Tyler Gunn
Browse files

Pass calling package for invocations of endCall API.

Pass the calling package for debugging purposes.

Test: Manual
Bug: 73006395
Change-Id: I5ea7f1f0033438de3cdc2c47fc8a03f05d9e4590
parent af5b90ff
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1301,7 +1301,7 @@ public class TelecomManager {
    public boolean endCall() {
        try {
            if (isServiceConnected()) {
                return getTelecomService().endCall();
                return getTelecomService().endCall(mContext.getPackageName());
            }
        } catch (RemoteException e) {
            Log.e(TAG, "Error calling ITelecomService#endCall", e);
+1 −1
Original line number Diff line number Diff line
@@ -187,7 +187,7 @@ interface ITelecomService {
    /**
     * @see TelecomServiceImpl#endCall
     */
    boolean endCall();
    boolean endCall(String callingPackage);

    /**
     * @see TelecomServiceImpl#acceptRingingCall