Choose WIRELESS or HEADSET when Bluetooth disconnects.

Bug: 17431383
Change-Id: I0557c325816480afcf5c255d47881c79efd984af
diff --git a/src/com/android/telecomm/CallAudioManager.java b/src/com/android/telecomm/CallAudioManager.java
index 164bedb..5e34a23 100644
--- a/src/com/android/telecomm/CallAudioManager.java
+++ b/src/com/android/telecomm/CallAudioManager.java
@@ -228,16 +228,17 @@
             return;
         }
 
+        int supportedRoutes = calculateSupportedRoutes();
         int newRoute = mAudioState.route;
         if (bluetoothManager.isBluetoothAudioConnectedOrPending()) {
             newRoute = AudioState.ROUTE_BLUETOOTH;
         } else if (mAudioState.route == AudioState.ROUTE_BLUETOOTH) {
-            newRoute = AudioState.ROUTE_WIRED_OR_EARPIECE;
+            newRoute = selectWiredOrEarpiece(AudioState.ROUTE_WIRED_OR_EARPIECE, supportedRoutes);
             // Do not switch to speaker when bluetooth disconnects.
             mWasSpeakerOn = false;
         }
 
-        setSystemAudioState(mAudioState.isMuted, newRoute, calculateSupportedRoutes());
+        setSystemAudioState(mAudioState.isMuted, newRoute, supportedRoutes);
     }
 
     boolean isBluetoothAudioOn() {