import android.telecom.Connection;
import android.telecom.ConnectionRequest;
import android.telecom.ConnectionService;
+import android.telecom.DisconnectCause;
import android.telecom.PhoneAccount;
import android.telecom.PhoneAccountHandle;
import android.telecom.TelecomManager;
if (mConference == null) {
BluetoothDevice device = getDevice(getHandle());
mConference = new HfpClientConference(getHandle(), device, mHeadsetProfile);
- addConference(mConference);
}
- mConference.setActive();
if (connection1.getConference() == null) {
mConference.addConnection(connection1);
}
if (DBG) {
Log.d(TAG, "Conference has no connection, destroying");
}
+ mConference.setDisconnected(new DisconnectCause(DisconnectCause.LOCAL));
mConference.destroy();
mConference = null;
}