Add an option to set the selected phone account as the default. (1/3)
Modify the phoneAccountSelected method to support the option to set the selected phone account as the default for outgoing phone calls. Bug: 18078232 Change-Id: I2689bc9611366d521dfd3dc2086fd31eb6393876
This commit is contained in:
@@ -189,14 +189,16 @@ public final class InCallAdapter {
|
||||
}
|
||||
|
||||
/**
|
||||
* Instructs Telecom to add a PhoneAccountHandle to the specified call
|
||||
* Instructs Telecom to add a PhoneAccountHandle to the specified call.
|
||||
*
|
||||
* @param callId The identifier of the call
|
||||
* @param accountHandle The PhoneAccountHandle through which to place the call
|
||||
* @param callId The identifier of the call.
|
||||
* @param accountHandle The PhoneAccountHandle through which to place the call.
|
||||
* @param setDefault {@code True} if this account should be set as the default for calls.
|
||||
*/
|
||||
public void phoneAccountSelected(String callId, PhoneAccountHandle accountHandle) {
|
||||
public void phoneAccountSelected(String callId, PhoneAccountHandle accountHandle,
|
||||
boolean setDefault) {
|
||||
try {
|
||||
mAdapter.phoneAccountSelected(callId, accountHandle);
|
||||
mAdapter.phoneAccountSelected(callId, accountHandle, setDefault);
|
||||
} catch (RemoteException e) {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user