Do not check whetehr sco is connected for the route deactivation

Flag: EXEMPT bugfix
Bug: 409122502
Bug: 406836000
Test: manual
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:41c3d51fd5a2b02a34a8c768979f3976c117ed1b)
Merged-In: I59165cacf781b338d0e93f793c92a269c8067941
Change-Id: I59165cacf781b338d0e93f793c92a269c8067941
diff --git a/src/com/android/server/telecom/CallAudioRouteController.java b/src/com/android/server/telecom/CallAudioRouteController.java
index c9e0ab3..aa0976f 100644
--- a/src/com/android/server/telecom/CallAudioRouteController.java
+++ b/src/com/android/server/telecom/CallAudioRouteController.java
@@ -587,7 +587,8 @@
         // It's possible that there are multiple HFP devices connected and if we receive SCO audio
         // connected for the destination route's BT device, then we shouldn't disconnect SCO when
         // clearing the communication device for the original route if it was also a HFP device.
-        boolean isScoDeviceAlreadyConnected = mScoAudioConnectedDevice != null
+        // This does not apply to the route deactivation scenario.
+        boolean isScoDeviceAlreadyConnected = mScoAudioConnectedDevice != null && isDestRouteActive
                 && Objects.equals(mScoAudioConnectedDevice, mBluetoothRoutes.get(destRoute));
         if (mIsPending) {
             if (destRoute.equals(mPendingAudioRoute.getDestRoute())