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

Commit ed123d59 authored by Eric Laurent's avatar Eric Laurent Committed by Automerger Merge Worker
Browse files

Merge "SpatializerHelper: fix the null pointer exception occurred when create...

Merge "SpatializerHelper: fix the null pointer exception occurred when create spatializer" into main am: f9abcbd4

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



Change-Id: Id2706c7694dbeaca1b6dbe676278a0f66c2f0631
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents c0a4c71b f9abcbd4
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -965,6 +965,11 @@ public class SpatializerHelper {
        if (mSpat == null) {
            mSpatCallback = new SpatializerCallback();
            mSpat = AudioSystem.getSpatializer(mSpatCallback);
            if (mSpat == null) {
                Log.e(TAG, "createSpat(): No Spatializer found");
                postReset();
                return;
            }
            try {
                //TODO: register heatracking callback only when sensors are registered
                if (mIsHeadTrackingSupported) {