Merge "Pass calling package for invocations of endCall API." am: 44289caa11 am: e05da7e86b
am: 654b7fc322
Change-Id: Id7c74fa539b7e7e26dfdc8b612d9299d8c20c19b
This commit is contained in:
@@ -1320,7 +1320,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);
|
||||
|
||||
@@ -187,7 +187,7 @@ interface ITelecomService {
|
||||
/**
|
||||
* @see TelecomServiceImpl#endCall
|
||||
*/
|
||||
boolean endCall();
|
||||
boolean endCall(String callingPackage);
|
||||
|
||||
/**
|
||||
* @see TelecomServiceImpl#acceptRingingCall
|
||||
|
||||
Reference in New Issue
Block a user