Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit de8e9246 authored by Tyler Gunn's avatar Tyler Gunn
Browse files

Cleanup use of dont_use_communication_device_tracker flag.

Admittedly, the rest of this will go soon anyways, but cleaning this up
now.

Fixes: 410114652
Test: Run unit tests.
Flag: EXEMPT flag cleanup
Change-Id: I26ab4d86e4b872109a8e09febdb037cf1b1618e6
parent d28507db
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -65,17 +65,6 @@ flag {
  bug: "301695370"
}

# OWNER=tgunn TARGET=24Q3
flag {
  name: "dont_use_communication_device_tracker"
  namespace: "telecom"
  description: "Do not use the communication device tracker with useRefactoredAudioRouteSwitching."
  bug: "346472575"
  metadata {
    purpose: PURPOSE_BUGFIX
  }
}

# OWNER=tgunn TARGET=25Q2
flag {
  name: "only_clear_communication_device_on_inactive"
+1 −5
Original line number Diff line number Diff line
@@ -325,11 +325,7 @@ public class CallAudioModeStateMachine extends StateMachine {
                            + "AudioManager#abandonAudioFocusRequest(); now unfocused");
                    mAudioManager.abandonAudioFocusForCall();
                    // Clear requested communication device after the call ends.
                    // Oh flags!  If we're using the refactored audio route switching, we should
                    // not be using the communication device tracker; that is exclusively for
                    // the old code path.
                    if (!mFeatureFlags.dontUseCommunicationDeviceTracker()
                            || !mFeatureFlags.useRefactoredAudioRouteSwitching()) {
                    if (!mFeatureFlags.useRefactoredAudioRouteSwitching()) {
                        mCommunicationDeviceTracker.clearCommunicationDevice(
                                mCommunicationDeviceTracker
                                        .getCurrentLocallyRequestedCommunicationDevice());