Merge "Pass calling package for invocations of endCall API."

am: 44289caa11

Change-Id: Ifc44839a3235755e9f231f37dd99f22bb96b39a9
This commit is contained in:
Tyler Gunn
2018-02-09 21:42:29 +00:00
committed by android-build-merger
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -187,7 +187,7 @@ interface ITelecomService {
/**
* @see TelecomServiceImpl#endCall
*/
boolean endCall();
boolean endCall(String callingPackage);
/**
* @see TelecomServiceImpl#acceptRingingCall