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

Commit b72a4128 authored by Jean-Michel Trivi's avatar Jean-Michel Trivi Committed by Automerger Merge Worker
Browse files

Merge "[Bugfix] Fix the issue where the spatializer available status could not...

Merge "[Bugfix] Fix the issue where the spatializer available status could not be updated" into main am: 07f66cf4

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/3074148



Change-Id: Ibcccfbdf3ccc986f4cd54fce988dbcad387ff600
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 006c70b7 07f66cf4
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -342,9 +342,6 @@ public class SpatializerHelper {
    //------------------------------------------------------
    // routing monitoring
    synchronized void onRoutingUpdated() {
        if (!mFeatureEnabled) {
            return;
        }
        switch (mState) {
            case STATE_UNINITIALIZED:
            case STATE_NOT_SUPPORTED:
@@ -388,7 +385,7 @@ public class SpatializerHelper {
            setDispatchAvailableState(false);
        }

        boolean enabled = able && enabledAvailable.first;
        boolean enabled = mFeatureEnabled && able && enabledAvailable.first;
        if (enabled) {
            loglogi("Enabling Spatial Audio since enabled for media device:"
                    + currentDevice);